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 / SharePoint field type ...
Power Automate
Answered

SharePoint field type conversion error

(0) ShareShare
ReportReport
Posted on by 115

I have a SharePoint field of type text that get the value from the calculate of add(). After that I try to get that SharePoint field and convert to integer int() for another calculation. However, I get the error below. How to fix this?

 

Unable to process template language expressions in action 'VM_Charge' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @nahcyrret ,

     

    It means the value of int parameter is wrong. It cannot be converted to the int type. Please check it.

     

    Best Regards,

    Wearsky

  • nahcyrret Profile Picture
    115 on at

    It is a integer number in SharePoint text field. I wonder why it can't be convert back to integer using int().

  • v-xiaochen-msft Profile Picture
    on at

    Hi @nahcyrret ,

     

    I don't know what's going on with your flow.

    If you save the value directly without Int, will it work?

     

    Best Regards,

    Wearsky

  • nahcyrret Profile Picture
    115 on at

    UpdateVMCharge.pngIntVMCharge.PNG

    The VM Charge text field is first populated from value of another SharePoint field(I have tried both text and number type). You can see the 0 value. After that compose of VM Charge is int(VM Charge) that got the error. See if you can actually reproduce it?

  • v-xiaochen-msft Profile Picture
    on at

    Hi @nahcyrret ,

     

    My flow ran successfully. Please see the figures.

    vxiaochenmsft_0-1664938879967.png

    vxiaochenmsft_1-1664938911486.png

    vxiaochenmsft_2-1664938939759.png

    vxiaochenmsft_4-1664938987285.png

     

    What's the difference from my flow and yours?

    Did I understand your flow correctly? 🙂

     

    Best Regards,

    Wearsky

  • nahcyrret Profile Picture
    115 on at

    It is not directly having a value in the Title field. The Title field should be populated from another SharePoint list field with the value 0 first.

  • Verified answer
    nahcyrret Profile Picture
    115 on at

    I know the problem. I should get item from the SharePoint list again after it has been updated in order to use that updated value. I get the value from create item for SharePoint list which has not been updated yet and the value is null.

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

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard