Skip to main content

Notifications

Power Automate - General Discussion
Answered

Respond to a PowerApp or flow time limit

Posted on by 151

Please increase the current time limit of 2 mins for the function 'Respond to a PowerApp or flow' time limit.

 

We have a file that gets uploaded, validated and parsed after pressing a button in Power Apps. It's ok if this process takes 4 mins or even more. The process is as optimized as possible. We even have custom functions in TypeScript to avoid the inefficient Apply for Each loops. But the current time limit doesn't allow us to tell the user that the upload was successful or not.

 

I can create another way to notify the user when the upload is complete, sure, but why is the time limit set so conservatively? 2 mins is really not a lot. And why can't we increase it? To be blunt, it makes this function almost useless for critical data intensive processes where you want to use Power Apps for a friendly user interface.

  • Vlad1 Profile Picture
    Vlad1 16 on at
    Re: Respond to a PowerApp or flow time limit

    Hi, @SakuK. Technically you can increase that timeout. Respond to Power App or Flow is used in Child flows which you use as Run Child Flow action card. You can click ... ( 3 dots) icon and then Settings and change the timeout for your response.

    Vlad1_0-1716081243270.png

     

     

  • Sakura Profile Picture
    Sakura 151 on at
    Re: Respond to a PowerApp or flow time limit

    @neerajsu 

    Thank you very much for that detailed insight. Though I'm aware these restrictions are in place due to resource limits that always come with an SaaS platform like this, it is nonetheless a very limiting one. As you suggested, it requires a huge and clunky workaround, negating the 'user-friendliness' this platform is supposed to offer vs working in a general programming language. I'm a full-time developer but cannot see citizen-developers going through all that trouble in a workday with limited working hours. But granted, I am pushing the envelope here.

    I already use your 'progress in a database' approach for flagging an active process and will indeed need to consider it for the response as well. Thank you.

  • Verified answer
    neerajsu Profile Picture
    neerajsu 66 on at
    Re: Respond to a PowerApp or flow time limit

    This is a pretty common problem you'll run into a lot. 2 mins is actually quite a lot. Most gateways will timeout at 60 seconds. Remember that this a http call. It doesn't use websockets. It is very inefficient to have long open http sessions running on the load balancer. After 60 seconds its best practice to move to async/polling or websockets. If data transfer to your endpoint itself is taking too long then you need to use chunking. In your case data transfer doesn't seem to be the problem, so you don't have to worry about chunking.

    Anyway I don't want to digress too much into technicalities, but wanted to let you know, that your request for increasing timeout will never be fulfilled. 120 seconds itself is a little out of the usual industry standard for web apis.

    I'd suggest a good workaround. Respond to power app immediately after upload. Remember that you can have a 'respond to power app or flow' step and keep having steps underneath it. When you do that, flow will respond to power apps and continue running other steps. You can also call a child flow if you are using a CDS solution.

    Once your power apps receives this initial success message, create a timer control and calls another flow every 10 seconds, where you look for success/failure when all your file processing/validation completes. When your first flow completes process, it can update a Sharepoint list or some database which the 2nd flow can get information from.

    Hope that solves your problem

    In some cases the processing might fail completely. To help with that case, have a limit on polling. So stop polling after 5 mins.

  • Sakura Profile Picture
    Sakura 151 on at
    Re: Respond to a PowerApp or flow time limit

    @rsaikrishna 

    The file is uploaded to a Sharepoint site linked to a Teams group. The problem is not the upload. The flow needs to validate tables and then copy the content to a Dataverse for Teams. This is also not a problem. Just takes time to do.

    The problem is the time limit of 2 minutes. It prevents me from sending a result back to Power Apps.

  • rsaikrishna Profile Picture
    rsaikrishna 3,710 on at
    Re: Respond to a PowerApp or flow time limit

    @Sakura 

     

    From your flow, where are you uploading the file? SharePoint List/Library OR SQL Server OR some other place?

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,911

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,372

Leaderboard

Featured topics