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 / 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:
  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at
    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
     
    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

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 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard