Removes data from the pool for all specific Name data from parameter

Rohit Kulkarni 6 Reputation points
2021-02-15T14:04:11.307+00:00

Hello Team,

I have created a pipeline to remove a specific rows from the Sql Pool database. The output is coming perfectly. But in the Pipeline i am getting error.

The query is simple delete statement

The lookup activity I have used as "Query" in "Use query" option

delete FROM TableName
where FieldName1= '@{pipeline().parameters.FieldName1}'
and FieldName2='@{pipeline().parameters.FieldName2}'

Failure happened on 'Source' side. ErrorCode=SqlInvalidDbQueryString,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The specified SQL Query is not valid. It could be caused by that the query doesn't return any data. Invalid query: 'delete FROM Tablename where FieldName1= 'ABC' and FieldName2='003742' ',Source=Microsoft.DataTransfer.ClientLibrary,'

Thanks
RK

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,688 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Rohit Kulkarni 441 Reputation points
    2021-02-25T04:23:21.777+00:00

    Yes after trying in different method in data flow it got worked.


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.