Okay, I've got a major issue with severe WF slowness and I've got to now swallow my pride and reach out to see if I can get some assistance, I cannot figure it out. Just for reference, I've built quite a bit with MS flow in the past 6-8 months, so I'm not "new" to flow (relatively speaking), but on that note, I don't really do much beyond out of the box components of flow, no custom calling or anything more on the developer background aspect of this, this is all pretty basic stuff.
Relevant Environmental Details:
I've got a business process that I've built on top of 3 lists, one of which is not included in any of the attached screenshots, because it's not the one that's CAUSING the slowness issue, but because I have one flow that's built from "List A" that takes submissions and updates "List B", it slows down this other Workflow because it also updates "List B", so when the other list's submissions get stuck in these big long queue's, it impacts this WF as well. In summary, 2 lists, each with one WF that updates the main list on a new item, updating no more than 5 columns each, simple.
The idea is to utilize "List B" as the 'only' list that users really need to interact with, these other 2 small lists just update it upon 'new item' submissions. I should mention, this whole process is a 1-2 time annual process, but there "COULD" be 50-150 submissions between the 2 small lists within a few hours every 6 months or so when entire departments are tasked with doing these particular business functions.
I have a unique field in the main "List B" that's a people picker, by design, every employee will have one line item that's associated with them. Each of the other 2 lists both have WF's that use the 'New Item' trigger, where they update the main list by using one 'GET ITEMS' and one condition to lookup to the list and update the line item where the employee name (Unique Field) is the same as the 'Created By' of each of these small lists ('List A' & 'List C'), there's really NOTHING that seems complex to me where this should be such an issue like it is.
The Problem...
As more line items have been created in the main list, the slower the workflow(s) go, at first I didn't think THAT much of it, but once we hit about 100 they were taking roughly 10 minutes per run, if 25 people submitted within 15 minutes, it was taking several HOURS to process these simple entries, which obviously does not work, for many reasons. Fast forward three days to today, the list is now approaching the 300 line item mark and I've got 10+ flow's in the queue that have been running 8 hours, who knows how long they'll take, have to figure this one out.
I've built many list flows that update other lists that have far more complex conditions, never had a problem like this. I thought it seemed like something's bugged or glitchy, I re-created the WF from scratch just in case, same problem.
In screenshot #1, you'll see the main workflow that's experiencing the problems, a trigger on new item creation, a 'gets items' to retreive the items from 'List B', looks for the ONE line item that has a name field that matches the current items, created by "Display name" field, once it finds that item, it runs through a series of 5-7 conditions on that particular line item, to determine which columns it should update.
The issue though from what I'm seeing when I look at these flow runs (Shown in screenshot #3), is that the 'get items' retrieval 'apply to each' condition takes WAY TOO LONG to determine if that the source and destination columns don't line up, and move to the next item to see if that one lines up, I actually clicked through 300 of these one by one just to see the times associated with each of the FALSE RESULTS that one item takes, that to me should not be something that ever takes more than 1s to process, there's not multiple conditions, just one, name field (List A) -> lookup name field (List B), only one item should evaluate to TRUE.
That being said, when I clicked through all of them, I noticed SEVERAL had condition times of MANY minutes, just to determine that the expression evaluates to "false", which doesn't make sense. Also, they are never identical either, some take 4m, some take 8, some take 27 seconds, most come through in 0s or 1s (as they should), but every 10 or so, something's taking multiple minutes, there lies the problem, I just CANNOT figure out WHY that is, any ideas welcome, I'm all out. In a perfect world, we'd be able to take MS's back end performance logs and sift through them to analyze why it's getting so hung up on seemingly simple expressions, but obviously we only get limited workflow insight to diagnose performance issues like this one so I'm just at a loss.
I've also edited the settings on the 'Get Items' to do pagination so I could override the get items max from 100 to 900, so I know we'll never have capacity issues there, but this problem existed well before I did that so that's not the cause. I've also tried stopping all the flow runs in the 'queue' so I could try processing one at a time, still the same problem, so it seems entirely unrelated to the volume that get submitted to the list at a specific time, because I can go in there right now when nobody is in the system and create one entry, takes forever, why is that?
See attached screens, screenshot #1 is of the slow WF, Screen #2 is expanding the condition, but the problem isn't in there, but I thought I'd provide that just in case.
Hopefully someone can assist, I know this is long, thanks in advance.
Hi @BigShotRob,
How many records existed in your SharePoint LIST B and LIST A?
Could you please share a bit more about your SharePoint LIST B and LIST A?
Further, which license does your Microsoft Flow belong to?
According to the screenshot that you provided, there are hundreds of records existed in your SharePoint LIST B, is it true? The amount of records existed in your LIST B would take effect on the run time of your flow. Please consider take a try to reduce the amount of records existed in your LIST B and run the flow again to check if the issue is improved.
Different licenses of Microsoft Flow would have a different flow frequency. More details about Maximum flow frequency of different license of Microsoft Flow, please check the following article:
https://preview.flow.microsoft.com/en-us/pricing/
In addition, the flow would have its own trigger interval. There is a limit in run duration of a single flow run, the max run duration is 30 days. More details about limits in Run duration and retention, please check the following article:
Limits of run duration and retention
Best regards,
Kris
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages