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 Apps / Powerapp Timing Out - ...
Power Apps
Answered

Powerapp Timing Out - Due to Long Running Flow

(1) ShareShare
ReportReport
Posted on by 288

I have a long running flow...that there is NOTHING I can do about it (as far as I know)...why you ask.

Because I'm using an Excel Online Office Script...once the script is done running, I delete/remove the Excel File.

Now, that is where the problem comes in...because it takes almost 5 minutes or more for the Excel File to delete.

 

I need the PowerApp to Wait until that file is deleted, so that the user can't upload the same file again causing it to fail trying to overwrite the one that is already there and is locked.

 

I need to wait until the file is deleted...how can I make the PowerApp WAIT until that file is gone?

 

Because right now I get the message = "Request to the backend service timed out"

 

Thanks,
Mark

Categories:
I have the same question (0)
  • smithmrk Profile Picture
    288 on at

    FileExisits does NOT work??

    Snag_13e20cb.png

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I guess the real question is why do you have to wait on the file to delete? Seems like should have different logic there to handle that whole scenario? 

  • smithmrk Profile Picture
    288 on at

    I'm already doing that...the problem is it takes so long to delete the file the PowerApp times out before the file is deleted.  The flow doesn't respond in time.

     

    Snag_161ed97.png

  • smithmrk Profile Picture
    288 on at

    That is a GREAT Question!

    It appears that when you run an Excel Online Office Script there is NO WAY to close the file when you are done.

    So you have to wait until it gets unlocked on it's own...before you can delete it.

     

    So I have a Do Until Loop that keeps trying to delete the file...waits 1 minute and tries again.

    It normally takes about 5 to 6 minutes to get unlocked, so that you can delete it.

     

    There should be a way using Office Excel for Business to allow you to close the file and then delete it instead of having to wait and wait and wait until you can remove it.

  • Verified answer
    cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    Well I guess, why wait for the file to get deleted, what is it doing that you can't just generate a new file for the app to use with a different name etc.? 

  • smithmrk Profile Picture
    288 on at

    You just gave me an idea...The users are uploading an Excel Template that I need them to always use, so when the upload it from the app, I'm validating the name of the template matches what I'm expecting...therefore that is why I was waiting for it to be deleted so they couldn't upload another one before the first one was gone...BUT once I save the file I could just re-name it and use the renamed copy to do my work...then I just delete the renamed version and if they upload another one it won't conflict with the first one.

     

    Let me try that approach and see how it works.

     

    Thanks,
    Mark

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 Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard