web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow does not run comp...
Power Automate
Answered

Flow does not run completely

(0) ShareShare
ReportReport
Posted on by 174

Here is a copy of a flow i built.  The purpose of the flow is to have the person who enters an item receive a confirmation email when the item is created, and a follow up email when an item is modified.

 

The flow runs fine when we enter a new item but fails when we modify it.

Not sure why?

 

Flow 

• When an item is created

• Initailize variable

• Apply to each

• Initailize variable

• Apply to each

• Initailize variable

• Apply to each

• Initailize variable

• Apply to each

• Initailize variable

• Apply to each

• Initailize variable

• Apply to each

• Send an email

The flow up to this point works perfectly. The next segment does not work

• When an items is created or modified

• Initailize variable

• Apply to each

• Condition:  Created does not equal Modified

• If yes:  Switch

• If no:  nothing happens

On PHASE = 9 different cases

Each case is set up with 

• Get items for the specific phase selected

• Send an email

The flow shows that it is running when the phase is changed but it never completes.  Any ideas?

 

 

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,391 Super User 2025 Season 2 on at

    A screenshot of the flow would be much more helpful than a list of the steps. Could you provide one?

    Rob

    Los Gallardos

  • feilda Profile Picture
    174 on at

    flow part 1.PNGflow part 2.PNGflow part 3.PNGflow part 4.PNGflow part 5.PNGflow part 6.PNGflow part 7.PNGflow part 8.PNGflow part 9.PNGflow part 10.PNG

  • v-yamao-msft Profile Picture
    on at

    Hi @feilda ,

     

    Thanks for providing the screen shots.

     

    Do you want to do certain actions if the item is newly created, while other actions if it is modified.

     

    I would suggest you remove the first segment and use the trigger When an item is created or modified directly.

     

    You could add a Condition to check if Created date time equals to Modified date time, if yes, it is a new action, do actions you want. If not, it is a modified item, do other actions.

     

    Please take a try with it on your side.

     

    Best regards,

    Mabel

     

  • feilda Profile Picture
    174 on at

    OK i did what you recommended and the second part runs now with success but returns the wrong result.  It returns a result of default instead of the appropriate pathway in the switch.  I do not have default set because i am using a choice column that forces a choice between 9 items.flow part A.PNGflow part B.PNGflow part C.PNGflow part D.PNGflow part E.PNGflow part F.PNGflow part G.PNGflow part H.PNGflow part I.PNGflow part J.PNGflow part K.PNG

  • feilda Profile Picture
    174 on at

    i completed the build of the flow as  you advised.  It runs successfully but delivers a default response which is incorrect. The switch offers 9 choice options and does not offer a default.

  • v-yamao-msft Profile Picture
    on at

    Hi @feilda ,

     

    Could you share more details on variable “var PHASE”?

     

    The action Append to string variable select output from “PERSON REQUIRED”, While the value is dynamic content PHASE. Could you shed more light on this part?

     

    I have set up a simple flow likes below for your reference.

     

    Further, from the screenshot it seems that Switch 2 is added between the actions. Could you please try to add it at the top within the If no branch?

     

    Images for your reference:

    1.PNG2.PNG3.PNG

     

     

    Best regards,

    Mabel

     

  • feilda Profile Picture
    174 on at

    Per you note above.

    The var PHRASE is = to the column in my list titled PHASE.  This column is a  choice column where the user can select one item in the column choice.  There are 9 choices in the column.  As the item is processed the user will come to the column and changes the phase.  Each time the phase changes we want an email to go to the person who created the item

     

    It is not “PERSON REQUIRED”  It is “PERSON REQUESTING”.  This is the email for the person creating the item in the list.  The "PERSON REQUESTING COLUMN" is a People or Group column that is a selection form our active directory that has the persons name and email address.

     

    the screen shot is a bit off.  The "Switch 2" action is directly at the top of the "no" side of the "condition"   On the yes side of the condition i have an action of send email.  This is to send an email to new items created on the list.  On the no side of the condition i have the switch to send an email when an itme is modified based on the phase selection.  

     

    The flow is running successfully but will not select the correct switch chosen.   It automatically goes to the default switch and does nothing as the default switch is not set to do anything.

  • feilda Profile Picture
    174 on at

    i just noticed something else i think is affecting the flow.

    when i add the send an email from a shared address under the yes side i get a mailbox address field option.  when i send an email v2 i do not get this option.  The  yes side of my flow is running perfectly yet i am using the var Report Request in the address field as our company has not turned on the option to use our share email boxes yet.

    flow part 6-21-19.PNG

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

    @feilda 

     

    You mentioned that the PHASE is a column of type choice right? In that case, in the variabel the value of the choice should be intialised (in the dynamic selector it will appear as PHASE Value). Can you confirm that this is what you are doing in the flow? Based on your comment, that the default case is being selected, I am guessing the issue could be due to this. 

     

    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!

  • feilda Profile Picture
    174 on at

    Thanks for your reply

     

    I have already initaialized "PHASE" as a string variable labeled "var PHRASE.  However when the dynamic content comes up it does not offer me an output choice of phase or phase value.  See below. 

     

      flow part 6-21-19 (2).PNG

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard