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 / Error handling and val...
Power Automate
Unanswered

Error handling and validation

(0) ShareShare
ReportReport
Posted on by 3,224

Anybody have a good guide to best practices for error handling with PAD, specifically things like validating that correct values have been entered in a field?

for example, I watched this https://youtu.be/WWlyyirAqXM

i understand  how this type of error handling works.

I’m talking. About errors that don't stop the flow--for example, say I am populating a field but for some.reason the value I'm entering is not entered correctly (maybe the form.was slow.loadong one time and only half of.the field value gets entered.

What is the best way to catch this kind of thing? A condition.to check field.value?

 

 

I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    Here's how I'm currently doing it--it works, just was curious if there is a better way. In this example, I'm populating a field that is very important. I'm then doing a loop condition to check if the value of that element does not equal the desired value, then going back and doing it again. Is that the best approach?

     

    While it works, there seems to be some delay while the flow checks the value, so it usually loops a couple of times re-entering the same value before it proceeds

    step control.png

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Instead of Loop, I would use IF, but you have hit the nail on the head for what you want. 

     

    I would also set the text you want entered and validated as a variable, so as you copy this sequence to another field, you only have to update that text in one place.  This will essentially seem like more work:

    • 1) set a variable (must change text and the new variable)
    • 2) change variable in Send Keys
    • 3) change variable in Loop Condition

    versus just changing the text twice each time; however, changing something small like a number on a variable 3 times has much less room for human error than changing an entire text sequence twice.

  • Joel CustomerEffective Profile Picture
    3,224 on at

    Thanks Michael. I have moved the text to a variable. good tip on the IF vs Loop

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard