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)
 Error Trapping
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andypgill
Starting Member

34 Posts

Posted - 02/08/2013 :  07:14:36  Show Profile  Reply with Quote
Hi.

I'm importing a number of excel files into my SQL table and want to be able to get the name of the excel file if it causes an import error.

I have created an SSIS log with all events selected. Doing so gives me pages and pages of info in my text file.

The part of the text I want is

Diagnostic,SHDKMNH,SHK\andrew.gill,Budgets,{…..,ExternalRequest_pre: The object is ready to make the following external request: 'IDataInitialize::GetDataSource(NULL, CLSCTX_INPROC_SERVER, ConnectionString: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=G:\4. Financial \ Accounting\ Dep\ SQ\Budget Sheets One off\ Finance Forecast 12-13.xlsb;Extended Properties="EXCEL 12.0;HDR=YES";,...)'.

OnWarning,SHK003609,SHK\andrew.gill,Budgets,{……,0x,The external columns for component "Excel Source" (1) are out of synchronization with the data source columns. The column "FY 1" needs to be added to the external columns.

The column "FY 2" needs to be added to the external columns

The external column "FMON_12" (561) needs to be removed from the external columns



I have tried to select the events individually but by doing so I never got the above error message.

Does anyone know the event(s) I need to select just to be able to get the above.

Thanks
Andy

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/08/2013 :  09:10:41  Show Profile  Reply with Quote
OnError should give you error details.

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

Go to Top of Page

andypgill
Starting Member

34 Posts

Posted - 02/08/2013 :  10:07:48  Show Profile  Reply with Quote
quote:
Originally posted by visakh16

OnError should give you error details.

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



I thought that would be the case and tried it first however it only gives me.

PackageStart,SHK003609,SHK\andrew.gill,Budgets,{727351BD-3011-4C62-878F-5633D4CBE409},{09A5E0D1-32AA-4792-AA82-CCA42A370BA3},08/02/2013 15:05:52,08/02/2013 15:05:52,0,0x,Beginning of package execution.

OnError,SHK003609,SHK\andrew.gill,Budgets,{727351BD-3011-4C62-878F-5633D4CBE409},{09A5E0D1-32AA-4792-AA82-CCA42A370BA3},08/02/2013 15:06:00,08/02/2013 15:06:00,-1073450901,0x,"component "Excel Source" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

OnError,SHK003609,SHK\andrew.gill,Budgets,{727351BD-3011-4C62-878F-5633D4CBE409},{09A5E0D1-32AA-4792-AA82-CCA42A370BA3},08/02/2013 15:06:00,08/02/2013 15:06:00,-1073450996,0x,One or more component failed validation.

OnError,SHK003609,SHK\andrew.gill,Budgets,{727351BD-3011-4C62-878F-5633D4CBE409},{09A5E0D1-32AA-4792-AA82-CCA42A370BA3},08/02/2013 15:06:00,08/02/2013 15:06:00,-1073594105,0x,There were errors during task validation.

PackageEnd,SHK003609,SHK\andrew.gill,Budgets,{727351BD-3011-4C62-878F-5633D4CBE409},{09A5E0D1-32AA-4792-AA82-CCA42A370BA3},08/02/2013 15:06:00,08/02/2013 15:06:00,1,0x,End of package execution.
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