Update SQL table from System:ErrorDescription message in SSIS

Ivan Raditya 51 Reputation points
2022-06-22T13:22:26.873+00:00

Hi Everyone,

I have import excel files and I want to update my custom error log table using error description from SSIS
i try to use event handler and put it in OnError. it does update the other column but not the status_description which i set to get error messages. Below is my script, im using sqlstatementsource and SQL Statetment but both of them does not give the error messages.
Can anyone give me insight?
Thanks

213914-image.png

213915-image.png

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,703 questions
0 comments No comments
{count} vote

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-06-23T03:15:28.793+00:00

    Hi @Ivan Raditya ,

    Click the parameter mapping in the left column and add each paramter from your command and map it to your SSIS variable.

    Make sure that you map them correctly.

    Refer to execute-sql-task about the mapping.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.