ODBC error when executed by SQL JOB AGENT - sql-server

I am getting an error when I try to execute my SSIS Package by the Job Agent.
If I run through Visual Studio it runs perfectly.
The error is:
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on ODBC Source returned error code 0x80004005. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
This ODBC is an "IBM i Access for Windows ODBC data source".
I have try to put the packages running at 32-bit. Change some parameters in my connection (that is a project parameter).
Update:
I had to change my queries and work with openquery. Just a note, get attention to numeric columns because I was having problems with decimal values.

Related

SSIS Package Fails when pointed to 2019

I am starting the process of upgrading our SQL server from 2016 to 2019. I upgraded my SSMS to the newest version. That allowed me to flip the compatibility type of SSISDB to 2019. I took a SSIS package and ran it pointing to 2016, no issues and the data came down. I then updated it to point to SQL Server 2019 within SSDT and it bombed out with an ODBC error I'll post below. I then back tracked it to point to compatibility level 2017 within SSDT and it pulled data down with no issues at all. So on the surface it looks like any previous versions run fine within SSDT but as soon as I convert it to target version 2019, they fail within the application locally. Has anyone seen this that may be able to give me some direction on where to look next? I haven't been able to find much online.
[ODBC Source 2] Error: SQLSTATE: 07006, Message: [Cache ODBC][State : 07006][Native Code 7006]
[C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Commo]
ERROR #388: Unknown error, code 7006;
[ODBC Source 2] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "ODBC Source.Outputs[ODBC Source Output]" failed because error code 0xC020F450 occurred, and the error row disposition on "ODBC Source" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on ODBC Source returned error code 0xC0209029. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
EDIT: I've narrowed this down to 1 specific field that is numeric to numeric. If I remove it, the package is successful. The advanced editor looks ok to me.
External
Output

SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR with Code: 0xC020901E

I have an SSIS package that runs perfectly fine on Visual Studio 2013 but when I deploy the package to SQL server agent and execute it there I get the following error:
Description: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Lookup" failed because error code 0xC020901E occurred, and the error row disposition on "Lookup.Outputs[Lookup Match Output]" specifies failure on error. An error occurred on the specified object of the specified component.
The package is running on Sql Server 2014.
I changed how to handle the rows with no matching entries to Redirect rows to no match output.The default was set to fail component.

Odata: Cannot acquire a managed connection from the run-time connection manager

Problem
Get the error (see below) when executing an SSIS Odata connection to the Medicare Data site despite successfully previewing data.
Tried
Running as 32-bit
Reinstalling the driver
SSIS Error in Debug
Error: 0xC020801F at data convert, OData Source [21]: Cannot acquire a managed connection from the run-time connection manager.
Error: 0xC0047017 at data convert, SSIS.Pipeline: OData Source failed validation and returned error code 0xC020801F.
Error: 0xC004700C at data convert, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at data convert: There were errors during task validation.
Turns out its a really dumb thing: use http instead of https despite the Medicare site reference to https
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/72a5752a-22e5-4542-97c3-7a4044e0fea5/ssis-odata-source-works-in-development-but-fails-when-run-0xc020801f
Can you open the SSIS package from within Visual Studio shell, and then look at the oData connection and test it? I'm having a similar problem, and when I test my connection, I'm getting an Internal Server Error (500) returned from the SharePoint server where I'm trying to connect.

SSIS Deployment: Connection Issue

I am facing an issue while deploying my SSIS packages to a target machine.
I have done the deployment through an indirect XML configuration. I use one parent package which invokes all the other child packages in loading a data warehouse. Child packages acquire the database connections via a parent package variable. Thus an isolated child package is not executable.
In this setup the flow works perfectly in my development machine. But when I try to deploy it to another one some packages run and populate the tables while others with the same configurations fail. I have made the "Delay Validation" property to true in all the child packages as well.
Follwing are the errors I get in order:
Error 17 Validation error. Extract and Populate Data to DimRetailer: DimRetailer: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for ODBC Drivers" Hresult: 0x80004005 Description: "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". DimRetailer.dtsx 0 0
Error 18 Validation error. Extract and Populate Data to DimRetailer: Extract and Populate Data to DimRetailer: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Con_XONTRDDATAMART_OLEDB" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. DimRetailer.dtsx 0 0
Error 19 Validation error. DimRetailer Connection manager "Con_XONTRDDATAMART_OLEDB": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for ODBC Drivers" Hresult: 0x80004005 Description: "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". DimRetailer.dtsx 0 0
Error 20 Validation error. Extract and Populate Data to DimRetailer Expire Old SCD2 Rows [617]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Con_XONTRDDATAMART_OLEDB" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. DimRetailer.dtsx 0 0
What I can not realize is why some packages run alright while others fail which share the same connections.
Additionally, the final deployment will be on a server with a 64 bit OS, are there any steps I should specifically take to make the deployment run smoothly?
Thank you very much for any contribution, in advance.
I have a setup similar to yours. However, what i share to child packages is a connection string. It might be worth a try if you are still facing the same issue

SQL Server Export Errors

I'm trying to export the results of a SQL statement via the SQL Server Import and Export Wizard. I am receiving 2 errors:
- Copying to `Query` (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x00040EDA Description: "Warning: Null value is eliminated by an aggregate or other SET operation.".
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - Query" (1) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
The Executing Actions works just fine, if I run the SQL in the SQL Server management Studio it works just fine.
What do these errors mean an how can solve them so the export works? If it matters I'm exporting to Excel with the version 97-2003 selected.
This article discusses the cause and solution to this error. http://www.developmentnow.com/g/113_2006_9_0_0_828485/Warning-Null-value-is-eliminated-by-an-aggregate-or-other-SET-operation-.htm
The quick-answer is that you can turn off warnings by using this command before you run your query:
SET ANSI_WARNINGS OFF
However, if it is within a SP, it will recompile the SP every time you run it.

Resources