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 / Condition Error - Not ...
Power Automate
Unanswered

Condition Error - Not specified.

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I'm new to MS Flow and I keep getting this error in my condition "Not specified."

 

Here is the error:

Run History Microsoft Flow - Google Chrome.jpg

Here is my condition:

Edit your flow Microsoft Flow - Google Chrome.jpg

 

equals(string(body('Analisar_Twitch_JSON')?['data']),variables('data')) equals to TRUE
 
So to give some context, the condition works when it is false but when it is true gives that error (not sure why :/)
Run History Microsoft Flow - Google Chrome_2.jpg
 
Best regards,
Marco
Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Peralta 

     

    what is body('Analisar_Twitch_JSON')?['data']) (is this an array?) can you share screenshot of output

     

    also variables('data') - what type of variable is this? what is the value set?

  • Peralta Profile Picture
    11 on at

    Hi @RezaDorrani 

     

    yes it is an array

    {
     "data": [
     {
     "id": "35303162592",
     "user_id": "31239503",
     "user_name": "ESL_CSGO",
     "game_id": "32399",
     "type": "live",
     "title": "Live: EU Pro League Relegation S9 - Day 1 - **bleep** vs Heretics",
     "viewer_count": 19579,
     "started_at": "2019-08-15T09:36:32Z",
     "language": "en",
     "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_esl_csgo-{width}x{height}.jpg",
     "tag_ids": [
     "6ea6bca4-4712-4ab9-a906-e3336a9d8039"
     ]
     }
     ],
     "pagination": {
     "cursor": "eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MX19"
     }
    }
    the variable data is a string, that is why i'm converting the json output to a string.
     
    the ideia is that if the API returns this:
     
    {
    "data": [],
    "pagination": {}
    }
     
    it runs the left side, if it returns the normal output runs the right side.
     
    I also tried to use if empty(body('Analisar_Twitch_JSON')?['data'])) == true and i still get the same error and behaviour 
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Peralta 

     

    add a compose action after your Analisar_Twitch_JSON action

    and try the following expression

     

    length( body('Analisar_Twitch_JSON')?['data'])

     

    and run flow and see value when response is empty

     

  • Peralta Profile Picture
    11 on at

    Hi @RezaDorrani 

     

    So when the API gives some info it works as normal

    Run History Microsoft Flow - Google Chrome_5.jpgRun History Microsoft Flow - Google Chrome_6.jpgRun History Microsoft Flow - Google Chrome_7.jpg

     

    But when it outputs the empty data array the condition block still gives the same error

    Run History Microsoft Flow - Google Chrome_3.jpgRun History Microsoft Flow - Google Chrome_4.jpgThis is the output of the compose blockThis is the output of the compose block

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Peralta ,

     

    It looks like Compose is an array, you could use length() to determine if the array is empty.

    159.PNG

     

    Best Regards,

  • Peralta Profile Picture
    11 on at

    Hi @v-bacao-msft 

     

    Just tried to use the expression that you had, still gives the same error (Not specified.)

     

    asdasdasd.jpgReply to Message - Power Platform Community - Google Chrome.jpg

     

    PS: The error only happens when the statement is true

     

    Best regards,

    Marco

  • Peralta Profile Picture
    11 on at

    Hi everyone,

     

    Tried some alternatives and I still get the same error. I think we encountered some sort of bug in the condition block (or I am terrible at making Flows Smiley Tongue)

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Peralta ,

     

    The method I recommend is based on the structure provided in the screenshots you provided.

    httpsprod-72.westeurope.logic.azure.comworkflows5e43881b4d0d40e596c4b001801174e2runs08586357132246318383302256573CU46actionsCompos.jpgRun History Microsoft Flow - Google Chrome_4.jpgRun History Microsoft Flow - Google Chrome_3.jpg

    I tested Condition on my side and didn't meet the error you mentioned.

    Please try to re-create a similar Flow and do the testing.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Peralta 

    I am getting the same error trying to run a simple condition. My flow is meant to UPDATE a SP lists' items from an Excel file ... or ... CREATE a new item if it doesn't exists. One side of my condition (the UPDATE) works fine, however, the CREATE side returns the 'Not specified' error. Personally, I'm with you, I think Flow isn't working correctly.

     

    My flow:

    Condition formula:  not(empty(body('Get_items')?['value'])) --- is equal to --- true

    Condition - Not specified error.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Peralta 

    I got mine to work using a Compose action between 'Get items' & my 'Condition'. See picCondition - Not specified error - using Compose.jpg

     

    The solution at the bottom of this link helped me fix my issues: 

    https://powerusers.microsoft.com/t5/Building-Flows/Check-if-filtered-SharePoint-list-is-empty/m-p/248450/highlight/false

     

    Hope this helps!

     

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
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard