RAISERROR in SSIS execute SQL task

lin 1 Reputation point
2021-10-11T08:16:27.457+00:00

I have a SSIS just to raise error when the comparison failed . however I keep get the RAISEERROR failed with error "result set" property not set correctly.

139376-image.png

139431-image.png

Please advise.

Thanks

SQL Server Integration Services
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,536 Reputation points
    2021-10-12T01:43:54.2+00:00

    Hi @lin ,

    Please check the input parameter datatype to VARCHAR or NVARCHAR in Parameters Mapping page.

    Also you may set BypassPrepare=Flase in Execute SQL Task to see if it could resolve the issue.

    A similar thread here you may take a reference.

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.
    Hot issues October

    0 comments No comments

  2. lin 1 Reputation point
    2021-10-13T06:33:20.363+00:00
    0 comments No comments

  3. Olaf Helper 47,586 Reputation points
    2021-10-14T07:12:34.14+00:00

    raiserror('error', 18, 1) with log

    Do you know what this command return?

    Error 50000, severity 18 Error

    and that as plain info message; what for a result set do you expect? There is none.


Your answer

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