can we use SFTP -SSH when file modified as Trigger in the logic apps

Pravendra Rajput 51 Reputation points
2025-01-15T02:32:52.5933333+00:00

I am trying to use SFTP-SSH as a trigger in the Logic app designer.

'when a file is modified' then a Copy operation.

however the trigger is skipping the run and not detecting the file at derstination.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,327 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,036 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,313 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 27,596 Reputation points
    2025-01-16T16:04:52.89+00:00

    The SFTP-SSH connector can be used as a trigger to detect file modifications however it relies on specific metadata provided by the SFTP server, such as timestamps or file properties, to identify changes. If the SFTP server does not update the relevant metadata (like last modified timestamp) when the file is changed, the trigger may fail to detect the modification and skip the run.

    Try to verify the SFTP server isupdating the file metadata on modification also the polling interval and path configurations, are correctly defined to match the file's location.

    You can consider using alternative approaches, such as explicitly renaming or replacing files, which may provide more reliable metadata updates for the trigger to detect.

    0 comments No comments

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.