Insert error from synapse data flow to SQL server DB
Lotus88
66
Reputation points
Hi,
I am trying to capture an error throw by synapse data flow and insert to SQL DB table.
But I keep getting update error. I think the error contain single quote ', is there a way to insert the error to the table? Below is my code in Script activity:
insert into @{pipeline().parameters.logtable}
(pl_run_id, error_log)
values ('@{pipeline().RunId}',
'@{string(json(activity('DF Filter source with changed quotes').error.message).Message)}');
Sign in to answer