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 / Model-Driven PowrApp N...
Power Apps
Unanswered

Model-Driven PowrApp NOt recognizing column name with spaces

(0) ShareShare
ReportReport
Posted on by 115
I am having trouble with a formula on an OnSelect property of a button. The formula is below:

If(IsBlank(DataCardValue78.Value),
Set(VarVisible2, true),
Switch(!IsBlank(LookUp('PDA Volunteer Data', Title=DataCardValue1.Value)),
And('Role Description'.Value & "Responder", 'Role Description'.Value & "Supervisor"),
Navigate('Stock&RNAFScreen3',ScreenTransition.Fade,{Title: DataCardValue8.Value}); SubmitForm(Form5); ResetForm(Form5),
And('Role Description'.Value & "Responder", 'Role Description'.Value & "Lead"),
Navigate('Stock&RNAFScreen3',ScreenTransition.Fade,{Title: DataCardValue8.Value}); SubmitForm(Form5); ResetForm(Form5),
And('Role Description'.Value & "Intervenant(e)", 'Role Description'.Value & "Superviseur(e)"),
Navigate('Stock&RNAFScreen3',ScreenTransition.Fade,{Title: DataCardValue8.Value}); SubmitForm(Form5); ResetForm(Form5),
And('Role Description'.Value & "Intervenant(e)", 'Role Description'.Value & "Responsable"),
Navigate('Stock&RNAFScreen3',ScreenTransition.Fade,{Title: DataCardValue8.Value});SubmitForm(Form5);ResetForm(Form5)),
Set(varGroup3ErrMessageVisible,true)
)

The format of 'Role Description' is not recognized in the app environment. Is there a different format for model-driven apps than canvas apps for column names with a space in the name?

Ange
Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @Sawh 

     

    Column names with spaces in PowerApps are replaced by an escaped version, such as x0020 for space. This is because spaces are important in the PowerApps language and cannot be used in column names. Therefore, the format of 'Role Description' in your formula should be 'Role_x0020_Description'. 

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Sawh Profile Picture
    115 on at

    Hi Re: undefined 

    Thanks for the suggestion, but I did try that and it still won't accept the format.

     

    Ange

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard