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.
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 -
I assume by quiz you mean MS forms quiz. In that case you need to either be the owner of the quiz or if it's a group form you need to copy the ID from the URL in MS Forms and input that manually into Power Automate.
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?
Compose output
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?
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?
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'])
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.
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..
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...
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.
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.
Can you help me with compose? I dont think I follow how to add it before the condition..
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional