Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Unanswered

Are there any way to increase timeout value of Action node

Posted on by 252

Hello,

 

Do we have any way to change the timeout value of Call an action node in power virtual agent. Sometimes power automate flow runs more than 2 mins to get a response, in such scenarios bot shows error message to user FlowActionTimedOut. Checked the properties and other forums doesn't find a solution, please provide your comments. Bot is using teams as a channel.

 

Thanks.

  • PragneshShah Profile Picture
    PragneshShah 6 on at
    Re: Are there any way to increase timeout value of Action node

    We are also facing this issue and getting error after (approx 2 minutes) and seems like PVA times out just before the response is received from LLM. Error is also confusing and does not indicate any proper reason. 

    Error from PVA: Sorry, something went wrong. Error code: SystemError. Conversation ID: b5093709-9fee-4927-8e51-92f3a4137d91. Time (UTC): 3/28/2024 12:48:27 PM.

    In our case, we have an http call which calls LLM (AzureOpenAI) and it takes little over 2 minutes and depending on the model and data, it can take even more time but normally request gets processed within 3 minutes. We can see in our application log that LLM is sending the response and before that response goes to PVA, PVA is showing above error. It seems like PVA gives this error if response is not received in 100 seconds or 2 minute (not exactly sure for PVA timeout value as could not find in PVA documentation). 

    Using PVA with LLM will practically take more time depending on data and model used. In our case, all the services are used from Microsoft Azure OpenAI and if Microsoft thinks that PVA should get response within 100 seconds then you should optimize LLM response in Azure to be faster. If you restrict user to not allow to change this timeout value then PVA is truely useless for many usecases and Microsoft should clearly indicate in bold letters that the response has to come in 100 seconds or do not use PVA as it is wasting lot of development time and customers gets frustrated. Also error should clearly indicate the reason and should not be generic message. 

     

    We found one setting in http request setting for request timeout as per attached screenshot and we have also configured it to 3 minutes but it does not seem to be using that setting. Is that a bug in that setting? what is the use of that setting? 

    I hope someone from copilot studio team can provide quick answer here. Thanks in advance.

  • MattJimison Profile Picture
    MattJimison 577 on at
    Re: Are there any way to increase timeout value of Action node

    Hi, @Nicer_Atl . You're correct in that currently there's no way to extend the 100 seconds, but even when kicking off long-running jobs, like a Power Automate Desktop flow, for example, you can still return values to Power Virtual agents and then continue processing the rest of what happens in Power Automate. This allows you to at least initiate a long-running job, let the user know the request has been processed, and then, upon completion, you can use another method like an email, Teams IM, etc. to notify them once its complete. While it's not ideal, I do think that's a preferred user experience for something that takes several minutes to run, as I don't see most users being willing to wait on a bot for 4-5 minutes to respond.

     

    Cheers,

    Matt

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • Nicer_Atl Profile Picture
    Nicer_Atl 162 on at
    Re: Are there any way to increase timeout value of Action node

    As we think of more useful ways to utilize PVA, there will certainly be more instances where the bot needs to wait longer. In my example, my Power Automate node has to execute a 'Do while' action..... and it takes time. 

     

    The suggestion here seems to be, find a way to do it in less than 100 secs or else you are SOL.... or I should say, or else you will have to use aka.ms/CopilotStudioImplementationGuide to excuse the inability.  😬

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Are there any way to increase timeout value of Action node

    Hi @gargiul1 --

     

    The timeout of 100s for a flow to run can't be extended in Copilot Studio, but I would suggest you consider alternative ways to read your Excel file to address the performance issues you are seeing.  See this: Fastest Way To Read Large Excel Table In Power Automate (matthewdevaney.com) by MVP @mdevaney  

     

    Also, the aka.ms/CopilotStudioImplementationGuide contains 2 slides with patterns on how to more gracefully manage these timeout errors in your chatbots.

     

    Henry

  • gargiul1 Profile Picture
    gargiul1 10 on at
    Re: Are there any way to increase timeout value of Action node

    Hi all,

     

    I have the same problem, I get a timeout error trying to return to a chat bot in Teams the result of an flow action.

    My flow has to read an excel of ONLY(!!!) 90 (nine-zero) rows and 10 (one-zero) columns.

    I've tried to parallelize, I didn't get the timeout error but the message returned to the bot is composed by some sentences that are not in the correct oreder (most likely it is an effect of the parallelization).

    If Microsoft wants that people use this tecnology, I hope Microsoft thinks to improve such kind of performance, it is assolutely not acceptable that it needs more 2 minutes to read this very little number of records, an human performs better.

     

    Otherwise it remains an unuseful software.

     

    Regards

    Antonio

  • MattJimison Profile Picture
    MattJimison 577 on at
    Re: Are there any way to increase timeout value of Action node

    @ManikandanS  / @HenryJammes ,

     

    I actually blogged about this recently. The timeout actually occurs at exactly 100 seconds, and in my blog post I recommend a parallel pattern where you use a Delay action to determine if the flow is going to time out. If it is, you can return an error message to the user before it does, and you could use the Teams action in Power Automate to deliver an "offline" message from the bot to the user, via the "Chat with bot" option in the action (or via Flow bot if you're using the unified canvas, since it can't currently utilize the "Chat with bot" option), once your flow is complete.

     

    https://mattjimison.com/2023/05/16/the-execution-of-template-action-return_values_to_power_virtual_agents-is-failed/

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Are there any way to increase timeout value of Action node

    Hi @ManikandanS 

     

    For the FlowActionTimedOut error, you can't increase the timeout. 

     

    However, here's what we recommend:

    • Check the flow for errors to understand why the cloud flow took more than 2 minutes to run before it returned to Power Virtual Agents.
    • Try to optimize the query and the data you return from any other backend system.
    • Try to optimize the Cloud Flow logic so it runs within 2 minutes.
    • If some of the cloud flow logic can continue to run after a result is sent to the bot, place these actions after the 'Return value(s) to Power Virtual Agents' step in your cloud flow.

     

    Henry

  • ManikandanS Profile Picture
    ManikandanS 252 on at
    Re: Are there any way to increase timeout value of Action node

    @MattJimison @HenryJammes - Any comments on above?

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

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 138,287

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,172

Leaderboard

Featured topics