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 / Check file size on sha...
Power Automate
Answered

Check file size on sharepoint before and after Update

(0) ShareShare
ReportReport
Posted on by 6

 Hi, 

 

I have a flow that automatically uploads an excel file to a SharePoint folder on daily basis.

File is uploaded with the same name everyday, so, the existing file gets replaced with the newly uploaded file that contains today's data.

 

Sometimes the newly uploaded file has system glitches and missing data, therefore contains less data than the currently existing file.

 

Is there a way to make a check if the file size (or row count) of the new file vs the existing file before uploading ? and prevent replacing the existing one, if the new one is of less size or less row count.

 

 

Thankful for your help and support.

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @mazer 

     

    One possibility is to save the size of the file or record counts in SharePoint custom list with date. This information will be saved by the recurrence flow before end of the flow. So, when a new instance of the recurrence trigger, it will first pick the size or records counts from the previous run date and compare with the current run. Based on the outcome of condition action, you could add the required action for further processing as per the need.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard