PRB: Cannot Use Data Transformation Services Event Handlers in Visual Basic with Execute Package Task (319048)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q319048 SYMPTOMS
If you install Data Transformation Services (DTS) Package event handlers in a Visual Basic application, and the package you call uses an Execute Package task to call another package, an Exception Access Violation (AV) similar to the following may occur:
(1:Child Package) SubStep '<title of step> Step' failed with the following error:
Need to run the object to perform this operation
(Microsoft Data Transformation Services (DTS) Package (80040005):
Provider generated code execution exception: EXCEPTION_ACCESS_VIOLATION)
The Access Violation occurs when these conditions are true:
- You use DTS package event handlers in the Visual Basic application.
- You use a parent DTS package that uses an Execute Package task to call a child DTS package.
CAUSE
Threading limitations in the design of Visual Basic 6.0 prevent the nested child package from reporting it's events up through the parent package's event handler.
WORKAROUND
To work around the problem, you can use one or both of these methods:
- Remove the DTS Package event handlers from the Visual Basic application.
-or-
- Restructure your DTS Packages and Tasks and do not use parent DTS packages that use the Execute Package task to call child DTS packages.
Modification Type: | Major | Last Reviewed: | 11/14/2003 |
---|
Keywords: | kbDatabase kbprb KB319048 |
---|
|