Hi Jamie,
Finally the approach worked. For some reason, it is unable to do a Replace on the variable at runtime just before inserting data. The approach consistently failed when I used the Execute SQL task and supplied the @System::ErrorDescription variable or when I used the Expression Builder.
I used a script task to capture the @System::ErrorDescription into a variable defined within the script say, ED and Wrote Replace(ED, " ' ", " ") into a user variable User::ErrorDesc. In my Insert statement, I used the User::ErrorDesc instead of directly using the System::ErrorDescription. This worked!
Thanks for your help.
Subah.