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 / 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

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
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard