Why won't report save my excel file on the server when running through the Job Queue (NAS)? It works from the command line and thru classic on the same server! Job finishes but the file is nowhere! ](*,)
I'm writing in hopes someone has had the same issue and can provide some assistance. I have searched Mibuso for hours and while it got me this far in the process (thank you to all who post solutions!!), I haven't found anything that refers to the latest issue that has come up.
As stated above, the report runs and saves the file to the server when I run it through classic and when I run it with the Run command utilizing the RTC on the NAS server. BUT, while the Job Queue job finishes successfully, there is no file in the directory when it completes. I am running the report all 3 ways utilizing the same credentials and on the same server which is also hosting NAS.
Also, I am making sure that there are no user interface requirements within the code (I've commented them out or created new functions). And, I did add the Desktop folder to the C:\Windows\SysWOW64\config\systemprofile\Desktop directory on the server.
And, other jobs which run on the job queue save PDF's to the directory I have specified in this report, so it shouldn't be an issue of permissions.
Thanks so much!!!!
0
Answers
Running the NAS from command line is not the same as running the NAS as a Windows Service.
As they have not..... Or I'm guessing you would know .... I will explore that now.
Thanks again!
I haven't faced any problem using NAS with export to excel. The following is the code which is used (nothing unusual/extra coding has been used):
I have not posted the whole code (other functions called from within the code above) because they are not relevant.
http://ssdynamics.co.in
The solution to this error was to install printer on the server (PDF Creator did it) and make it a default printer. NAS generates some 30 excel files and send it with email everyday.
http://ssdynamics.co.in
boeves