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 / Property doesn't exist...
Power Automate
Answered

Property doesn't exist in JSON (empty and equals don't work)

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I have looked at this solution: JSON missing property

But I just can't seem to get to work it for my solution.

 

My flow is as follows:

HTTP GET

Parse JSON (Body)

Update row

 

In the update row I use objects from my retrieved JSON, however, in some cases some objects are not available. Therefore the flow gives the following error:

Unable to process template language expressions in action 'Update_a_row' inputs at line '0' and column '0': 'The template language expression 'if(empty(body('Parse_JSON')?['quotes']?[0]['industry']),' ',body('Parse_JSON')?['quotes']?[0]['industry'])' cannot be evaluated because property 'industry' doesn't exist, available properties are 'exchange, shortname, quoteType, symbol, index, score, typeDisp, longname, exchDisp, isYahooFinance'. Please see https://aka.ms/logicexpressions for usage details.'.

 

I have tried these expressions, but all do not work:

- if(equals(body('Parse_JSON')?['quotes']?[0]['industry'],null),' ',body('Parse_JSON')?['quotes']?[0]['industry'])

- if(empty(body('Parse_JSON')?['quotes']?[0]['industry']),' ',body('Parse_JSON')?['quotes']?[0]['industry'])

- if(empty(body('Parse_JSON')['quotes'][0]['industry']),' ',body('Parse_JSON')['quotes'][0]['industry'])

(The [0] is retrieve only the first item of the array in the JSON.)

 

Do I do something incorrectly with the question marks? Or is it something else?

Thanks in advance!

Categories:
I have the same question (0)
  • JefT1 Profile Picture
    7 on at

    I only found similar solutions to the link I put in my original post. However, I found this which makes much more sense: verifying json properties existing or not in json array 

    It works, however, in theory the word 'Industry' in my example could also be part of the values of course. That is the risk.

  • Verified answer
    Ellis Karim Profile Picture
    12,098 Super User 2026 Season 1 on at

    See also: How to query JSON data using JSON notation with Power Automate


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • JefT1 Profile Picture
    7 on at

    This example is exactly what I was looking for:

    JefT1_0-1666532455560.png

    This way, it can't go wrong and I have only isolated the part of my JSON in the array of what I need.

     

    Will accept it as solution.

  • 3tsolutions Profile Picture
    94 on at

    I wrote a solution to handle missing properties of an object, if it helps..

    LINK

  • geficks Profile Picture
    9 on at

    Thanks a lot! Very helpful

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 476

#2
Haque Profile Picture

Haque 424

#3
David_MA Profile Picture

David_MA 350 Super User 2026 Season 1

Last 30 days Overall leaderboard