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 / InvalidTemplate. Unabl...
Power Automate
Unanswered

InvalidTemplate. Unable to process template language expressions in action 'Set_variable_12' 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.'.

(0) ShareShare
ReportReport
Posted on by 8

I am trying to perform this operation " if(contains(item()?['Uom'],'MM'),item()?['Width Item'],mul(float(item()?['Width Item']),10))"

inside 'Select' to map excel into new columns but i am getting this error. can you please guide me what am i doing wrong?

 

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Muneeb ,

    The most frequent cause of this error is that you are using , to separate the whole number from the fractional part and PowerAutomate knows only about decimal point doing that. 

    So you need to replace the , with .

    if(
     contains(item()?['Uom'],'MM'),
     item()?['Width Item'],
     mul(
     float(replace(item()?['Width Item'],',','.')),
     10
     )
    )

    Try this approach to see if is working. 

     

  • Muneeb Profile Picture
    8 on at

    @gabibalaban I am not trying to separate the whole number from the fractional part. I am only trying to multiply the value of my column by 10 but after narrowing down the issue I came to a conclusion that my column name is causing the issue.

    for example

    One of my columns is: 

    LPTT Per SUOM- CS\n(w/o VAT)
    and I am using concat in my select expression but it is still not reading the value of the column and giving me null. I have used all short of concat variations this being the last but nothing worked.
    item()?[concat('LPTT Per SUOM- CS','\','n','(','w', '/', 'o VAT',')')]
     
    Is there a way to rename my columns, I am reading an excel file from sharepoint or maybe change them while mapping in the Select operation.

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 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard