I have a SQL Server job that runs a SSISDB package. The package does some SQL database connection and creates an excelt file as output. Finally it runs a VB 2015 script that opens the created excel file and rcopies sheets from that to another excel file and then a macro is run. The jobs runs fine as a SQL server agent job while I'm still logged onto the server . However when I log out the VB Script task fails with the message ' Script Task Error: Exception has been thrown by the target of an invocation. '.
help !