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 / Status Code 200 - empt...
Power Automate
Answered

Status Code 200 - empty body/message

(0) ShareShare
ReportReport
Posted on by 17

Hey guys,

 

I'm working on the final touches of my workflow. And toward the end I want my workflow to Get Items (from a sharepoint list, and using the filter query Title eq Model_ID variable and Status eq In Progress):

- If an item is found, then the next steps can be skipped

- If an item is not found, then the next step (Create item) can run.

As such, I have configured the Create item action to run only when the Get Items has failed, because I thought that if it doesn't find an item, it fails...

 

But when testing the workflow, I noticed, that despite not finding a matching item, it comes with a Status Code 200, meaning it's successful, but the body message is obviously empty, cause no items were found. It actually says "value": []. This has an impact on my next steps, because it doesn't create the item as it should.

 

My first solution to fix this was trying have a Condition after Get Items where:

outputs('Search_for_an_existing_in_progress_Phase_2')['statusCode'] is equal to 200 AND 
outputs('Search_for_an_existing_in_progress_Phase_2')['body/message'] is [left empty]
So if it's true, then I can Create item, if not, i terminate my flow.
I also tried body, instead of body/message; I also tried "value": [] instead of leaving it empty.
None of these options seem to work.
 
Any ideas on how to address this in the best way? Is there something else I could try instead of "value": [] and leaving it empty?
Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @Capshoo1 You might find this YT Tutorial helpful in troubleshooting your flow: 5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows

     

    In this tutorial I cover:

     How to troubleshoot a false Condition action result

     How to get dynamic content when it isn’t selectable from the list of dynamic content

     How to troubleshoot an Apply to Each action that isn’t looping through

     How to troubleshoot a skipped Apply to Each action

     How to troubleshoot a Filter Query

     How to use a SharePoint yes/no column in a Filter Query

     How to use Compose actions to troubleshoot a Power Automate flow

    How to troubleshoot multiple emails being sent

     How to troubleshoot multiple Teams messages being sent

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

  • Capshoo1 Profile Picture
    17 on at

    That's brilliant! Thank you @creativeopinion ! The thing that worked was to create a Compose action after Get Items to count the number of items. And created a Condition after to only Create an Item if the Outputs of the Compose are 0.

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