Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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)
 multiple excel import - files inconsistent
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

theboyholty
Posting Yak Master

United Kingdom
226 Posts

Posted - 02/08/2013 :  11:18:03  Show Profile  Visit theboyholty's Homepage  Reply with Quote
I'm doing an import of around 1300 excel files. I can get it to work but occasionally a spreadsheet will not have been formed properly.

My SSIS package looks for the worksheet called 'YieldData', but one or two have the default worksheets called Sheet1, Sheet2, Sheet3.

As it happens, these excel files are blank so what I'd like to do is ignore these altogether. Is it possible to set up my SSIS package so it ignores files that would otherwise cause the package to fail, and to carry on with the rest regardless?

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

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 02/08/2013 :  11:33:08  Show Profile  Reply with Quote
yes...its possible. make the onerror action to ignore failure inside data flow task.

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

Go to Top of Page

theboyholty
Posting Yak Master

United Kingdom
226 Posts

Posted - 02/19/2013 :  04:42:27  Show Profile  Visit theboyholty's Homepage  Reply with Quote
Thanks. Where do I set that property?

By default, the FailPackageOnFailure and FailParentOnFailure are set to False and I can't find an onerror property.

btw, I'm using SSIS 2008.

---------------------------------------------------------------------------------
http://www.mannyroadend.co.uk A Bury FC supporters website and forum
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 02/19/2013 :  05:13:24  Show Profile  Reply with Quote
quote:
Originally posted by theboyholty

Thanks. Where do I set that property?

By default, the FailPackageOnFailure and FailParentOnFailure are set to False and I can't find an onerror property.

btw, I'm using SSIS 2008.

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


thats inside the properties window of data flow task excel source

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

Go to Top of Page
  Previous Topic Topic Next 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.2 seconds. Powered By: Snitz Forums 2000