问题
The error:
There was an exception while loading Script Task from XML: System.Exception: The Script Task uses version 14.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services. at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)
I'm doing exactly what it says, but it does not help.
Any solution?
回答1:
This worked for me:
- Install SSDT-BI for Visual Studio 2013.
- Open your solution in Visual Studio 2015.
- Select your SSIS Project in the Solution Explorer.
- In the Project menu select Properties.
- In the Property Pages dialog select Configuration Properties -> General
- Under Deployment Target Version change the Target Server Version to "SQL Server 2014."
- Clean and rebuild solution and redeploy.
回答2:
In the revised version of the SSDT (now 14.0.61x), there is a fix.
Install new version. (SSDT For download)
Right click project > Properties > Configuration Properties > General > TargetServerVersion - Update to SQL Server 2014 > Redeploy.
回答3:
Even though this question is a bit dated, I am getting the same error on the targeted server, but in a slightly different context:
- created an SSIS package targeting SQL Server 2014
- add a script task
- deployed it to SQL Server 2014
- package validation failed with "The Script Task uses version 15.0 script that is not supported in this release of Integration Services..."
I used the following environments for the development and deployment:
- VS2015 Update 3
- SSDT v 17.1
- Deployed using SSMS v17.1
The current SSDT version 17.1 provides a support to target SQL Server 2014 - SQL Server vNext. The current version of the SSDT resolves the issue in the question by providing targeted option in the project configuration as already mentioned.
I noticed that the above SSIS project works on the targeted server if deployed with:
- VS 2015 (Select SSIS Project -> Right Click -> Select Deploy)
- SQL Server 2014 SSIS Deployment Wizard (probably available only if you have a local instance installed; found in the Microsoft SQL Server 2014 Windows Start Menu)
If you try to deploy it using SQL Server Management Studio v17.1 version of the SSIS Deployment Wizard the deployed package fails. The deployed script task is deployed as version 15.0 that is not supported on the SQL Server 2014.
If I deploy the same package using SSIS Deployment Wizard from Microsoft SQL Server vNext CTP2.0 Windows Start Menu, which probably got added by installing SSMS 17.1, the deployed package script task fails with same error.
In summary:
- The latest SSDT v17.1 for VS2015 resolves above issue by providing targeted server configuration options
- It needs to be deployed through Visual Studio 2015
- It can be deployed using the targeted server version of the SSIS Deployment Wizard
- If using the latest SSMS v17.1 and build-in SSIS Deployment Wizard the SSIS package Script Task will fail on the targeted server for being upgraded to SQL Server 2017 version
Maybe this is by design, but it is very confusing and caught me of guard. Just in case this is a bug I submitted a bug report.
来源:https://stackoverflow.com/questions/34893267/ssis-script-task-vs15-not-work-when-deploy-on-sql-server-2014