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
Update script is updating in azure sql table
Hello Team,
The below mentioned script is updating properly in azure sql table(water mark table):
@{item().name}:
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 :
Please advise.
Azure Data Factory
-
Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator2025-01-16T17:41:50.56+00:00