A similar thread :
https://learn.microsoft.com/en-us/answers/questions/917727/trigger-does-not-work-when-using-sftp-container.html
BlobEventsTrigger could not be fired if the Blob file is updated via sftp
I created a BlobEventsTrigger in Synapse to trigger one of my pipeline.
If the file is uploaded via Azure Storage Explorer or curl, then the trigger could be fired and works fine.
But if the file is loaded via sftp command, then the trigger could not be fired.
Could you please help to understand why could this happen and how could make it work with SFTP approach?
2 answers
Sort by: Most helpful
-
-
KranthiPakala-MSFT 46,597 Reputation points Microsoft Employee
2022-11-21T19:23:34.28+00:00 Hello @Shao Peng Sun ,
Thanks for the question and using MS Q&A platform.
As @Nandan Hegde , pointed, please refer to above thread link where a similar issue has been discussed.
In order to make it work, please added
SFTPCommit
to theAdvanceFilters
on theEventGrid SystemTopic
thats auto generagted when the trigger is created from datafactory for the storage account.SFTPCommit
should be added as you need the trigger to start when the file is completely loaded on the sftp container.I'm working with internal team, to see if there is scope to improve the product or to clarify this in public documentation. Will keep you posted as soon as we have an update.
But in the meantime, as a workaround, you can follow the above process to mitigate the issue.
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how