Hello,
I have an issue with the SQL server agent batch job. I have a .Net exe which creates, writes and saves excel. This batch job have been working fine with the Office 2007 setup.
We recently uninstalled the Office 2007 from the server and installed Office 2016. While running the batch job, the excel is not getting generated. After debugging the .Net code, I got the message as "SaveAs method of Workbook class failed".
If I run this exe through console, the code is able to create and save the excel. I am able to create the excel when logged in as myself.
Could it be access issue, wherein Local System User account associated with the SQL server services is not having access to save the excel. I tried changing the account to mine in the services for SQL server and SQL server Agent specific to the instance in which the batch job is running. But I am getting the same error.
Any help is appreciated, thanks!!