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 / Power Automate Flow Sw...
Power Automate
Unanswered

Power Automate Flow Switch or condition statement fails to recognize a number value in a SharePoint Field. There is no VALUE options for this numeric field.

(0) ShareShare
ReportReport
Posted on by 20

Scenario:

Data Source: SharePoint

Field Name being referenced using Dynamic Content: IsCompleted (In SharePoint this is a numeric value with no decimal Places)

 

Issue:

So I have to use the Dynamic Content IsCompleted  because there is not IsCompleted Value option.

 

The execution of template action 'Switch' failed: The result of the evaluation of 'scope' action expression '@triggerBody()?

'IsCompleted']' is not valid. It is of type 'Float' but is expected to be a value of type 'String, Integer'.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    In Power Automate a floating point number is not automatically converted to an integer. Since you are using an integer in the comparison you need to put int() around the value to convert it to an integer.  Or change you comparison to use a floating point number.

  • jholmes724 Profile Picture
    20 on at

    And where do I put this int() function in the flow?  On the switch control?  in code somewhere?  If in code Would it be something like this, and exactly where would I put this code?

     
      "expression": "@triggerBody()?Int(['IsCompleted'])"
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Line this

     "expression": "@int(triggerBody()?['IsCompleted'])"
  • jholmes724 Profile Picture
    20 on at

    Ok that will probably work however, I believe I gave you a very detail description of the issue.  So why are do you not answer all my questions?  Your responses are just one-liners that are not totally helpful.  I am sure you know that the code view is read-only.  So how am I supposed to edit this code?

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I'm sorry, I didn't see any other questions. Just the question that your switch wasn't working because it was expecting an integer and was receiving a Float.  What other questions do you have? 

     

    If you are trying to do a switch on a number then you need to convert the number from a float to an integer in the spot where you are putting the float.

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard