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 / Data type for PowerApp...
Power Automate
Unanswered

Data type for PowerApps parameter changes -- Why?

(0) ShareShare
ReportReport
Posted on by 362

Hello,

a few weeks ago I built a flow that gets started from a button in a PowerApp. It sends a SharePoint list item ID to the flow.

 

The flow reads the ID into a variable and then passes it on to actions that pull that item from SharePoint. The variable was initialized with the data type string. All was good.

 

Yesterday, that flow threw an error, saying that the variable of type String cannot be updated with a value of type Integer.

varIsString.png

 

I don't know why that happened, since neither the PowerApp nor the Flow had been changed. OK. I changed the variable type to Integer and the flow ran fine again.

 

This morning, the flow failed again, this time claiming that the Integer variable cannot be updated with a String.

 

varIsInteger.png

 

WHAT IS HAPPENING HERE??

 

Can there please be some consistency? How do I resolve this?

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    I suspect it happened because Microsoft tightened up the rules on data types and automatic casting.  The Item ID is and always has been an Integer.  I suspect in the past when you passed it to Power Automate it automatically cast it from an integer to a string and now its not doing that anymore.  Since it is an integer if you want it to be a string you really need to surround it with the appropriate FormatNumber() function.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard