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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Checking for text in E...
Power Automate
Unanswered

Checking for text in Error Message

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All

I'm trying to build an automation using PAD. I want to achieve simple thing but for some reason, it's not working for me.

I want to see if "LastError" contains specific text and do actions based on that. Just wondering what am I doing wrong?

 

 

yjamous_0-1690580513443.png

 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Seems like you have added double quotes around the text you're checking for. Try removing them and it should work.

    Or, copy this instead of your IF statement into PAD to have it created for you:

    IF Contains(LastError, $'''Action: 22''', True) THEN

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard