dbTalk Databases Forums  

Getting detailed error info from Multiphase Data Pump

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Getting detailed error info from Multiphase Data Pump in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dirc
 
Posts: n/a

Default Getting detailed error info from Multiphase Data Pump - 08-04-2003 , 12:16 PM






As part of my DTS package, I am using a Multiphase Data Pump. When an insert
or transform error occurs I am recording the error details in the database
via ADO.

Now, the error processors for some reason do not give me access to errors: I
tried using the VBScript Err object, but this isn't available for some
reason. I have a COM component which runs GetExecutionErrorInfo for the
package but again, this isn't available.

I am sure that this code was working before and cannot for the life of me
work out what might have caused the change. I tried setting the task to
execute on the DTS main thread.. still no success..

Does anyone have any ideas what is happening?





Reply With Quote
  #2  
Old   
Dirc
 
Posts: n/a

Default Re: Getting detailed error info from Multiphase Data Pump - 08-05-2003 , 05:33 AM






OK, after worrying this to death, I think that I have an answer. I think
this is a bug in DTS:

If you run a function/sub from within On_InsertError phase, the underlying
error details are not stored in DTS. you only get the "The number of failing
rows exceeds the maximum specified."
If you remove/comment out the function, you get the full error details
appended eg "The number of failing rows exceeds the maximum specified.
(Microsoft OLE DB Provider for SQL Server (80040e2f): The statement has been
terminated.) (Microsoft OLE DB Provider for SQL Server (80040e2f): Violation
of PRIMARY KEY constraint"


"Dirc" <dirc.khan-evans (AT) eqos (DOT) com> wrote

Quote:
As part of my DTS package, I am using a Multiphase Data Pump. When an
insert
or transform error occurs I am recording the error details in the database
via ADO.

Now, the error processors for some reason do not give me access to errors:
I
tried using the VBScript Err object, but this isn't available for some
reason. I have a COM component which runs GetExecutionErrorInfo for the
package but again, this isn't available.

I am sure that this code was working before and cannot for the life of me
work out what might have caused the change. I tried setting the task to
execute on the DTS main thread.. still no success..

Does anyone have any ideas what is happening?







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.