JOB With SSIS Step Fails If Package Contains A Script Task
I have a Job Step defined to execute a SSIS Package. This SSIS package contains a Script Task. The Job fails with the message "Package execution failed. The step failed."
I am logging events in the package and when the packages gets to the Script Task the log reports "The script files failed to load". If I disable the Script Task from the package it executes fine.
Curiously, the package runs successfully with the Scritp task enabled using dtexecui and dtexec from the command line.
Only if I include the Package in a job step with the Script Task enabled does it fail.
Any help would be appreciated.
Juantana,
Yes, set your Script Task "PrecompileScriptIntoBinaryCode" Property=True and then open and close your script. Save, redeploy and it should work. Let me know if you have any questions.
-Steve
I have about 30 dtxs that I would like to recompile its scripts to solve this issue. I would like to avoid to open each package, then open each script in the package and do the save to recomplie.
Is there a way to recompile from the command line?
Thanks!
Previously I said "randomly" but I think I have it figured out when this error occurs:
If I am working on a package, open a different package and copy a script object and paste into the one I am working on it will not work in 64-bit without a recompile (but will work in 32 bit).