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 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:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard