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

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Error Trapping

Author  Topic 

andypgill
Starting Member

34 Posts

Posted - 2013-02-08 : 07:14:36
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

52326 Posts

Posted - 2013-02-08 : 09:10:41
OnError should give you error details.

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

Go to Top of Page

andypgill
Starting Member

34 Posts

Posted - 2013-02-08 : 10:07:48
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
   

- Advertisement -