>Try building your error message into a varchar variable first, and then just use the @variable for the message parameter. I think trying to build the message in the parameter is a problem.
Then only I could have it working is by this approach.
Message #
1504520