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 Apps / Wandering Data Types
Power Apps
Answered

Wandering Data Types

(0) ShareShare
ReportReport
Posted on by 932

I experience a strange phenomenon from time to time; my data types change unexpectedly/unpredictably.

My data source is a SharePoint list.

Currently, the issue is I have a text field called, "State." "State" was collected via a default value in a hidden text box, like so:

BenDonahue_3-1606923959187.png

 

The SharePoint list has "State" listed as "Single line of text:"

BenDonahue_4-1606924004471.png

 

"State" is Collected as .Text:

BenDonahue_5-1606924055414.png

 

At the end of the multi-page survey, when I try to Patch() using State: State, I am told I have a data type mismatch. Expecting text, received enum:

BenDonahue_6-1606924308910.png

Notice that I am successfully using "StreetAddress: StreetAddress, StreetAddress2: StreetAddress2" earlier in the statement.

The Question

What is going on? 

How do I avoid this wandering data type issue?

How do I fix this code?

 

Thank you for your help in this matter. It is greatly appreciated.

 

P.S. It turns out that, when I add a ForAll to the patch, the fact that PowerApps changed my StreetAddress, again, collected through a textbox, it is collected as a "Record:"

BenDonahue_0-1606924728988.png

 

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

    There are some keywords that are used by the system.  I suspect State is one of those and that is what you are getting instead of the variable you defined.  Either rename your variable or try using disambiguation when referencing your variable, ie [@State].

  • BenDonahue Profile Picture
    932 on at

    I wonder what other chaos I have been creating by directly altering "State" like that. Ty, @Pstork1.
    Would you happen to know why "City" is being changed to an enumerator from text?

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

    Probably.  When I've used it in the past I've changed it to workcity or something like that.

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 Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard