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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint Create File...
Power Automate
Answered

Sharepoint Create File - Skip for files that already exist

(0) ShareShare
ReportReport
Posted on by

Hi, 
I have a daily recurring flow that:
- List files in a Google Drive folder
- Get file content from each file using id

- Create file in sharepoint using file name and file content. 

Files are added to google drive before flow runs each day, and old files remain. So flow tries to create files in sharepoint, some of which are already there. Causes flow to 'fail' as file already in folder, even though it works. But flow then turns off after 8 'fails'. 

Is it possible to add a step so that, if file already exists in sharepoint, it just skips this file? 
Or else moves folders in Google Drive folder to a subfolder after flow runs. 
Or any other suggested workaround. 

Thanks in advance!
Chris

Categories:
I have the same question (0)
  • Verified answer
    ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    Yes @Anonymous  you can add a parallel to control th errors like this

    scope.PNG

     

    inside scope action you can add send an email if you want

  • Community Power Platform Member Profile Picture
    on at

    Thanks a lot Christian, this worked 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard