Results 1 to 2 of 2

Thread: DTS Error: 'Execution was canceled by user'

  1. #1
    Brandon Guest

    DTS Error: 'Execution was canceled by user'


    We are running SQL Server 2000 (select @@version reports 8.00.194).

    We are calling a package (Package B) from another package (Package A) using the 'Execute Package Task'

    Package B is constructed as:

    A CSV file
    A Data pump into a database (OLEDB and ODBC to SQL Server DB - both operate in the same way)
    An ActiveX step after the connection to display a message box

    When Package B is executed in isolation the data pump runs to completion and then the ActiveX step displays the message box.

    However, when Package A is used to execute Package B then Package B returns an error message indicating that 'Execution was canceled by user'. Inspection of the database shows that the data pump ran successfully to completion, however, the last Active X step was not executed.

    More strangely if the ActiveX task is removed then using either method will report successful execution of Package B.

    Additionally, if individual ActiveX steps are included for success, failure and completion after the connection step, none of them execute when Package A calls Package B.

  2. #2
    thies wolf Guest

    DTS Error: 'Execution was canceled by user' (reply)

    it seems that your result code of the activex script in package B is wrong.
    the last line if your script should be
    Main = DTSTaskExecResult_Success
    if the result code is undefined or some other constant (e.g. Main = DTSTransformStat_OK) strange things can happen.


    ------------
    Brandon at 11/13/2001 1:24:30 AM


    We are running SQL Server 2000 (select @@version reports 8.00.194).

    We are calling a package (Package B) from another package (Package A) using the 'Execute Package Task'

    Package B is constructed as:

    A CSV file
    A Data pump into a database (OLEDB and ODBC to SQL Server DB - both operate in the same way)
    An ActiveX step after the connection to display a message box

    When Package B is executed in isolation the data pump runs to completion and then the ActiveX step displays the message box.

    However, when Package A is used to execute Package B then Package B returns an error message indicating that 'Execution was canceled by user'. Inspection of the database shows that the data pump ran successfully to completion, however, the last Active X step was not executed.

    More strangely if the ActiveX task is removed then using either method will report successful execution of Package B.

    Additionally, if individual ActiveX steps are included for success, failure and completion after the connection step, none of them execute when Package A calls Package B.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •