admin管理员组文章数量:1303343
I have a SSIS package that will:
Look in a folder. Locate XML files. Load XML content in the variable Execute a stored procedure with the XML content as one of the inputs.
- If the XML doesn't fit the rules determined in my stored procedure, send back a failed flag, and move to an error folder for review.
- If the XML fits run the script, return a success flag, and move to a success folder.
Running this locally, I have success.
I've now deployed the package and have set up a new SQL Agent Job to execute this package with with an existent Service Account user.
After deploying, and running the job, it always will always take the error path and move the file to the error folder.
I have enabled logging that will write to the log table. The 'success' logs vs the 'failure' logs show a few major difference.
The ForEachLoop information log is not occurring.
The Script tasks information log (that loads the XML) is not occurring.
I also have setup a DTS.Events.FireInformation()
message to fire after the XML loading. It does not appear.
There is no error that occurs.
Thank you for your time in solving this.
Just To Review.. I have enabled logging that will write to the log table. I've ensured this not running 32 bit vs 64 I've tried to change the tasks' protection level to DontDaveSensitive I've ensured the package is pointing at the correct SQL version I've set the package to fail if the task fails
I expected to see more information about the failure, or to reveal an error but that didn't happen.
I have a SSIS package that will:
Look in a folder. Locate XML files. Load XML content in the variable Execute a stored procedure with the XML content as one of the inputs.
- If the XML doesn't fit the rules determined in my stored procedure, send back a failed flag, and move to an error folder for review.
- If the XML fits run the script, return a success flag, and move to a success folder.
Running this locally, I have success.
I've now deployed the package and have set up a new SQL Agent Job to execute this package with with an existent Service Account user.
After deploying, and running the job, it always will always take the error path and move the file to the error folder.
I have enabled logging that will write to the log table. The 'success' logs vs the 'failure' logs show a few major difference.
The ForEachLoop information log is not occurring.
The Script tasks information log (that loads the XML) is not occurring.
I also have setup a DTS.Events.FireInformation()
message to fire after the XML loading. It does not appear.
There is no error that occurs.
Thank you for your time in solving this.
Just To Review.. I have enabled logging that will write to the log table. I've ensured this not running 32 bit vs 64 I've tried to change the tasks' protection level to DontDaveSensitive I've ensured the package is pointing at the correct SQL version I've set the package to fail if the task fails
I expected to see more information about the failure, or to reveal an error but that didn't happen.
Share Improve this question edited Feb 10 at 23:29 Jghayes525 asked Feb 10 at 21:12 Jghayes525Jghayes525 1211 silver badge5 bronze badges 3- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Feb 11 at 4:57
- Maybe the folder doesn't exist in production? Or it points to empty one – siggemannen Commented Feb 11 at 10:30
- Please edit your question, and provide SSIS Script Task code. – Yitzhak Khabinsky Commented Feb 11 at 16:44
1 Answer
Reset to default 0I have a solution.
Earlier, in the midst of coding, I realized that the code was pointing to a newer version.
I proceeded to the project properties and changed the TargetServerVersion to 2019. I corrected the issue and rebuilt waiting for errors, but none came.
Later after finishing the code and deploying, it was silently failing to execute the script task which other components are dependent on.
This was because that script task was completed before I changed the target version, and it caused it to break somehow.
I (copied the contents) and then deleted and rebuilt the script task.
I then rebuilt and deployed the package.
The deployed job now works correctly.
本文标签:
版权声明:本文标题:sql server - SSIS SSDT VS 2022 - After Deploying, the XML Content is not Loaded by my Script Task - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741689983a2392665.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论