cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Flow not working as expected

Hi,

 

I have just built a test version of an existing flow that works fine. It involves multi stage approval for a document that arrives in a shared mailbox. The issue I am seeing is that once it passes the 3rd approval (commercial), its starts the next part of the process, but then loops back to first stage (Supply Chain) before reaching the 4th approval (Production). The flow completes the next part of the flow marked by the 1 and then seems to return to 2?The flow completes the next part of the flow marked by the 1 and then seems to return to 2?

 

Any help appreciated! thanks

Mike

9 REPLIES 9

Hi @MikeBeman , the screenshot you provided shows the whole flow, but when I view the photo or even download the photo to zoom in, the words are blurry. I think the Power Automate forum downgrades photo quality when they are uploaded.

 

Can you chop the photo into smaller pieces like 3 or 4 that way it is easier to read the action titles? 

 

I can see the 4 approval steps. But I don't understand what you mean by "The issue I am seeing is that once it passes the 3rd approval (commercial), its starts the next part of the process, but then loops back to first stage (Supply Chain) before reaching the 4th approval (Production)."

Can you be more specific about "its starts the next part of the process" ? What is the next part of the process?

 

I don't see how it would be possible for the flow to complete the 3rd approval and then go back to the first approval without going to the 4th?

 

I'm guessing part of the problem will be due to having the overall Apply to Each. I don't know what is being used in the Apply to Each as the source (since it is blurry), but I'm guessing it is Attachments from the initial email and it automatically created the Apply to Each box.

 

The Apply to Each isn't necessarily a problem, but it can help with creating more problems if the incorrect values are selected or used somewhere in the flow. And it can lead to unintended results.

 

So when it comes to your process of Approval (I'm referring to all 4 approval steps as a single Approval flow) how is it supposed to happen?

  1. A single email comes in with a single document that needs an Approval?
  2. A single email comes in with multiple documents that needs an Approval separately for each document?
  3. A single email comes in with multiple documents that needs an Approval treating the multiple documents as 1 object being approved?

 

Trying to get a better understanding of your flow

Hi @wskinnermctc ,

apologies for the delay, I have been out on leave.

 

To describe the process - A specification is sent to a shared mailbox. when that arrives, the file is saved in a SharePoint library pending the 4 approval steps, supply chain, Technical, Commercial and Production. Once approved by all teams, the file is saved in the Live library. 

 

I am not sure what is happening with the flow jumping back, I agree, it is not something you would think can happen, but the flow will update the item to say approval is with production, but i then receive another email for the supply chain approval and no email to confirm approval to the commercial team to confirm approval??

 

Commercial (stage 3 approval)Commercial (stage 3 approval)Supply Chain (stage 1 approval)Supply Chain (stage 1 approval)Technical (stage 2 approval)Technical (stage 2 approval)

the email contains a single attachment

Have you been using Copy to Clipboard and Pasting in the steps then renaming them or something? 

 

I would triple check which Approval Responses are in the conditions as well as the email addresses being used for the notifications.

 

Another thing to check is what Outputs you are using in steps after you Update the item. Are you using the Outputs of the most recent Update Item? Or are your using the Outputs of a previous Update or even from the initial trigger?

 

 I would also check what is going on with the Technical approval and the use of Outcome in the Condition 4. If you have Technical Approval set to First Response then it will go forward. This is a good explanation about types of Approvals here SharePoint StackExchange . 

 

Another thing to test would be Approve the Supply Chain request and then Reject the Technical, and see how the flow runs. Same thing for the Technical is to test when it is Rejected.

 

I think some wires are getting crossed with the values you are using. This is very easy to do when you have so many steps that are similar. Like maybe using the Supply Chain response in the condition after Technical Approval or using the email address for Supply Chain in the Send Email to Commercial step. So I would go through each step and hover over the dynamic content and make sure it is using the correct output. Similarly look at the Approval types and verify it is set to what you want and how that is run in the flow.

Thank you, I will check all these points and let you know how I get on

Hi,

 

I checked all of the steps, and they are using the correct references.

 

The only issue I did spot is that I had not removed the send as email address which I didn't have the permissions for. 

 

This is a test flow based on an existing live process. I need to change the last part of the process to save the approved file to a new folder based on the product category, the Live flow is working without issue (saving the files to one single folder) and is identical except for the fact all the emails and approvals are directed to myself in this test version for me to complete the testing.

 

I did have one test manage to get to the next step in the flow, but failed due to the send as issue I pointed out above. see screenshot, I have not been able to get to that stage again in subsequent tests!spec flow.png

So further update, I have now managed to complete a full run. However, I did still receive 2 further 'Supply Chain' approval requests although they were missing the item name shown in the smaller of the boxes as an example.Spec Flow 2.png

That is very curious the subject line would be different.

So the second and third supply chain approval request were for the item MPS747104 but it doesn't say it in the header like the initial supply chain approval?

 

What is the trigger for the flow?

 

Is it possible you are triggering both your flows (test and live) whenever you run a test? For example when you run your test flow, is the test updating the item in SharePoint and then that is triggering the live flow?  

it appears that is the case yes, I thought the same about the subject line. I believe they were for the same item as that was the only one being tested.

 

The trigger is when an email arrives in a shared mailbox. I set up a new test mailbox so not triggering both flows, and the SharePoint folders referenced in my test are on a different site altogether. 

 

My user account is not part of the Live environment so I don't see those emails either.

 

I am thinking of perhaps writing a new flow for this now as it appears that when the flow is successful and completes what is required, it remains in a running state (I don't know how long that would be the case), so want to try and build it in a way that allows the flow to go to a succeeded state etc.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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

Users online (606)