web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Failed Flow - Compose ...
Power Automate
Unanswered

Failed Flow - Compose Action Errors

(0) ShareShare
ReportReport
Posted on by 6
I have two columns in a SharePoint list: Amount and USD Rate.
They are Number columns set to 2 decimal places with the thousand separator. (But Schema debugging shows SharePoint is storing them as integer)

I want to set up a flow to update another Number (or Currency) column called USD Amount Flow.
This column will be populated by the figure derived from dividing Amount by USD Rate.

I have tried many formulas for the Compose action input, but I keep getting the error message that the input is not being converted to a number/double format.

E.g. Compose inputs:
div(float(triggerBody()?['Amount']), float(triggerBody()?['USD Rate']))
float(concat(triggerOutputs()?['body/Amount']) / concat(triggerOutputs()?['body/USD Rate']))
json(string(float(triggerOutputs()?['body/Amount']) / float(triggerOutputs()?['body/USD Rate'])))
float(triggerOutputs()?['body/Amount']) / float(triggerOutputs()?['body/USD Rate'])
 
E.g. error messages:
Action 'Update_item' failed: The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/USDAmountFlow' is required to be of type 'Number/double'. The runtime value '"div(float(triggerBody()?['Amount']), float(triggerBody()?['USD Rate']))"' to be converted doesn't have the expected format 'Number/double'.

I have created multiple Compose actions to force conversion to number, but nothing has worked.

In the Update Item action, when I hardcode the USD Amount Flow field to say 100, the flow is successful, so it would seem that the problem is not with SharePoint, but with how Power Automate is handling the output of the Compose formulas.

I've been on this for 24 hours (not kidding)
What's the problem?

Thanks.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,175 Most Valuable Professional on at
    Failed Flow - Compose Action Errors
    Hi @Omo,
     
    Normally internal names of fields don't have a space. So, it might be a small typo in the expression for the USD Rate field.
     
    Can you try the below expression instead:
    div(triggerOutputs()?['body/Amount'],triggerOutputs()?['body/USDRate'])
     
     
    Test result
     
  • Omo Profile Picture
    6 on at
    Failed Flow - Compose Action Errors
     
    You're a life saver, thank you so much!
    I was using Dynamic content for USD Amount Flow instead of FX expression as your pictures show.
    Everything works now!
     
    Thank you thank you!!

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard