Solved

SSIS from Stored Proc returns error

Posted on 2013-05-10
3
507 Views
Last Modified: 2016-02-10
Team - I have an SSIS package. When I run the SSIS, it runs perfectly however when I call the package from stored proc, i get the below error. Pls help.

Error Output
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 32-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
NULL
Started:  11:48:19 PM
Error: 2013-05-10 23:48:19.90
   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-10 23:48:20.19
   Code: 0xC0202009
   Source: Package Connection manager "xxxxxxxx"
   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 'xxxxxxx'.".
End Error
Error: 2013-05-10 23:48:20.19
   Code: 0xC020801C
   Source: Data Flow Task OLE DB Destination [233]
   Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "xxxxxxxxx" failed with error code 0xC0202009.  There may be error messages posted before th
is with more information on why the AcquireConnection method call failed.
End Error
Error: 2013-05-10 23:48:20.19
   Code: 0xC0047017
   Source: Data Flow Task SSIS.Pipeline
   Description: component "OLE DB Destination" (233) failed validation and returned error code 0xC020801C.
End Error
Error: 2013-05-10 23:48:20.19
   Code: 0xC004700C
   Source: Data Flow Task SSIS.Pipeline
   Description: One or more component failed validation.
End Error
Error: 2013-05-10 23:48:20.19
   Code: 0xC0024107
   Source: Data Flow Task
   Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  11:48:19 PM
Finished: 11:48:20 PM
Elapsed:  0.344 seconds
NULL
0
Comment
Question by:davidi1
3 Comments
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 39156644
See if these links provide you with the answer:
http://sqlsolace.blogspot.com/2009/05/ssis-error-failed-to-decrypt-protected.html

http://support.microsoft.com/kb/918760?wa=wsignin1.0

stackoverflow.com/questions/9297018/ssis-issue-failed-to-decrypt-protected-xml-node
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39158778
This sounds like a security problem.
When I run the SSIS, it runs perfectly
Here you are running it as yourself.

however when I call the package from stored proc, i get the below error.
And here you are executing it with the account for the SQL Server service.
0
 
LVL 2

Author Closing Comment

by:davidi1
ID: 39160927
@Dan7el provided a light for the solution.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now