I have a number of SSIS packages that contain script tasks and transformations that fail when upgraded to SQL Server 2017. They were originally SQL Server 2012 packages and I successfully upgraded them to SQL Server 2016. However, when I attempt to upgrade them to 2017 I get multiple errors like the following:
'Dts' is not a member of 'Microsoft.SqlServer'., ScriptMain.vb, 17, 19
Type 'ScriptComponent' is not defined., ComponentWrapper.vb, 59, 39
Type 'Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase' is not defined., ScriptMain.vb, 14, 14
If I copy the same script into a new script task window it works fine. However, this isn’t a feasible solution as we have a number of complex script components in data transformations that are not a simple copy and paste. I am using SQL Server Data Tools (SSDT) for Visual Studio version 14.0.16165.0, but I installed the latest release 15.7.1 on another system and encountered the same problem when upgrading to 2017.
Also, I am unable to update the Target framework to .NET Framework 4.5. When I attempt to it looks like it is making the change and then I'm right back to .NET Framework 4.
As far as I can tell this appears to be a bug in SSDT that will hopefully be fixed in an upcoming release.
Any thoughts or suggestions on the matter would be greatly appreciated.