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 / The variable 'Test' of...
Power Automate
Answered

The variable 'Test' of type 'Integer' cannot be initialized or updated with value of type 'String'

(0) ShareShare
ReportReport
Posted on by 50

Rushi_Chandak_0-1650364696087.png

 

Error- The variable 'Test' of type 'Integer' cannot be initialized or updated with value of type 'String'. The variable 'Test' only supports values of types 'Integer'.

 

I have first Initialized the Integer variable, Then i want to set the variable. but i am getting this error. 

Any one having any idea regarding this?

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,472 Most Valuable Professional on at

    Hi @Rushi_Chandak,

     

    It looks like you are using a text value instead of a number value in the set variable action.

     

    In the set variable you can try and convert it to a number by using an expression with an int function:

     

    int(outputs('Compose'))

     

     

    setvariableinteger.png

  • Rushi_Chandak Profile Picture
    50 on at

    Thank You. @Expiscornovus 

    Its Working Now. 

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 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard