Please start any new threads on our new site at 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
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Error Trapping
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

34 Posts

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

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.


Very Important crosS Applying yaK Herder

52326 Posts

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

SQL Server MVP

Go to Top of Page

Starting Member

34 Posts

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

OnError should give you error details.

SQL Server MVP

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  
 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.02 seconds. Powered By: Snitz Forums 2000