web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Data type for PowerApps parameter changes -- Why?

(0) ShareShare
ReportReport
Posted on by 360

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?

 

I have the same question (0)
  • Pstork1 Profile Picture
    68,271 Most Valuable Professional on at
    Re: Data type for PowerApps parameter changes -- Why?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard