web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SFTP trigger only fire...
Power Automate
Answered

SFTP trigger only fired with freshly modified files

(0) ShareShare
ReportReport
Posted on by 130

Hello, i have a SFTP-SSH Trigger/When Files Are Added Or Modified in my flow. In connection i use password, not SSH key. Action is to create file in OneDrive.

 

It works fine when:

1) A file is edited in SFTP-folder

2) When a freshly modified file is added to SFTP-folder

It does not work when:

3) An old file (not recently modified) is added to SFTP-folder

 

No errors. The trigger just doesn't fire. Even if i modify a file in SFTP-folder, the old-dated-files are ignored. I have also tried to re-create the connection in the flow (instead of using existing connection) but the same thing.

- What can be set wrong?

Categories:
I have the same question (0)
  • Verified answer
    v-sefedo Profile Picture
    Microsoft Employee on at

    According to the connector limitations, trigger will work only if file modification date was updated. Seems like modification date of an old file is preserved so trigger skips that file.

     

    Please review your SFTP client settings and disable "preserve timestamp" option, I believe that should do the trick.

  • atte Profile Picture
    130 on at

    Thank you for the quick response, that explains. In the old Power Automate SFTP-trigger there was no such of limitation, but seems that old trigger is no more available for the new flows?

    - How can i disable "preserve timestamp" option in Power Automate? I can not find a direct option either in the Flow or in the Connector.

  • v-sefedo Profile Picture
    Microsoft Employee on at

    That option should be disabled in SFTP client app (Filezilla/WinSCP/etc), that's not a Power Automate setting.

  • atte Profile Picture
    130 on at

    Ok, so there is no way to get around this with M365 Power Automate SFTP-Connector to on prem sftp-server?

  • v-sefedo Profile Picture
    Microsoft Employee on at

    The problem here is that file modification date is preserved, so the trigger considers a file with an old date as already processed. How do you add a file into SFTP folder? It is manual process using some SFTP client or some process automatically publishing these files?

  • atte Profile Picture
    130 on at

    It's customer's business program adding the files, so not sure what is doable there. Need to figure out some workaround. Thank you @v-sefedo anyway for the support, that saved me from further testing and trying.

  • visheshvats1 Profile Picture
    6 on at

    Hello, were you able to find and implement a workaround to your problem? 

    Thanks

  • atte Profile Picture
    130 on at

    Hello, yes i did.

    After saving the file (by our desktop program) we let the program to update file timestamp and then the Flow recognises it as a new file. For example: 

    System.IO.File.SetLastWriteTime(<your filepath>, DateTime.Now)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard