Best way to move exceptions to a data load

  • I have a straight forward data load from an Excel spreadsheet to a set of tables. Most records load fine but I always have a couple of exceptions. What is the best way to push this exceptions off for viewing after the load has run. Should I create a temp table or another spreadsheet and how would this work with the control flow?

  • On the assumption that by "exception" you mean the row failed, you can redirect it to another location (excel or table is fine) fairly easily. Its done in the data flow not the control flow.

    1) Create a new destination (OLE DB, Excel, Text whatever you want to use).

    2) Then drag the RED arrow off of your other destination and attach it to the new one.

    3) This should bring up your "Configure Error Output" tab. Change the "Fail component" to "Redirect Row".

    Note: You can also get to this normally from the destinations properties. Its the last tab.

    I should probably also note at this point that you can't use a "Fast Load" with an error redirect.

    4) Open the properties on your destination and select "New" and create yourself a new destination.

    Thats the basics at least.

    Kenneth

    Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]

  • Thanks, I found that. I also found this though it seems much more involved:

    http://www.sqlservercentral.com/articles/Integration+Services+(SSIS)/62662/

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply