I am calling an SSIS package inside a SQL Server Agent job step. Almost half the time, the package fails with the following error and it works fine other times. The column that it complains about is a nvarchar(max) column and the maximum data length for the records we have in that column is around 3600.
Message
Executed as user: abcdef. Microsoft (R) SQL Server Execute Package Utility Version 10.0.2531.0 for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 4:30:00 PM Error: 2010-03-03 16:30:02.84 Code: 0xC0047070 Source: Data Flow Task 1 Description: End Error Error: 2010-03-03 16:30:02.84 Code: 0x80004005 Source: Data Flow Task 1 Description: End Error Error: 2010-03-03 16:30:02.84 Code: 0xC0208266 Source: Data Flow Task 1 Description: End Error Error: 2010-03-03 16:30:02.84 Code: 0xC0208265 Source: Data Flow Task 1 Source - Query [1] Description: Failed to retrieve long data for column "Response". End Error Error: 2010-03-03 16:30:02.84 Code: 0xC020901C Source: Data Flow Task 1 Source - Query [1] Description: There was an error with output "OLE DB Source Output" (11) on component "Source - Query" (1). The column status returned was: "DBSTATUS_UNAVAILABLE". End Error Error: 2010-03-03 16:30:02.84 Code: 0xC0209029 Source: Data Flow Task 1 Source - Query [1] Description: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output "OLE DB Source Output" (11)" failed because error code 0xC0209071 occurred, and the error row disposition on "component "Source - Query" (1)" 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. End Error Error: 2010-03-03 16:30:02.84 Code: 0xC0047038 Source: Data Flow Task 1 SSIS.Pipeline Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - Query" (1) 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. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 4:30:00 PM Finished: 4:30:02 PM Elapsed: 2.012 seconds. The package execution failed. The step failed.
Could you please let me know why this error is happening randomly and how I could avoid this error?
Thanks,
JayaMS