img by Coba

How to Troubleshoot Data Flow Task Errors and Warnings in SSIS

SSIS has its quirks, no doubt, but one of the more frustrating things that I’ve seen newbies struggle with in class is how to troubleshoot the various validation and conversion errors and warnings in Data Flow Tasks. Do these look familiar?

 

SSISErrorsAndWarnings

Of course these look familiar – you see this all too often in SSIS. In particular, these errors are a Truncation warning and a data conversion error respectively. In the Designer (the name of the window in which we drag/drop our SSIS tasks and Data Flow components), we only get a weeeeeeee bit of information about the error. There are a few problems with troubleshooting based on this scant bit of info – let’s take a look at the data conversion error as an example.

The data conversion error’s text – the text that we can see in the Designer – says, “The column "EmployeeId" can't be inserted because the conversion between types DT_R8 and DT_I4 is no…”. Hmmmm – okay: from this tiny bit we can tell that there is a problem with the “EmployeeId” column and we can see that the source/destination data types are very different: the source is float (“DT_R8”) whereas the destination column is an integer (“DT_I4”). Makes sense – we don’t want to lose decimal places so, “Thanks for the error, SSIS!”

But is the EmployeeId column the only error or are other columns also experiencing type conversion errors? We can’t tell from the little error message we can see. Unfortunately there is no obvious way to see (a) the full error message (notice how the little ellipsis implies there is more but there is no obvious way to view the rest of the error), and (b) there is no way to determine if there are other columns experiencing similar errors.

The Fix

The error information can easily be seen with the Error List window:

Untitled2

When you view the Error List, you will see the full errors and in a “One error per entry” format – like this:

image

We can quickly see that there are two errors and four warnings:

image

If you click the tabs, you can isolate one or the other – you can just view the errors or just view the warnings.

I hope this makes it easier for you to troubleshoot SSIS errors!

P.S. – If you like this, you might also like my SSIS 2005 course over at http://www.learnitfirst.com/

authors
scott whigham
grant moyle
chad weaver
recent comments
  • The Love Calculator: Very Interesting Information! Thank You For Thi Blog! read more
  • Love Calculator: You certainly have some agreeable opinions and views. Your blog read more
  • dexatrim: Hi. I just want to say that it was a read more
  • Scuba Diving: Which Golf Clubs Are Better - Steel or Graphite ? read more
  • Tahitian Noni: Which Golf Clubs Are Better - Steel or Graphite ? read more
  • lenen zonder bkr toetsing: Over de voor- en nadelen van het afsluiten van een read more
  • Tahitian Noni: I’ve been visiting your blog for a while now and read more
  • HK Urban Fashion Store: Wedges are the absolute warm weather heel shoes for the read more
  • Noni: You certainly deserve a round of applause for your post read more
  • Noni: Should I buy steel golf clubs or graphite ? read more