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 / why cant i turn this s...
Power Automate
Unanswered

why cant i turn this string into a float

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Hoping someone can help me as im tearing my hair out a little 

Im setting up a server based flow to scrape some info from an automatically generated email.

 

I need to add up some of the numbers from one section and for some reason it I cant seem to be able to convert a string thats a single number into a float to add them. I have tried all sorts.

 

As you can hopefully see from the picture, ive tried passing the string into something that removes the spaces in case this was the reason it wasnt working, ive tried setting float variable with the string, ive been on youtube and even chat gpt - id be very grateful for any suggestions, but i keep getting variations of the following error message "Unable to process template language expressions in action 'Compose_4' inputs 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.'."

 

alibongo1_0-1718191842854.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @alibongo1 

    I am nor sure what could be wrong with the string representaion but you can check if the variable is a valid using isFloat function

    isFloat(outputs('Compose_3'))

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard