I have an SSIS package that outputs and excel file and emails it. When i run it from Visual Studio it works fine. But when i run it from the job in SSMS its throwing an error:
"Errors were detected in the command line argument, please make sure all arguments are set correctly. (SqlManagerUI)
The problem seems to be in the Excel connection manager connection string. Its working fine in Visual Studio but in SSMS job its causing the above mention error.
Below is how the connection string is defined in my job:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\\nsi.pri\atp-images-DEV\StagingDB\ApprovedCustomers\DailyApprovedCustomers_2019_05_14.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES";