Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How we can Get Error Column Name in SSIS Package.

In my case i am using Data Conversion transformation and i am redirecting error output to Script component.
I need to log error output with the columName which cause the error.

Please help me if you face this issue and resolved successfully....

Thanks,
Amarnath
Posted

You get the rows causing the errors dumped out the error output. Each row will have a new "ErrorColumn" column - for the rows that you're interested in, record the value you see in that column. That value is the "lineage ID" of the incoming column that suffered the reported error.

You may use advanced editor to find the column that has lineage ID...
But to find this programmatically needs some circus:

http://informatics.northwestern.edu/blog/edw/2012/01/etl-assistant-getting-error-row-description-and-column-dynamically/[^]

Thanks,

Kuthuparakkal
 
Share this answer
 
v2
I builded new custom transformation component for read Error Column name using Error column value.You can get DLL and source code from the below link

https://naseermuhammed.wordpress.com/tips-tricks/getting-error-column-name-in-ssis/[^]

Thanks
Naseer Muhammed AG
 
Share this answer
 
v2
Can you use the name of InputColumn?
such like:
C#
this.ComponentMetaData.InputCollection[0].InputColumnCollection[0].Name

Hope this will help you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900