I am having an issue with SSIS packages where scripts included in package parts ar not executed when the target server version is SQL Server 2016.
Create an SSIS project, set target server version to SQL Server 2016 (very important!)
Go ahead and add a simple script in the default Package. This should work fine.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
- However I tested this issue with other scripts Something like:
MessageBox.Show("Great. Another bug. Thanks a lot guys...");
would do.
Create a package part.
Now just try re-creating the simple script from step 2 into the package part. Then add the package part onto the default Package or another package and execute the task. Even though the execution is successful, the script is not executed.
NOTE: If you try to copy the script from the default package into the package part, you should also notice a moronic error saying that the version is wrong. This is why I say to re-create the script in the package part.
I wonder if anyone could reproduce this issue and if there is a way around it? Worth noticing that this issue doesn't seem to happen when the target server is SQL 2017.