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

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
    11,681 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard