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 / What is wrong with thi...
Power Automate
Answered

What is wrong with this "Do until" code?

(1) ShareShare
ReportReport
Posted on by 4
This is giving me an error saying it isn't valid:
 
@or(equals(variables('var_pipeline_status'),'Completed'),equals(variables('var_pipeline_status'),'Failed'),equals(variables('var_pipeline_status'),'Cancelled'))
 
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    16,298 Super User 2026 Season 1 on at
    Hi there!
     
    It looks like you are missing a second 'or'.  There are 2 optioms:
     
    
    or(
      equals(variables('var_pipeline_status'), 'Completed'),
      or(
        equals(variables('var_pipeline_status'), 'Failed'),
        equals(variables('var_pipeline_status'), 'Cancelled')
      )
    )
    

    Or even a little cleaner using contains:
     
    
    contains(
      createArray('Completed', 'Failed', 'Cancelled'),
      variables('var_pipeline_status')
    )
    
     
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Verified answer
    PowerDeveloperTP Profile Picture
    453 on at
    Hello,
     
    Its because of '@' infront the formula. Could you please that without '@'. Hope this helps.
     
    or(
      equals(variables('var_pipeline_status'),'Completed'),
      equals(variables('var_pipeline_status'),'Failed'),
      equals(variables('var_pipeline_status'),'Cancelled')
    )
     
    Thank you.
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
    This helps others find solutions to future issues!
  • Suggested answer
    Power Platform Guy Profile Picture
    220 on at
     
    Your logic is correct, the @ is in the wrong place.
     
    or(
      equals(variables('var_pipeline_status'),'Completed'),
      equals(variables('var_pipeline_status'),'Failed'),
      equals(variables('var_pipeline_status'),'Cancelled')
    )
     
     
  • AH-14041749-0 Profile Picture
    4 on at
    I tried without the at symbol and it still didn't work. I ended up using a condition statement and the set variable to one variable "isFinished" and that works.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard