top of page
Writer's pictureKristen

Testing and troubleshooting with Power Automate

Updated: Mar 27, 2021

Once you have created a flow in Power Automate --especially one with your own custom connector as described in the previous post --you're going to need to test it. I don't mean "test" in the sense of "does it run;" I mean detailed testing.


Luckily, as per usual, Microsoft has a plan for that.


To illustrate, I am going to use one of my own flows. I have a flow that is triggered upon an email arriving to a Gmail account. When it arrives, the flow extracts that email to an ".eml" file and saves it to my personal OneDrive. It also checks for attachments to that email, and if any exist, it loops through them, and saves them in a subfolder of the Email folder, but changes the name to append the subject of the originating email to the file name.



As luck would have it, I changed my Microsoft password yesterday. I got an alert in my email that one of my flows was consistently failing. So, I went to check it.



Yes, it most definitely is consistently failing. But let's pretend that I didn't remember that I had changed my email. How would I know what was wrong?


I click on the most recent failure, and that opens up the details of the "run."



The red exclamation point icon lets me know that this is the step that is failing, so I click to expand it.




It already knows that the issue is "Unauthorized" and is telling me that at the top of the page, but I can also see the inputs and results now, which clearly say that this it was unable to authenticate the connection.


So, I go back to the summary screen and look at the Connections listed.


I see them in the top right box, so I click Edit.



And there is another red exclamation point, letting me know that this is the account with the issue. So, I click Manage connections.




Then, I click Fix connection. It brings me to replace my credentials, which I do, and it is successful.


I can now go back to the original flow, NOT the run, because I want to make sure that I haven't broken anything somehow, so I click Flow Checker and things looked fine, so I click Test Flow.




However, while I can choose to test it this way, the best test is going to be to resubmit something that already failed, so I am going back to click one of the failed runs. I choose to Resubmit with the link at the top, and am prompted to continue.



So, the flow is running again, and shows me as it goes...


Everything completes successfully, as indicated with the little green check mark icons. To be sure, when I return to the summary page, I can see that the latest run was indeed successful.



So, my job is now working again. I can go to each of those failures and resubmit them. I have lost no data or information, and everything can be resubmitted with no issues, as if running for the first time.

Comments


© 2018-2023 By Kristen Swearingen - swearingen.me | MiddleChild Tech | eruditeMETA. All rights reserved.

This publication may not be reproduced or distributed in any form with the author's prior written permission. It consists of opinions of the author's research and experience, which should not be construed as statements of fact. While the information contained in this publication has been created and cited where obtained from sources believed to be reliable, the author disclaims all warranties as to the accuracy, completeness, or adequacy of such information. Although this post and cited research may address legal and financial issues, the author does not provide legal or investment advice and its publication should not be construed as such. Your access and use of this publication is governed by the Usage Policy for swearingen.me | MiddleChild Tech | eruditeMETA,, respectively. The author prides his/her/their self on his/her/their reputation for independence and objectivity. The research and publication(s) are produced independently by its authors and organization without input or influence from any third party. For further information, see the Guiding Principles on Independence and Objectivity.

bottom of page