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 CREATE FOLDER ERR...
Power Automate
Unanswered

SFTP CREATE FOLDER ERROR WHEN FOLDER ALREADY EXISTS

(1) ShareShare
ReportReport
Posted on by 402

Hello,

 

i try to copy file from a sharepoint site to a sftp with a tree files

I use the the "create folder " but i have an error if the folder already exists.

 

GeekAlf_Pro_0-1720195302915.png

how can i test if the folder exists ? there is no option to overwrite

 

thanks

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    @GeekAlf_Pro 

     

    We are happy to help, but please remember this is Power automate. Just sharing that error, without the flow etc is just wasting time for me to have to ask for it.

     

    Here however is what you can do, and remember I cannot see your flow.

     

    Let's assume you have some actions after you successfully create the Folder but you want to Skip if it fails.

     

    1. Right after you Action to create the follow add another action, Select Scope as the action

    rename it to Try

     

    2. Add another Scope

    rename it to Catch

     

    3. Now inbetween these two scopes in the designer, you will see the +sign. Click it and say Create Parallel action

     

    4. Add another Scope action

    rename it to Success

     

    5. Now, drag all the actions under the two Scopes that you want to do IF its successful and drag them into the success side. Make sure to start dragging from the top (right below the scope) so that they stay in order

     

    6. Now that you have done that, click on the ... just as when you renamed Success Scope, and this time click Configure run after

    Just Verify for the Success scope it only has On Success selected

     

    7. In the Catch side, click the ... and select OnFailure, Timeout, Skipped and Uncheck Success

     

    Now every time it fails, it won't do anything else. If it succeeds it will continue

     

    In the Failure, you could read the error and decide if you want to do anything or not.

     

    Then after all thats done, you can just do whatever you do now.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • GeekAlf_Pro Profile Picture
    402 on at

    Hello @FLMike 

     

    Thanks for taking time to respond.

     

    i tought it was just a matter of an option.

    here it is the flow with your suggestion.

     

    GeekAlf_Pro_1-1720428891650.png

     

    Now it lasts a very long time, it's too long.
    it lasts since 20 mn for 42 folders....

    Do you think i set the scope boxes well ?

    GeekAlf_Pro_2-1720429235857.png

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard