Dear Experts,
I know that this is a very old issue that has been discussed for long. Yet, I cannot find the answer eventhough I used the whole afternoon to read the forum and other sites.
Actually, I am using Job Queue to auto load some reports to a specific folder on the DB server. I used Codeunit to do so and everything is fine as if I execute it manually.
However, when I place the codeunit to Job Queue, I observe that Excel has been successfully executed in task manager, seems data loading is also fine. But, the final stage of SaveAs stucks and finally Job Queue Entry Log says "SaveAs method of workbook class failed".
Honestly I did not expected such problem and my schedule of submission is very near, could anyone knows the solution please kindly tell me?!!!!
Thanks a lot in advance!
Louisa
Answers
Just simple add a folder named Desktop to the following path of your machine, problem solved!!!
For 64 bit environments the folder path is:
C:\Windows\SysWOW64\config\systemprofile\Desktop
For 32 bit it is:
C:\Windows\System32\config\systemprofile\Desktop
For details, pls browse below:
http://www.jigsaw.com.au/blog/2013/october/18/dynamics-nav-nasjob-queue-excel-saveas-method-failed.aspx
Hope it helps to those who encounters same problem!