Hi Jamie,
In my case, the Replace('') function does not seem to work because the Replace function takes in a 'String' value, however the generated text from the
@[System::ErrorDescription] is not being considered as a text.
I tried the Execute SQL task option and am getting an error - "An error occurred while extracting the result into a variable of type (DBTYPE_I4)""
I am currently trying to capture the message into a variable using a script task and am battling the "A deadlock was detected while trying to lock variables" error message when trying to write the value to a variable.
Appreciate your response. Will keep posted if I manage to find a solution.
Thanks,
Subah.