SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Send errors into a SQL table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

theboyholty
Posting Yak Master

United Kingdom
221 Posts

Posted - 03/22/2013 :  06:51:36  Show Profile  Visit theboyholty's Homepage  Reply with Quote
I've built a package in SSIS 2008 that uses a ForEachLoop container to import over 1000 spreadsheets. I'm getting occasional errors though and what I want to do is for each iteration that fails, send various pieces of information into an error table. Of course the most important piece of information should be the error message - 'why did this component fail?'. Then the idea is that when it has run I can see a simple list of the spreadsheets that failed, and the reason.

Does anyone know how to retrieve this information from an individual SSIS component?

---------------------------------------------------------------------------------
http://www.mannyroadend.co.uk A Bury FC supporters website and forum

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 03/22/2013 :  07:02:22  Show Profile  Reply with Quote
you can add a logic on the on error event of for each loop. Add a execute sql task inside to dump the error detail to your table.
Also make sure you set FailPackageOnFailure and FailParentOnFailure properties to False for for each loop. Also set a high value for MaximumErrorCount

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000