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 / Unable to process temp...
Power Automate
Answered

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

(0) ShareShare
ReportReport
Posted on by 15

Hi, 

I created a flow to calculate test results and send email based on the pass or fail condition. When I run the flow I get the following error message at the condition. 

MehmoodQureshi_0-1666716880183.png

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 

I have this expression at the condition - 

 

MehmoodQureshi_1-1666716950376.png

float(outputs('Get_a_row')?['Body/Score'])
 
Please know that I dont have a coding or programming background but was tasked to created this flow for an internal quiz that we are supposed to roll out to a larger audience. Can you please help correct this error? 
Appreciate your help!

 

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

    Insert a compose just before the condition and add the outputs('Get_a_row')?['Body/Score'] to it.  That way you will be able to see the value that you are trying to convert to a float.  It needs to be a string that contains a number.  Otherwise you will get the error you are seeing.

  • MehmoodQureshi Profile Picture
    15 on at

    Can you help me with compose? I dont think I follow how to add it before the condition..

  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Just click on the plus inline right above the Condition action.  Then add a 'Compose' action.  Insert the same dynamic content field in the Compose that is in the left side of the Condition.

    image.png

    If the Condition is the first thing inside a loop then you won't have a plus above the Condition.  In that case add it just after the Condition and then Drag and Drop the Condition below the Compose after its added.

  • MehmoodQureshi Profile Picture
    15 on at

    Ahh it made sense! So did exactly what you told me to, but I still get the same error and warning at the condition. It passes the compose action just fine. Here is the screenshot...

    MehmoodQureshi_0-1666725522255.png

     

  • MehmoodQureshi Profile Picture
    15 on at

    Hey everone! I still need help with this error. I learned that no matter what the condition is (float, outputs, isfloat), I get the same error. I dont think the cause of the problem is at the condition level but I could be wrong..

  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Use that Compose to see what the value is that you are running the condition on.  That should help you figure out why it can't be converted to a float.

  • MehmoodQureshi Profile Picture
    15 on at

    Hi Pstork1, 

    I tried the compose multiple times. The flow passes the compose just fine but then throws the same error at the Condition for Float(outputs('Get_a_row')?['Body/Score'])

  • Verified answer
    Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    I get that it passes the compose.  The point is to use that in the run log to see what value is being passed  for outputs(Get_a_row')?['Body/Score']) so that you can determine why it won't work with float().  I suspect there is something like the number being text or an integer that is causing the problem.  On the run where you get the error what is the actual value in the compose for that output?

  • MehmoodQureshi Profile Picture
    15 on at

    MehmoodQureshi_0-1667492690352.png

    Compose output

     

    MehmoodQureshi_1-1667493041275.png

    I have the flow attached to a spreadsheet to calculate score. Do you think I need to make any changes to the cells of the spreadsheet? 

  • MehmoodQureshi Profile Picture
    15 on at

    Thank you for helping me out with this issue. I was able to rectify it. I have another unrelated question. In order for me to integrate a quiz with power automate, do I always need to be the owner of the quiz? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard