SSIS package failing from SQLagent - ssis

I have a scheduled SQL job, it runs a SSIS package. The package contains a script task. I have faced on issue that SqlAgent is unable to trigger the package. After lot of investigation I could not find a direct solution and did a work around to execute the package through operating systems(cmdexe) step rather than sql server integration services type step. Now its running fine. However sometimes the job is failing and in the logs its throwing some error "Exception has been thrown by the target of an invocation." by script task. This is issue is coming randomly. when I run the same package manually from integration services catalog its running fine. But why is this happening only with SQlAgent that too sometimes??. Did anyone ever faced this issue. Please help.

Related

Deployed SSIS package to SSMS with JSON.net hangs when executed

I have deployed an SSIS package to SSMS and trying to execute it within SSMS. The package includes the library "json.net". It starts but can run forever. It's stuck at this step, right at the first parsing. It doesn' give any errors or warnings?
Running the same package in Visual Studio works without any problems. What can cause this?

Why is SSIS package stopping after validation steps and not running tasks?

I am working on an SSIS package in VS 2017 targeting SQL Server 2016. Sometimes when I go to run it (hit the Debug button), it doesn't run any tasks, it just goes through the validation steps and stops, showing the message in my screenshot. None of the tasks have green checkmarks or red x's. No errors or warnings in the Progress tab. I have to close and reopen the package for it to run, and then a few hours later, I'm usually back to this problem. Anyone know what could be causing this? Not sure if it will cause any issues when it runs from a server later, as it is similar to this question that went unanswered.
If it matters, the package archives some files, runs some Execute SQL tasks to run stored procedures in Oracle or SQL Server, then pulls data from the database and exports to csv files.
I had the same problem with SSDT 2017 targeting SQL Server 2016. Never found out what caused it as it happened intermittently. Uninstalled and reinstalled SSDT and never had any problems again.

SSIS "The binary code or the script is not found" only on start_execution

When i launch my script from this stored procedure, it fails on the first script task.
EXEC SSISDB.catalog.start_execution #execution_id
I've got the following error:
The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
I've done this multiple times without results, i have a feeling that the problem must be somewhere else because when i launch it from Integration Services Catalogs it works.
I use SQL 2012 on local development computer and SQL 2016 on server.
The error message is misleading.
I was using VS2012 to dev and deploy on SQL2016, when you do that the script component wont work.
I used VS2015 and upgraded package to SQL2016 and it worked.

ssis package unexpected termination

I am migrating reporting guff to a new 2016 sql server.
One integration package which I have upgraded, deployed and created a job for runs and then terminates unexpectedly. The only messages are that validation starts then it terminates.
The event viewer just shows a warning saying the job failed.
The package is run by a proxy account that also has access to a file share with excel documents on it. If I run Management studio with that account and manually execute the package I get the exact same messages. So I don't think it has anything to do with the account or permissions etc. If I run the package in visual studio it works fine.
Any suggestions on next trouble shooting steps?? Or how I can view better logs/ error files??
Thanks in advance
Kirsty

Installing a SSIS package. Slightly confused

Ok - this is probably a silly question but what the hell.
I've created a SSIS package with configuration and a deployment manifest. When I copied this over to the server and double clicked it, the Package Wizard returned an error - that Integration Services wasn't installed - bad.
But when I did an export data task via SSMS, I noticed I could save this task as a package. When I set up a job I noticed I could actually select an SSIS package to schedule - even though SSIS is not installed(!?!) Does this mean I could just point to my earlier package and schedule that?
If so, do you only need Integration Services installed in order to install packages within SQL Server - its fine to run them from the file system?
Cheers
Here is a good article on different ways to execute a package programmatically:
http://blogs.msdn.com/b/michen/archive/2007/03/22/running-ssis-package-programmatically.aspx