Skip to main content

Notifications

Power Automate - General Discussion
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?

 

  • Rushi_Chandak Profile Picture
    Rushi_Chandak 50 on at
    Re: The variable 'Test' of type 'Integer' cannot be initialized or updated with value of type 'String'

    Thank You. @Expiscornovus 

    Its Working Now. 

  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 31,113 on at
    Re: The variable 'Test' of type 'Integer' cannot be initialized or updated with value of type 'String'

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard