Error when adding a new SSIS package - sql-server

I have Visual Studio 2013 installed on machine in addition to MS SQL Server 2012. I used to use all the Business Intelligence projects in MS VS 2013 in a very normal way. However, recently when I created a new SSIS project and then clicked on the SSIS packages in order to create a new SSIS package, I got the following error:
Error creating package
------------------------------
ADDITIONAL INFORMATION:
Retrieving the COM class factory for component with CLSID {B5F5B1CF-7950-436C-B3BD-E193B1F5E5A5} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E). (Microsoft.SqlServer.ManagedDTS)
I hope the that the information I have provided are sufficient to explain my problem clearly.

I simply reinstalled the SSDT (SQL Server Data Tools), repaired my installed packages and the problem was solved.

Related

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2019.IDTSApplication160'

I am using SSIS with Visual Studio 2019 for creating and deploying packages on SQL Server 2019. Initially when my package was running on SSDT I deployed it on SSMS Integration server but there was no output.
So, I Checked in Visual Studio 2019: Project -> Project Properties -> Configuration Properties -> General -> Target Version, which was set to SQL Server 2022, So I changed it to SQL Server 2019.
When I tried to run the package again in Visual Studio 2019 I got this error:
Failed to load the package "Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2019.IDTSApplication160'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{037FE238-12C5-4313-AE13-9E116E90ACEA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).".
I tried registering the C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\DTS.dll using regsvr32 which shows success, but I am still getting the same error.
I also tried registering Microsoft.SqlServer.DTSRuntimeWrap.dll using gacutil.exe, still no luck.
Can someone tell me why am I getting this error and how to solve this.
Thank you in advance.
here is the workaround.
Here is the workaround: Solution Explorer -> right click project ->properties->debugging->Run64bitRuntime->set to false.
taken from https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects#:~:text=SSIS%20Execute%20Package,set%20to%20false.
I had the same problem with my VS 2019 after update to SSIS Projects 4.0. If possible, uninstall this version and install the latest general availability (GA) version 3.16, which can be downloaded here:
https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects
https://ssis.gallerycdn.vsassets.io/extensions/ssis/sqlserverintegrationservicesprojects/3.16/1645603822968/Microsoft.DataTools.IntegrationServices.exe
It solved the problem, you can run in 64bit runtime after downgrade.
I have only updated SSIS extension 3.16 to 4.0. I got same error. You should change configuration properties from right click project ->properties->debugging->Run64bitRuntime->set to false.
After that when i want to initiate VS, i got this warning '../Visual Studio 2019.lnk side by side configuration is incorrect'. I resolved the problem through repairing of SQL Server Integration Services Projects on Control Panel-->Programs and Properties.
I had the same problem start after updating Microsoft Data Tools Integration Services VS extension because of prompt by VS. The upgrade was to v4.0 which is not yet generally available.
https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects
On that page it states that "Version 3.16 is the latest general availability (GA) version, which does not support target server version SqlServer2022." There you will find a link to v3.16.
Uninstall v4.0 which, given how recently it was released, is probably still in your downloads folder, otherwise use Extension Manager. Then download and install 3.16. Be warned, both the uninstall and retro install were extremely slow.
Without a reboot, I opened the project and the package that failed with v.4.0, ran first time without problem.
Hope this helps somebody.

SSMS 18 & VS Community 2019 not recognizing that SSIS is installed

I have a new installation of SQL Server 2019, VS Community 2019 and SSMS 18.5 on Windows Server 2019. I use a stored procedure in SQL to call a DTS package to pull data from an offsite database to our local SQL Server. I have installed VS2019 with SSDT and then added the SSIS Projects extension. When I execute the stored procedure in SSMS I get the following errors.
Description: The registry key "SOFTWARE\Classes\CLSID{692A88CF-7641-45B7-8E01-7BEE602D40EE}\DTSInfo" cannot be opened.
End Warning
Warning: 2020-05-06 10:49:38.42
Code: 0x8004801E
Source: Data Flow Task 1 Data Flow Task 1 (SSIS.Pipeline)
Description: Cannot find the "CurrentVersion" value for component {692A88CF-7641-45B7-8E01-7BEE602D40EE}. The CurrentVersion value for the component cannot be located. This error occurs if the component has not set its registry information to contain a
CurrentVersion value in the DTSInfo section. This message occurs during component development, or when the component is used in a package, if the component is not registered properly.
End Warning
I have uninstalled VS and SSIS Projects twice to try and correct any registration issues with no change in results. In fact it's worse. VS seems to be confused about the state of SSIS; see image. I've check About Visual Studio and it shows SQL Server Data Tools v16.0.62003.05170 and SQL Server Integration Services v15.0.2000.94. SSIS shows up as an installed program on the server. I have rebuilt the package completely from scratch in VS 2019 and get the same errors.
Any help is appreciated

Error encountered when executing SSIS package

I am encountering the following error when executing an SSIS package:
Retrieving the COM class factory for component with CLSID {4555B0A5-E8D7-49BD-B299-3140C34D3769} failed due to the following error: e06d7363
Exception from HRESULT: 0xE06D7363.;
at Microsoft.SqlServer.Dts.Runtime.Package..ctor()
at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)
at Microsoft.SqlServer.Dts.Runtime.PackageItem.LoadPackage(IDTSEvents events)
at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ISServerExecutionEvents.LoadPackage(PackageItem item)
at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.StartPackage()
at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.PerformOperation()
This is what I have done:
Built the package in Visual Studio
Import the package into the Integrated Services Catalog in SQL Server Management Studio
Deployed the package to the Integrated Services Catalog
Executed the package (and got the error).
I checked online, and found that 0xE06D7363 means that a C++ exception has been thrown, which doesn't really help.
I also found that 4555B0A5-E8D7-49BD-B299-3140C34D3769 refers to a object named SSIS.Package.3 in the registry, but that also doesn't help.
Has anyone encountered this, and more importantly, does anyone know of a way of resolving it?
If Creating ssis package from an .net application
The problem is that that the application had been compiled with a reference to an SQL version ManagedDTS.dll and was being deployed to a SQL 2014 environment. Check the references and confirm that your reference to the ManagedDTS.DLL is using the version of the DLL that matches your production environment.
If you are creating an Integration Services Packages using Visual Studio:
In the property pages for an Integration Services project, on the General tab of Configuration Properties, select the TargetServerVersion property and choose SQL Server 2016, SQL Server 2014, or SQL Server 2012.
Read this MSDN article for more informations
This Article contains more details

How to use Sql server compact toolbox in visual studio 2015 - Asp.net core project

I am using visual studio 2015(asp.net core project).In my project I have created a database using server compact tool box. When I try to generate code to add entity data model to the current project the following error occurs: "Please add the Entity Framework.SqlserverCompact Nuget package to the project". I have added the package from Nuget package manager as follows. - Install-Package Microsoft.EntityFrameworkCore.SqlServer. Also I tried to add by manage nuget packages. Even then the same error occurs. Please let me know how to resolve this issue in asp.net core. Thanks in advance.
The error message says that you should display this package EntityFramework.SqlServerCompact as you want to use SqlServer Compact edition. You are installing this Microsoft.EntityFrameworkCore.SqlServer which is for the full feature Sql Server.
Remove the one you've installed and thy the one that error message suggests.
You should use the PMC command
Scaffold-DbContext
As described here to create a model from a database: https://github.com/ErikEJ/EntityFramework.SqlServerCompact/wiki/Using-EF-Core-with-SQL-Server-Compact-in-Traditional-.NET-Applications

SSIS Package fails to load - VS 2013

I created SSIS Package in VS 2013, however my target server is SQL Server 2008 R2. So after completing the development, when i tried scheduling SQL Job to call the package using SSMS (SQL server 2008 R2), i got the error while loading the package :
"TITLE: SSIS Execution Properties ------------------------------ The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. ------------------------------ ADDITIONAL INFORMATION: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. ------------------------------ BUTTONS: OK ------------------------------ ".
Looks like they both are incompatible. Can anyone suggest an alternative to deploy the package ?
If you have developed using VS 2013 and if you are using Project deployment model (not supported in 2008 R2). You can convert it to Package deployment model.
Backwards Compatibility doesn't work in VS for Integration services as mentioned by #NickyvV in comments.
You can try to open and save/redevelop the converted packages using BIDS (VS for SQL 2008 R2).
You cannot develop SSIS package for SSIS 2008R2 on VS 2013. VS 2013 supports packages for SSIS 2014 only.
For SSIS 2008R2 you have to use BIDS from SQL 2008 or VS 2008. Unfortunately, you will have to develop package from scratch, backporting from SSIS 2012+ DTSX format to 2008 is not supported.

Resources