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 / Power Automate takes p...
Power Automate
Unanswered

Power Automate takes previous version Excel Online file, not current

(2) ShareShare
ReportReport
Posted on by 151

I have a flow where Power Automate takes data from a table in Excel Online, transforms the data in memory, and saves that data as a csv. This works most of the time. However, this is a business critical process and 'most of the time' is not good enough. It has to be reliable and always work. The problem is that the csv sometimes contains data from an older version of the Excel file. 

The exact flow:

  1. User opens an Excel file in Sharepoint using Excel Online
  2. User adds data to specific table in said Excel file
  3. User copies file to a special purpose folder on Sharepoint
  4. Power Automate triggers when a new file is created in this special purpose folder, i.e. when the file is copied there
  5. Power Automate 'Run Script' accesses the file, reads the data in the table, transforms it to requirement, outputs a JSON
  6. Power Automate takes the JSON and creates a CSV file containing the data and sends it to an assigned department

The problem occurs in step 5, where Power Automate opens the Excel file and reads the data. Excel Online is slow and its speed depends on general latency of Microsoft's cloud solutions in your region. I have noticed that files sometimes open immediately, sometimes take a few minutes. I suspect that my automation has the same issue. It opens the file with Run Script and immediately runs the Typescript code on it. However, the cloud has not yet propagated with the content of the latest version, so my script is fed an older version.

How can I prevent this? Is there a way to force Excel Online to first switch to the latest Excel file version before my Run Script continuous transforming data?

Having the users switch to Sharepoint or Dataverse for data storage is not an option. They need to be able copy-paste their data from another Excel offline file and are very averse to using anything other than Excel.

Categories:
I have the same question (3)
  • noahlull Profile Picture
    4 on at

    We have had the same issue! we were sending out pricing letters and PA grabbed a version that was 50 minutes old. Luckily this was only sent internally but it could have been a BIG proble,

  • edvh Profile Picture
    4 on at

    Did anyone ever get a reply to this?  I am having a related problem, whereby PA is accessing a version of an Excel file one version before that which I have just updated it to in the flow.

     

    Weirdly, the flow can find the up-to-date data using the 'Get a Row' action, but when using a 'Copy File' action, it does not work.

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard