SSIS package fails when it is executed by procedure (2008)

Hi there,

I have a very anoying problem with SSIS. I've done new packages into same project, almost identical compared to old ones. They work well in visual studio, but I can't execute them using procedure. Old packages works just fine, but none of the new. Error message is in the end of my story.

Visual Studio version is 9.0.30729.1 and SQL Server version is 10.0.4000.0. Is it possible, that these not not updated versions could cause this problem?

Package ProtectionLevel is DonSaveSensitive.

Br,

Ville

Error messages, when package is executed by procedure:

Microsoft (R) SQL Server Execute Package Utility

Version 10.50.1600.1 for 64-bit

Copyright (C) Microsoft Corporation 2010. All rights reserved.

NULL

Started:  10:36:48 AM

Error: 2015-03-31 10:36:48.48

   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

Progress: 2015-03-31 10:36:48.65

   Source: Data Flow Task 1

   Validating: 0% complete

End Progress

Progress: 2015-03-31 10:36:48.81

   Source: Data Flow Task 1

   Validating: 50% complete

End Progress

Progress: 2015-03-31 10:36:48.81

   Source: Data Flow Task 1

   Validating: 100% complete

End Progress

Progress: 2015-03-31 10:36:48.82

   Source: Data Flow Task 1

   Validating: 0% complete

End Progress

Progress: 2015-03-31 10:36:48.88

   Source: Data Flow Task 1

   Validating: 50% complete

End Progress

Progress: 2015-03-31 10:36:48.89

   Source: Data Flow Task 1

   Validating: 100% complete

End Progress

Progress: 2015-03-31 10:36:48.89

   Source: Data Flow Task 1

   Prepare for Execute: 0% complete

End Progress

Progress: 2015-03-31 10:36:48.89

   Source: Data Flow Task 1

   Prepare for Execute: 50% complete

End Progress

Progress: 2015-03-31 10:36:48.89

   Source: Data Flow Task 1

   Prepare for Execute: 100% complete

End Progress

Progress: 2015-03-31 10:36:48.95

   Source: Data Flow Task 1

   Pre-Execute: 0% complete

End Progress

Progress: 2015-03-31 10:36:49.03

   Source: Data Flow Task 1

   Pre-Execute: 50% complete

End Progress

Warning: 2015-03-31 10:36:49.03

   Code: 0x80070003

   Source: Data Flow Task 1 Destination - tb_month_standard_idx_table_exp_032013-082013_20140307_csv
[34]

   Description: The system cannot find the path specified.

End Warning

Progress: 2015-03-31 10:36:49.28

   Source: Error Msg

   Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete

End Progress

Error: 2015-03-31 10:36:49.28

   Code: 0xC020200E

   Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]

   Description: Cannot open the datafile
"D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv".

End Error

Progress: 2015-03-31 10:36:49.29

   Source: Error Msg

   Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete

End Progress

Error: 2015-03-31 10:36:49.29

   Code: 0xC004701A

   Source: Data Flow Task 1 SSIS.Pipeline

   Description: component "Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv" (34) failed
the pre-execute phase and returned error code 0xC020200E.

End Error

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Pre-Execute: 100% complete

End Progress

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Post Execute: 0% complete

End Progress

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Post Execute: 50% complete

End Progress

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Cleanup: 0% complete

End Progress

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Cleanup: 50% complete

End Progress

Progress: 2015-03-31 10:36:49.29

   Source: Data Flow Task 1

   Cleanup: 100% complete

End Progress

DTExec: The package execution returned DTSER_FAILURE (1).

Started:  10:36:48 AM

Finished: 10:36:49 AM

Elapsed:  0.905 seconds

NULL<o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>


March 31st, 2015 4:24am

>>Description: The system cannot find the path specified. Description: Cannot open the datafile
>>>"D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv".

Have you checked the path? 

Free Windows Admin Tool Kit Click here and download it now
March 31st, 2015 4:42am

Hi,

That path is not in use?! Yes, it is in error, but not in package. Maybe it has been there before, but now I can't find it. Or actually, path is valid, but not the file name.

I had on error in package configuration file path, but here is the latest error message:

Br,

Ville

Microsoft (R) SQL Server Execute Package Utility

Version 10.50.1600.1 for 64-bit

Copyright (C) Microsoft Corporation 2010. All rights reserved.

NULL

Started:  1:50:59 PM

Error: 2015-03-31 13:50:59.38

   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

Progress: 2015-03-31 13:50:59.56

   Source: Data Flow Task 1

   Validating: 0% complete

End Progress

Progress: 2015-03-31 13:50:59.72

   Source: Data Flow Task 1

   Validating: 50% complete

End Progress

Progress: 2015-03-31 13:50:59.72

   Source: Data Flow Task 1

   Validating: 100% complete

End Progress

Progress: 2015-03-31 13:50:59.73

   Source: Data Flow Task 1

   Validating: 0% complete

End Progress

Progress: 2015-03-31 13:50:59.79

   Source: Data Flow Task 1

   Validating: 50% complete

End Progress

Progress: 2015-03-31 13:50:59.79

   Source: Data Flow Task 1

   Validating: 100% complete

End Progress

Progress: 2015-03-31 13:50:59.79

   Source: Data Flow Task 1

   Prepare for Execute: 0% complete

End Progress

Progress: 2015-03-31 13:50:59.79

   Source: Data Flow Task 1

   Prepare for Execute: 50% complete

End Progress

Progress: 2015-03-31 13:50:59.79

   Source: Data Flow Task 1

   Prepare for Execute: 100% complete

End Progress

Progress: 2015-03-31 13:50:59.86

   Source: Data Flow Task 1

   Pre-Execute: 0% complete

End Progress

Progress: 2015-03-31 13:50:59.92

   Source: Data Flow Task 1

   Pre-Execute: 50% complete

End Progress

Warning: 2015-03-31 13:50:59.92

   Code: 0x80070003

   Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]

   Description: The system cannot find the path specified.

End Warning

Progress: 2015-03-31 13:51:00.17

   Source: Error Msg

   Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete

End Progress

Error: 2015-03-31 13:51:00.17

   Code: 0xC020200E

   Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]

   Description: Cannot open the datafile
"D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv".

End Error

Progress: 2015-03-31 13:51:00.17

   Source: Error Msg

   Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete

End Progress

Error: 2015-03-31 13:51:00.17

   Code: 0xC004701A

   Source: Data Flow Task 1 SSIS.Pipeline

   Description: component "Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv" (34) failed
the pre-execute phase and returned error code 0xC020200E.

End Error

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Pre-Execute: 100% complete

End Progress

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Post Execute: 0% complete

End Progress

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Post Execute: 50% complete

End Progress

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Cleanup: 0% complete

End Progress

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Cleanup: 50% complete

End Progress

Progress: 2015-03-31 13:51:00.17

   Source: Data Flow Task 1

   Cleanup: 100% complete

End Progress

DTExec: The package execution returned DTSER_FAILURE (1).

Started:  1:50:59 PM

Finished: 1:51:00 PM

Elapsed:  0.858 seconds

NULL<o:p></o:p>


March 31st, 2015 7:12am

Hi Ville,

According to your description, you can execute a package from BIDS without any issue, but it fails via SQL Server Execute Package Utility.

To fix this issue, we should focus on the following error messages:

  • 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. DontSaveSensitive means when the package is saved, sensitive values will be removed. This will result in passwords needing to be supplied to the package, through a configuration file or by the user. So when we use DontSaveSensitive protection level, we should create configuration file with the password to the connection string in case you connect with SQL Server authentication. Or use Windows authentication to connect the database.
  • Cannot open the datafile "D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv". The error is related to the user does not have permission to write to that file location or the file path is invalid on the server on which the package is executed. So please make sure the user has necessary permissions to execute the package and access the file folder and file outside the SSIS package on the server that execute the package.


Reference:
http://blogs.msdn.com/b/runeetv/archive/2009/12/22/ssis-package-using-sql-authentication-and-dontsavesensitive-as-protectionlevel.aspx
Thanks,
Katherine Xiong

Free Windows Admin Tool Kit Click here and download it now
April 1st, 2015 3:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics