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 / Power Automate Flow ha...
Power Automate
Unanswered

Power Automate Flow has stopped working

(0) ShareShare
ReportReport
Posted on by 16

I created a flow using the web version of Power Automate, and it worked well until yesterday when it stopped. The flow, triggered manually, sends individual emails to people with personalized reports (pdf files). The individuals' names, email, addresses, and file names are stored in an Excel table.

 

This flow worked for a few days after I created it last week. But as I continued testing it this week, it stopped working. The run report shows it succeeded, but the emails are not getting sent.

 

The connections are OneDrive for Business, Excel Online, and Outlook 365.

Categories:
I have the same question (0)
  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @martinnpenn1 ,

     

    Could you please share an image from the flow run details? To access it, you just have to navigate until the flow run history and click on the Date/Time of the run, like in this image:

    rzaneti_0-1686159883540.png

     

    After accessing it, you will be able to check the inputs and outputs for each action: please share with us the output from 'Send an email' action. Do not forget to remove any sensitive data from the image. 

  • martinnpenn1 Profile Picture
    16 on at

    martinnpenn1_0-1686160211977.png

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @martinnpenn1 ,

     

    Based on your image, the email will be sent only if 'Condition' is true. The "expression result" from the 'Condition' shows that it is returning as false. Could you please share the content of this 'Condition'? If you are using an expression for it, you also can share the expression text.

  • martinnpenn1 Profile Picture
    16 on at

    here is more detail to the flow.

    martinnpenn1_0-1686162935515.png

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @martinnpenn1 ,

     

    Your Excel file name is not matching with the data that your are pulling from Onedrive action in this conditional statement. There are several possible reasons for this behavior, so I ask you to share the body of the JSON output from your OneDrive and Excel actions. You can get the output by accessing your flow run details and clicking in "Show raw outputs":

    rzaneti_0-1686173711231.png

     

    It will appear a section like this in the right side of your screen:

    rzaneti_3-1686173983150.png

     

     

    In some cases, when you have a large output, it appears as 'Click to download':

    rzaneti_1-1686173801196.png

     

    Make sure to remove any sensitive data from the images before sharing it here. If the outputs look to big to you share it completely, you can just post the beginning of the "body" part. 

  • martinnpenn1 Profile Picture
    16 on at
     

    martinnpenn1_1-1686179480273.png

    martinnpenn1_4-1686179656931.png

     

     

    martinnpenn1_2-1686179540484.png

     

    Raw data of outputs

     

    martinnpenn1_3-1686179566680.png

     

     

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @martinnpenn1 ,

     

    In your flow, you are pulling a list of files from an Onedrive folder and looping them. Inside this loop, you capture all rows from an Excel table and also loop it. If the current iterations of both loops matches (name of the Onedrive file with the value in the Excel row for 'File Name' column), the condition will be true and your email will be sent. 

     

    Due to this flow structure, most part of the loops won't match (this is expected), and consequently the email won't be sent. In a quick look, your flow should be working fine, as it looks like there is the exact same structure between the Onedrive file name and the Excel 'File Name' column.

     

    To try to identify what is going on, you have two possible approaches here, and I recommend you to go with both. first, you insert another action inside your condition to notify you if the loops matches: you can just use the 'Post a message in a chat' from MS Teams connector and, in the body of the message, include the file names from Onedrive and Excel:

    rzaneti_0-1686224390237.png

    You can assign yourself as Recipient.

     

    Additionally, if for any reason none of the iterations enter in the loop, you can create a kind of 'log' to compare each iteration and find any unexpected result. For doing this, you need to (1) initialize an array variable out of all loops (and before they run), (2) inside your inner loop and out of your condition, use the 'append to array variable' action and insert the file names from both iterations (Excel and Onedrive), (3) after the loops, add an action to send this array to yourself via Teams, just like we did in the first approach. Here is an example about how to append the values to your array variable:

    rzaneti_1-1686224666243.png

     

    In this case, I'm appending directly the value from the iterations, but make sure to append the File Names in your case.

     

    After that, if you receive any message on Teams for an individual loop (first approach), it is because the email was probably sent to user, as the flow properly entered in the condition. If you do not receive any message from an individual loop, you will at least receive a list with all iterations, being able to find where the both loops should be matching (same file name) and identify any error in any of the values. 

  • martinnpenn1 Profile Picture
    16 on at

    I appreciate your time and advice, but I need a bit more detail on how and where to "insert" these two actions. I am just learning how to use PowerAutomate and don't fully understand all the connections, triggers, and actions.

     

    Thank you,

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @martinnpenn1 ,

     

    Sorry for the incomplete explanation in the previous message.

     

    Step 1: initialize variables

    You will initialize 2 array variables in the beginning of your process. You just have to go to the top of the flow, place your cursor on one of the arrows that connect 2 actions, and then click on the '+' when it appears.

    rzaneti_0-1686259100043.png

     

    Once you do this, you will look for the 'Initialize variable'  action, and after click it, select the type of the variable as 'array'. Feel free to name them by your convenience and you do not need to assign any 'value' to the variables:

    rzaneti_1-1686259192849.png

     

    Step 2: Append general array variable

    You have two nested loops in your process: 'apply to each' (external loop) and 'apply to each 2' (internal loop). Inside the internal loop, you have a condition, where you check if the file name matches with the name contained in your Excel table. inside this internal loop, but before the condition you will add an 'append to array variable' action (be careful, because there is also an 'append do string variable'). If you do not see the '+' icon as in the image from the 1st step, you can click in 'add an action' and then just drag and drop it to before the condition:

    rzaneti_2-1686259560065.png

     

    Once you add your 'Append to array variable' action, you will select one of the arrays variables that you created in step 1st and, in the value, add the dynamic contents from the Onedrive file name and the Excel table file name column (the same dynamic content that you inserted in your conditional action).

    rzaneti_3-1686259791433.png

     

    To make the array reading easier in the future, I recommend you to add a '-' between the 2 dynamic contents.

     

    Step 3: Append to the individual array

    Using the other array, you can repeat the step 2, but this time placing the 'append to array variable' function inside the 'if yes' block from your condition. Instead of passing the both dynamic contents to the value, you can pass only one of them (as they may be identic, it is irrelevant which one you will select).

     

    Step 4: Show the outputs from both arrays

    There are several ways to check the output from the arrays. One easy way to do it is to assign the array variables to 'Compose' actions. You will add this actions at the end of your flow, out of all the loops (internal and external). 

     

    The process is the same of adding any other action and your input will be each array variable (our goal here is just to make the output from these variables easier to read after the dozens of loops):

    rzaneti_4-1686260254318.png

     

    After the composes, your flow is ready and you can run it. Once you run it, check the outputs from the compose actions (the same way that you did to check the outputs in the previous messages) and you will be able to check in the arrays (especially in the general one) if there is any unexpected value. 

     

    Let me know if you need any additional clarification on the process.

  • martinnpenn1 Profile Picture
    16 on at

    Thanks for this information and detailed instructions. I was able to see that something is not matching.

    First, the OneDrive folder has ~180 pdf files (what I need to grab and send individually). Yet the first loop is only seeing 20.

    martinnpenn1_0-1686261968110.png

     

    For testing purposes, I am only using 3 rows in the Excel, and the file names are the same as those shown in the OneDrive. (I copied and pasted to avoid any typos).

    This is the Append to array variable I just added BEFORE the condition.

    martinnpenn1_1-1686262162770.png

    and this is the what happened when I ran the flow.

    martinnpenn1_2-1686262249606.png

     

    it appears that the filename from the Excel file is not pulling correctly.

     

     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard