Insert error from synapse data flow to SQL server DB

Lotus88 66 Reputation points
2025-02-19T06:30:20.1366667+00:00

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)}');

User's image

User's image

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,199 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,271 questions
{count} votes

Your answer

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