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 / Issue with PowerApp ti...
Power Apps
Unanswered

Issue with PowerApp timeout and corresponding flow

(0) ShareShare
ReportReport
Posted on by 124

Hello everyone,

 

I have an issue with an app and its associated flow. Up to yesterday, everything worked fine. Today there is a timeout issue: "MyFlow.Run": The function call exceeded the timeout value of 180 seconds.

 

What does my code do?

At first the collection colMyData will be sent to SharePoint Online. After that, the second collection colMyDataTwo will be sent to another SharePoint Online list. Then the collection colMyData will be converted to JSON and saved to a variable. Then the PowerApp will fire a flow if there is data in the variable MyImagesJSON.

 

I think the last line of my code is the important one.

When I ran the code everything worked fine except the start of my flow and I got this message: 

"MyFlow.Run": The function call exceeded the timeout value of 180 seconds.

 

So, all the data is saved on SharePoint Online but without my images and without running my flow.

This is my corresponding code:

 

ForAll(colMyData;
Patch(SharePointList;Defaults(SharePointList);
{ItemA: {value: ItemA; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
ItemB: {value: ItemB; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
ItemC: {value: ItemC; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
ItemD: {value: ItemD; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};});;

ForAll(colMyDataTwo;Patch(SharePointListTwo;Defaults(SharePointListTwo);{ItemA: ItemA; ItemB: ItemB}));;

Set(MyDataJSON;JSON(colMyData;IgnoreBinaryData));;

If(IsEmpty(MyImagesJSON)=false;MyFlow.Run(MyImagesJSON))

 

I have tested it with various devices and sometimes it worked (iPad and Desktop) and sometimes it failed (Galaxy S10, iPhone).

 

Can anyone help me? Especially in case of the timeout issue? How can I understand this timeout issue?

 

Best regards,

 

PA

 

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @PowerAnalytics 

     

    Can you please share more details about the time taken for a complete execution of the flow? Timeout usually occurs when you are returning something back to PowerApps using "Respond to PowerApps" or Response action. Do you need to return something to the powerapps? If yes, you can save that to any datasource and then fetch the result from there, you can add a timer if required which checks regularly for the updated data.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • PowerAnalytics Profile Picture
    124 on at

    Hi @yashag2255 ,

     

    thank you for your feedback! In general the flow executed within 10-30 seconds (it depends on the image count). The problem here and now is that the flow doesn't execute. So when I press the button my data will be sent to SharePoint Online (with a higher execution time) but my flow doesn't execute. By the way, the variable for the images (and the flow) isn't empty. I think this timeout issue depends on PowerApps but I have no clue in detail.

     

    Best regards and thanks in advance!

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @PowerAnalytics 

     

    According to the documentation this should not happen. As a workaround to this, please create another button and set the "visible" property to false.
     
    Now, on the Button2 OnSelect -> If(IsEmpty(MyImagesJSON)=false;MyFlow.Run(MyImagesJSON))
     
    Button 1 Onselect ->
    ForAll(colMyData;
    Patch(SharePointList;Defaults(SharePointList);
    {ItemA: {value: ItemA; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
    ItemB: {value: ItemB; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
    ItemC: {value: ItemC; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};
    ItemD: {value: ItemD; '@odata.type': "#Microsoft.Azure.Connectors.SharePoint-SPListExpandedReference"};});;
     
    ForAll(colMyDataTwo;Patch(SharePointListTwo;Defaults(SharePointListTwo);{ItemA: ItemA; ItemB: ItemB}));;
     
    Set(MyDataJSON;JSON(colMyData;IgnoreBinaryData)); Select(Button2)
     
    Here, button2 is the name of second button.
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • PowerAnalytics Profile Picture
    124 on at

    Hi @yashag2255 ,

     

    I've tried your solution but it doesn't work. In addition to your solution I've made some further tests on my side.

     

    I've created a button and set the OnSelect property to

     MyFlow.Run(MyImagesJSON)

    The problem still exists if I'm using my mobile devices (iPhone, Galaxy Smartphone) but it works on my iPad and on my desktop browser. Is it possible that this issue is a bug? 

     

    Thanks in advance!

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @PowerAnalytics 

     

    As you confirm that it works on the Tablet and not on the phone, this might be a bug. Can you please contact the support team? They will be a able to help you better with this or have more information if the issue is being faced by more people. 
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard