Update script is updating in azure sql table

Rohit Kulkarni 731 Reputation points
2025-01-16T16:11:26.53+00:00

Hello Team,

The below mentioned script is updating properly in azure sql table(water mark table):

@{item().name}:

User's image

UPDATE STG.WATERMARK

SET TABLE_NAME='@{item().name}'

where Sequence=9 AND DESTINATION_TABLE_NAME='CoveredRecipients_US' AND '@{item().name}' LIKE '%CR-US%'

UPDATE STG.WATERMARK

SET TABLE_NAME='@{item().name}'

where Sequence=9 AND DESTINATION_TABLE_NAME='CoveredRecipients_Global' AND '@{item().name}' LIKE '%CR-Global%'

UPDATE STG.WATERMARK

SET TABLE_NAME='@{item().name}'

where Sequence=9 AND DESTINATION_TABLE_NAME='CoveredRecipients_France' AND '@{item().name}' LIKE '%CR-France%'

But the Result in Lookup activity is getting failed :

User's image

Please advise.

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

Answer accepted by question author
  1. Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator
    2025-01-16T17:41:50.56+00:00

    Lookup activity expects an output to be present whenever you execute any query. As your query is just update query, it is failing. Use script activity instead of lookup activity

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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