Quantcast
Channel: SQL Server Database Engine Forum
Viewing all articles
Browse latest Browse all 15872

SQL Server Agent job fails , but works fine when user stays logged in

$
0
0

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 !



Viewing all articles
Browse latest Browse all 15872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>