SSIS integrated with SQL Agent - sql-server

I am trying to run an SSIS job with SQL Agent job (Management Studio 2016). The SSIS job is as follows Source: Oracle to Destination: Excel file on another a shared folder(network). Without setting up a proxy ( it failed on me several times) I am getting this message.
1: Config file is also attached to the Job
Thanks
"Message
Executed as user: OMH\Istcrmt. Microsoft (R) SQL Server Execute Package Utility Version 13.0.1601.5 for 32-bit Copyright (C) 2016 Microsoft. All rights reserved. Started: 12:43:17 PM Error: 2016-12-01 12:43:18.35 Code: 0xC0202009 Source: Package Connection manager "Excel Connection Manager" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "'S:\Shared\SFD\DAT Reporting\Rich Test.xls' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.". End Error Error: 2016-12-01 12:43:18.35 Code: 0xC020801C Source: Data Flow Task Excel Destination [2] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2016-12-01 12:43:18.35 Code: 0xC0047017 Source: Data Flow Task SSIS.Pipeline Description: Excel Destination failed validation and returned error code 0xC020801C. End Error Error: 2016-12-01 12:43:18.35 Code: 0xC004700C Source: Data Flow Task SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2016-12-01 12:43:18.35 Code: 0xC0024107 Source: Data Flow Task Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 12:43:17 PM Finished: 12:43:18 PM Elapsed: 0.594 seconds. The package execution failed. The step failed."

On the basis of your error code,anyone can guess the error.
Actually you have not set the file path correctly in connection Manager.
Please set the path in Connection Manager with your server Name(Network Location path), please check below path for your reference:
"\\10.160.25.255\S$\Shared\SFD\DAT Reporting\Rich Test.xlsx"
You can used Server IP (10.160.25.255 for example) or host name (WKWIN9628520) instead of IP , then definitely this error won't come again.

Related

The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered (SSIS to populate SQL table from Access source)

I created an SSIS package last week (my first one) using a guide and it parsed correctly and populated my SQL table. I then consulted another guide to create a job to automate the updating of this table but I discovered this morning that this job has been failing. I exported the log and below is the error. Can someone help me pinpoint what the issue is? I think it may be something along the lines of needing to install Microsoft.ACE.OLEDB.12.0, but I really don't know. I initially checked the box to run in 32bit runtime, but it failed on that as well as when I tried unchecking it, in case that is important.
09/03/2019
10:50:14,Update_Equipment_table,Error,1,SERVER,Update_Equipment_table,Update
Equipment Table,,Executed as user: SERVER\SYSTEM. Microsoft (R)
SQL Server Execute Package Utility Version 13.0.1601.5 for 64-bit
Copyright (C) 2016 Microsoft. All rights reserved. Started:
10:50:14 AM Error: 2019-09-03 10:50:15.94 Code: 0xC0209303
Source: Package Connection manager
"\SERVERPATH\ricochet_tanks.mdb"
Description: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is
not registered. If the 64-bit driver is not installed run the
package in 32-bit mode. Error code: 0x00000000. An OLE DB record is
available. Source: "Microsoft OLE DB Service Components" Hresult:
0x80040154 Description: "Class not registered". End Error Error:
2019-09-03 10:50:15.94 Code: 0xC001002B Source: Package
Connection manager
"\SERVERPATH\ricochet_tanks.mdb"
Description: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered
on the local machine. For more information see
http://go.microsoft.com/fwlink/?LinkId=219816 End Error Error:
2019-09-03 10:50:15.94 Code: 0xC020801C Source: Data Flow Task
OLE DB Source 1 Description: SSIS Error Code
DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager
"\SERVERPATH\ricochet_tanks.mdb"
failed with error code 0xC0209303. There may be error messages posted
before this with more information on why the AcquireConnection method
call failed. End Error Error: 2019-09-03 10:50:15.94 Code:
0xC0047017 Source: Data Flow Task SSIS.Pipeline Description:
OLE DB Source failed validation and returned error code 0xC020801C.
End Error Error: 2019-09-03 10:50:15.94 Code: 0xC004700C
Source: Data Flow Task SSIS.Pipeline Description: One or more
component failed validation. End Error Error: 2019-09-03 10:50:15.94
Code: 0xC0024107 Source: Data Flow Task Description: There
were errors during task validation. End Error DTExec: The package
execution returned DTSER_FAILURE (1). Started: 10:50:14 AM
Finished: 10:50:15 AM Elapsed: 1.422 seconds. The package execution
failed. The step failed.,00:00:01,0,0,,,,0
Here is a screenshot of the job details. I believe because I'm using File system as the package source, I have no option to select server credentials or credential type.
The 64 bit SQL server requires 64 bit ACE driver. If you have the correct driver installed already, need to set the following properties:
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1;
GO

SSIS OLEDB source error - Opening a rowset for SQL Server View failed

We have an SSIS package where we have used SQL server view as a data source by selecting data access mode as Table or view. The package has been scheduled to run daily using SQL Server Job. Most of the time the job gets executed without any issue, but once in a while, we are getting the below-given error.
Microsoft (R) SQL Server Execute Package Utility Version 10.50.6560.0
for 32-bit Copyright (C) Microsoft Corporation 2010. All rights
reserved. Started: 6:08:03 AM Error: 2019-02-06 06:10:56.02
Code: 0xC0202009 Source: Load Package OLE DB Source [1]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has
occurred. Error code: 0x80004005. End Error Error: 2019-02-06
06:10:56.40 Code: 0xC02020E8 Source: Load Package OLE DB
Source [1] Description: Opening a rowset for "[ss].[someView]"
failed. Check that the object exists in the database. End Error
Error: 2019-02-06 06:10:56.80 Code: 0xC004701A Source: Load
Package SSIS.Pipeline Description: component "OLE DB Source" (1)
failed the pre-execute phase and returned error code 0xC02020E8.
The view does exist in the database. What could be the root cause of this issue?

SSIS Package is executing successfully, While job with same package is failing

I have created a SSIS package for tickting system. It loads the data from Excel to Staging table then to production table.
The steps of the package are as follows:
1. Truncate Staging table.
2. Load excel to staging table.
3. Call a procedure that is responsible for data transformation as well data loading from staging to prod table.
I have imported the package on SQL Server integration services.
The package is executing succesfully. But when i ran the job with the package I got the following error.
Source: TicketWeeklyLoad Connection manager "Ticket Weekly Sheet Connection Manager"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft JET Database Engine"
Hresult: 0x80004005 Description: "The Microsoft Jet database engine cannot open the file 'C:\Users\MyUser\Desktop\CMS\DATA\SSIS\File.xls'.
It is already opened exclusively by another user, or you need permission to view its data.".
End Error Error: 2015-04-06 16:46:53.40 Code: 0xC020801C
Source: Load Weekly Excel to Tct_Stg Ticket Weekly Source Excel Sheet [103]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "Ticket Weekly Sheet Connection Manager" failed with error code 0xC0202009.
There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error Error: 2015-04-06 16:46:53.40 Code: 0xC0047017 Source: Load Weekly Excel to Ticket_Stg SSIS.Pipeline
Description: Ticket Weekly Source Excel Sheet failed validation and returned error code 0xC020801C.
End Error Error: 2015-04-06 16:46:53.40 Code: 0xC004700C Source: Load Weekly Excel to Ticket_Stg SSIS.Pipeline
Description: One or more component failed validation. End Error Error: 2015-04-06 16:46:53.40
Code: 0xC0024107 Source: Load Weekly Excel to Ticket_Stg
Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1).
Started: 4:46:53 PM Finished: 4:46:53 PM Elapsed: 0.313 seconds. The package execution failed. The step failed.
In Addition Run64BitRuntime set to false and the package is also using 32 bit runtime that i have set using Executing Optins tab in the Package properties.
File is closed and i do have the permission to open it.
I am using windows 8, SQL server 2014 and Visual Stdio 2010 for SSIS.
Any suggestion would be really helpful.
Job was failing because the Network Service was set as Built-In account in SQL Server Agent. But the Excel file was on my local system. Once I selected Local System as Built-in account job ran successfully.

Package deployment error - change connection string to SQLNCLI10 or find and install support for SQLNCLI.1?

I tried to run a package under SQL server agent. Most of my error messages indicate that I have to - change connection string to SQLNCLI10 or find and install support for SQLNCLI.1.
I need to know the meaning of this error. Is it as simple as installing a driver and registering it or is it more than just drivers. Could there be non-driver related reasons for this problem ? I changed the provider as mentioned in the error and now i get new errors, which are given after 1st error.
Thanks.
Full error -
Code: 0xC0209302 Source: MyPackage Connection manager "MyOleDBConnection" Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR. The requested OLE DB provider SQLNCLI.1 is not registered.
Error code: 0x00000000. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
End Error
Code: 0xC020F42A Source: MyPackage Connection manager "MyOleDBConnection" Description: Consider changing the PROVIDER in the connection string to SQLNCLI10 or
visit http://www.microsoft.com/downloads to find and install support for SQLNCLI.1.
End Error
Code: 0xC020801C Source: MyPackage Log provider "SSIS log provider for SQL Server" Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "MyOleDBConnection" failed with error code 0xC0209302.
There may be error messages posted before this with more information on why the AcquireConnection method call failed.
COM error object information is available. Source: "MyPackage" error code: 0xC0209302
Description: "Consider changing the PROVIDER in the connection string to SQLNCLI10 or
visit http://www.microsoft.com/downloads to find and install support for SQLNCLI.1. ".
End Error
Code: 0xC0209302 Source: MyPackage Connection manager "MyOleDBConnection" Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR.
The requested OLE DB provider SQLNCLI.1 is not registered. Error code: 0x00000000.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
End Error
Code: 0xC020F42A Source: MyPackage Connection manager "MyOleDBConnection" Description: Consider changing the PROVIDER in the connection string to SQLNCLI10 or
visit http://www.microsoft.com/downloads to find and install support for SQLNCLI.1.
End Error
Code: 0xC020801C Source: DFT Insert Execution Log OLE_DST Insert SSIS Execution Log [25] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "MyOleDBConnection" failed with error code 0xC0209302.
There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error
Code: 0xC0047017 Source: DFT Insert Execution Log SSIS.Pipeline Description: component "OLE_DST Insert SSIS Execution Log" (25) failed validation and returned error code 0xC020801C.
End Error
Code: 0xC004700C Source: DFT Insert Execution Log SSIS.Pipeline Description: One or more component failed validation.
End Error
Code: 0xC0024107 Source: DFT Insert Execution Log Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
One more error -
Code: 0xC0202009 Source: MyPackage Connection manager "MyOLEDBConnection" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'MyUser'.".
End Error
Code: 0xC020801C Source: MyPackage Log provider "SSIS log provider for SQL Server" Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection
method call to the connection manager "MyOLEDBConnection" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method
call failed. COM error object information is available. Source: "MyPackage" error code: 0xC0202009 Description: "SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'MyUser'.". ".
End Error
Code: 0xC0202009 Source: MyPackage Connection manager "MyOLEDBConnection" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'MyUser'.".
End Error
Code: 0xC020801C Source: DFT Insert Execution Log OLE_DST Insert SSIS Execution Log [25] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "MyOLEDBConnection" failed with error code 0xC0202009. There may be error messages posted before this with more information
on why the AcquireConnection method call failed.
End Error
Code: 0xC0047017 Source: DFT Insert Execution Log SSIS.Pipeline Description: component "OLE_DST Insert SSIS Execution Log" (25) failed validation and returned error code 0xC020801C.
End Error
Code: 0xC004700C Source: DFT Insert Execution Log SSIS.Pipeline Description: One or more component failed validation.
End Error
Code: 0xC0024107 Source: DFT Insert Execution Log Description: There were errors during task validation.
End Error
Understanding the problem
The SQL Server Native Client provider is SQLNCLI* in an OLE DB Connection String.
2005 uses SQLNCLI.1
2008 uses SQLNCLI10
2012 uses SQLNCLI11
As of this posting, there is not a SQLNCLI12 included with the CTP2 release of SQL Server 2014.
These providers can generally talk to previous versions of SQL Server but version forwardness is less probable (with the exception of SQLNCLI11 communicating with 2014).
Root cause
You have an OLE DB Connection string using a provider that does not exist on that machine. Perhaps you built the package in a 2005 format but are running it on a 2008 instance. At any rate, your connection strings in the format of
Provider=SQLNCLI.1;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
would need to be updated to match the provider on the machine
Provider=SQLNCLI10;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
This can generally be addressed through judicious use of Configurations

SSIS package can be run using "Execute Package Utility" but not in an agent job?

I imported a SSIS package, which pump a local Sql server table to a remote Sql server, into MSDB SSIS storage and I can execute the package by right clicking and executing. However, it raises following error when I tried to run it in an agent job. The destination connection uses an Sql login on the remote Sql server.
Executed as user: Domain\MyLogin. Microsoft (R) SQL Server Execute Package Utility Version 10.0.4000.0 for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 6:04:09 PM Error: 2013-05-01 18:04:09.75 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2013-05-01 18:04:10.31 Code: 0xC0202009 Source: Reload_Table Connection manager "DestinationConnectionOLEDB" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'QA_USERS'.". End Error Error: 2013-05-01 18:04:10.31 Code: 0xC020801C Source: Data Flow Task 1 Destination - tmp_test [34] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DestinationConnectionOLEDB" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2013-05-01 18:04:10.31 Code: 0xC0047017 Source: Data Flow Task 1 SSIS.Pipeline Description: component "Destination" (34) failed validation and returned error code 0xC020801C. End Error Error: 2013-05-01 18:04:10.31 Code: 0xC004700C Source: Data Flow Task 1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2013-05-01 18:04:10.31 Code: 0xC0024107 Source: Data Flow Task 1 Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 6:04:09 PM Finished: 6:04:10 PM Elapsed: 0.766 seconds. The package execution failed. The step failed.
This happened to me before, and it is because you are using windows authentication in the SSIS package, that means that when you run it, it will use your Windows user, when you run it from the server it will use the server's user.
In other words, avoid using windows authentication in your SSIS and change it to a regular SQL user, that will fix your issues.

Resources