Hi
I have a data flow task that fails on a foreign key constraint. I was hoping that by creating an Error Output flow on the destination object, I would get the actual error message from SQL Server, something like this (which I get when running SSIS from
Visual Studio
"Error: 0xC020844B at Data Flow Task, tblEmp_Pay_Prd Destination [1458]: An exception has occurred during data insertion, the message returned from the provider is: The INSERT statement conflicted with the FOREIGN KEY
constraint "xxxx". The conflict occurred in database "xxxx", table "xxxxx", column 'xxxxx'."
However, the only error logging I get is the error code -1071610801 and the generic "An error has occurred while sending this row to destination data source." error message.
I tried turning on SSIS logging and the error message is still vague
"SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "xxxx Destination" (1458) failed with error code 0xC020844B while processing input "ADO NET Destination Input" (1461).
The identified component returned an error from the Process
Input method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure."
How can I get the first error message and log that to a file (or table)?
I'm on SSIS 2008r2