Compilation error in SSIS Package when running in SQL Server 2014 - ssis

We recently upgraded from SQL Server 2012 to SQL Server 2014. We have one SSIS package which was running successfully in SQL Server 2012 but coming to SQL Server 2014 we are getting the below error:
Microsoft (R) SQL Server Execute Package Utility Version 12.0.2456.0
for 64-bit Copyright (C) Microsoft Corporation. All rights reserved.
Started: 4:38:42 AM Error: 2015-11-12 04:38:54.08 Code:
0x00000005 Source: File to SQL Staging File to SQL Staging
Description: Failed to compiled scripts contained in the package. Open
the package in SSIS Designer and resolve the compilation errors. End
Error Error: 2015-11-12 04:38:54.08 Code: 0x00000005 Source:
File to SQL Staging File to SQL Staging Description: CS1705 -
Assembly 'Microsoft.SqlServer.ManagedDTS, Version=12.0.0.0,
Culture=neutral, uses 'Microsoft.SqlServer.DTSRuntimeWrap,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
which has a higher version than referenced assembly
'Microsoft.SqlServer.DTSRuntimeWrap, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91', d:\MSSQL11
(x86)\120\SDK\Assemblies\Microsoft.SQLServer.ManagedDTS.dll, 0, 0 End
Error Error: 2015-11-12 04:38:54.11 Code: 0x00000005 Source:
File to SQL Staging File to SQL Staging Description: The binary
code for the script is not found. Please open the script in the
designer by clicking Edit Script button and make sure it builds
successfully. End Error Error: 2015-11-12 04:38:54.88 Code:
0x00000004 Source: File to SQL Staging Description: The
binary code for the script is not found. Please open the script in the
designer by clicking Edit Script button and make sure it builds
successfully. End Error Error: 2015-11-12 04:38:54.88 Code:
0xC0024107 Source: File to SQL Staging Description: There
were errors during task validation. End Error DTExec: The package
execution returned DTSER_FAILURE (1). Started: 4:38:42 AM Finished:
4:38:54 AM Elapsed: 12.422 seconds. The package execution failed.
The step failed.
Can you please let us know the reason for error.

Related

Error on Acquiring Connection in SSIS package using Connection string from Configuration File

I am getting below error during execution of SSIS Package which is running by a Sql Schedule Job and using a config file for DB Connection. Job is running in a different domain user account which has admin privileges. SSIS package Protection level is DONT SAVE SENSITIVE.
Executed as user: domainname\user. Microsoft (R) SQL Server Execute Package Utility Version 10.50.6560.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 11:59:25 PM Error: X/X/XXXX 23:59:27.73 Code: 0xC0202009 Source: XYZ Connection manager "DB_1" 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 'USR_1.". End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC020801C Source: Action1 source [1] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DB_1" 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: X/X/XXXX 23:59:27.73 Code: 0xC0047017 Source: Action1 SSIS.Pipeline Description: component "CC source" (1) failed validation and returned error code 0xC020801C. End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC004700C Source: Action1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: X/X/XXXX 23:59:27.73 Code: 0xC0024107 Source: Action1 Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:59:25 PM Finished: 11:59:27 PM Elapsed: 1.966 seconds. The package execution failed. The step failed.
Sql User USR_1 is used during Package Design Time. But DB Connection String has different Sql Login in Config File USR_2. This error Start to come after changing the Login Password for Sql User USR_2. But We are able to Connect SQL MGMT Studio with USR_2 with New Password. And When we use USR_1 user and its password in COnfig File. This error does not come.
I have found root cause behind this issue.
Some unwanted characters were present in the password.
[] () , ; ? * ! # =.

SSIS package fails when used in SQL Server Agent (SQL to MySql connection)

I have create a Data Flow Task with ADO NET Source (Local SQL Server), Data Conversion Step and ADO NET Destination (ODBC Provider).
While in BIDS everything works fine, when iam running the package from SQL Server Agent i get the following error:
"Message
Executed as user: ISK\SYSTEM. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 5:31:26 μμ
Error: 2017-08-20 17:31:27.79
Code: 0xC0208452
Source: Data Flow Task ADO NET Destination [22]
Description: ADO NET Destination has failed to acquire the connection {F2EA5342-B616-4E16-80E5-2744574A453A}. The connection may have been corrupted. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC0047017 Source: Data Flow Task SSIS.Pipeline Description: component "ADO NET Destination" (22) failed validation and returned error code 0xC0208452. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC004700C Source: Data Flow Task SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2017-08-20 17:31:27.79 Code: 0xC0024107 Source: Data Flow Task Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:31:26 μμ Finished: 5:31:27 μμ Elapsed: 1.622 seconds. The package execution failed. The step failed."
I have try everything i could find:
Run64BitRuntime - False
ProtectionLevel - DontSaveSensitive
ExecutionOption of JobStep - Use 32 Bit Runtime
Created a package configuration file and set there the connection password for the mysql database.
I will be more than happy if anyone could point some directions

ssis output to file error in job - Cannot open the datafile

I have a ssis job scheduled to run.
It executes a procedure and then selects from a table to output to a file.
The ssis package runs fine in ssis and manually running the dtsx file.
When it runs as a job, all of it completes fine except the part where it tries to save to a file.
Here's the error ( i removed hostname\username)
Executed as user: {hostnamexxx\usernamexxx}. Microsoft (R) SQL Server
Execute Package Utility
Version 10.0.1600.22 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started: 2:33:29 PM
Error: 2014-09-30 14:36:23.57
Code: 0xC020200E
Source: Data Flow Task Flat File Destination [22]
Description: Cannot open the datafile "P:\\Ordbsjia_ORDER_0003637.DAT".
End Error
Error: 2014-09-30 14:36:23.57
Code: 0xC004701A
Source: Data Flow Task SSIS.Pipeline
Description: component "Flat File Destination" (22) failed the pre-execute phase and returned error code 0xC020200E.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 2:33:29 PM
Finished: 2:36:23 PM
Elapsed: 174.422 seconds. The package execution failed. The step failed.

SQL Server Agent Error on running an SSIS package

When trying to execute an SSIS package I get the following error:
Date 14/08/2013 15:02:42 Log Job History (test)
Step ID 1 Server YGAL1-MOBL1 Job Name test Step Name ssis
Duration 00:00:00 Sql Severity 0 Sql Message ID 0 Operator
Emailed Operator Net sent Operator Paged Retries Attempted 0
Message Executed as user: GER\YGAL1-MOBL1$. Microsoft (R) SQL Server
Execute Package Utility Version 10.50.1600.1 for 64-bit Copyright
(C) Microsoft Corporation 2010. All rights reserved. Started:
15:02:42 Error: 2013-08-14 15:02:42.84 Code: 0xC0011007
Source: {0AF31012-7A56-4B28-92EF-BE439E68E6F0} Description:
Unable to load the package as XML because of package does not have a
valid XML format. A specific XML parser error will be posted. End
Error Error: 2013-08-14 15:02:42.84 Code: 0xC0011002 Source:
{0AF31012-7A56-4B28-92EF-BE439E68E6F0} Description: Failed to
open package file "C:\Users\ygal1\Documents\Visual Studio
2008\Projects\Integration Services Project2\Integration Services
Project2\Package.dtsx" due to error 0x80070005 "Access is denied.".
This happens when loading a package and the file cannot be opened or
loaded correctly into the XML document. This can be the result of
either providing an incorrect file name was specified when calling
LoadPackage or the XML file was specified and has an incorrect format.
End Error Could not load package "C:\Users\ygal1\Documents\Visual
Studio 2008\Projects\Integration Services Project2\Integration
Services Project2\Package.dtsx" because of error 0xC0011002.
Description: Failed to open package file
"C:\Users\ygal1\Documents\Visual Studio 2008\Projects\Integration
Services Project2\Integration Services Project2\Package.dtsx" due to
error 0x80070005 "Access is denied.". This happens when loading a
package and the file cannot be opened or loaded correctly into the XML
document. This can be the result of either providing an incorrect file
name was specified when calling LoadPackage or the XML file was
specified and has an incorrect format. Source:
{0AF31012-7A56-4B28-92EF-BE439E68E6F0} Started: 15:02:42 Finished:
15:02:42 Elapsed: 0.046 seconds. The package could not be found.
The step failed.
Any ideas on how can I solve it?
i had a similar problem and what i did to get my package to run was:
a. Open Job properties in SQL Server
b. On the Steps page in the Package field: I used the entire folder name instead of the mapped name, for example: \share\allusers\myuserid\mypackage.dtsx instead of A:\mypackage.dtsx
Best.
It looks to me like the Service account for the SQL Agent doesn't have permissions to read package.dtsx.
Maybe check which account is running the SQL Agent & give it NTFS read permissions to C:\Users\ygal1\Documents\Visual Studio 2008\Projects\Integration Services Project2\Integration Services Project2
Or store the DTSX file in a location the SQL Agent account can access?

Getting error loading data into the MS Access using SSIS

Message
Executed as user: WORKGROUP\REPORTING$. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 4:10:44 PM Error: 2013-06-26 16:10:45.69 Code: 0xC0209303 Source: WAP_Success_DUMP Connection manager "SAME" Description: The requested OLE DB provider Microsoft.Jet.OLEDB.4.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: 2013-06-26 16:10:45.69 Code: 0xC020801C Source: ALL OLE DB Destination [173] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SAME" 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: 2013-06-26 16:10:45.69 Code: 0xC0047017 Source: ALL SSIS.Pipeline Description: OLE DB Destination failed validation and returned error code 0xC020801C. End Error Error: 2013-06-26 16:10:45.69 Code: 0xC004700C Source: ALL SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2013-06-26 16:10:45.69 Code: 0xC0024107 Source: ALL Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 4:10:44 PM Finished: 4:10:45 PM Elapsed: 1.528 seconds. The package execution failed. The step failed.
I am getting the above error ,when I executed the package using Sql Server job agent.When I execute the package using BIDS its running successfully.I have changed my solution to the Run64bitRunTime false I am getting the some other errors.
I have run into this before. I had to change the Run64bitRunTime property to false. Then make sure the appropriate driver was installed on the server. Ultimately I started using the ACE drivers.