Chris Harrington
Chris Harrington

Reputation: 1326

SFTP trigger stopped triggering

One of my Logic Apps is triggerd by the SFTP trigger. Today I changed the watch folder to a different folder, and I can't get it to trigger any more. I had the issue previously and had to create a new SFTP connector. This time I was able to resolve it by creating a new Logic App with all the same logic as the original. This is simply not acceptable. Its as if when programming if your program stops working your only recourse is to write it from scratch. How is one supposed to diagnose a trigger not triggering? I don't want to be faced with trowing away all my work again in the future.

Upvotes: 2

Views: 701

Answers (1)

Paco de la Cruz
Paco de la Cruz

Reputation: 2154

Did you change the path using design view or code view?

When using the Code View, You need to make sure you are also updating the folderId and the metadata properties.

folderId is a Base64 encoding of the path. The same for the first property the metadata object.enter image description here

When using the designer view, it seems that the trigger state (required to be able to recognise new items) is better refreshed when browsing through the folders on the SFTP trigger box (as opposed to just changing the path string) enter image description here

HTH

Upvotes: 1

Related Questions