cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

Role property of Labels suddenly changed to "Role.Default" with errors

This doesn't seem to have affected the app but all the labels that reference one SharePoint list (Employees) have had the "Role" property (which I never used or even knew about) updated to Role.Default. This made the app light up the app like a Christmas tree with red error Xs when I opened it which of course were not there the last time I edited the app. No changes were made to the SharePoint list and the app is in use and working (apparently).

 

If I take a new label and insert it on the screen, the Role property says "Default" but when I click in it, the "Role." prefix becomes visible (similar to the way "ScreenTransition" is hidden until you click in the property box) so all is fine. If I take this label though and paste it in a gallery displaying employees, it behaves as the others and the Role.Default displays the squiggly line with an error X.

 

Manually removing the "Role." prefix seems to correct this but why would this one gallery behave differently than all the others? Just thought that this might either be a clue to a problem with an update in PowerApps so wondering if anyone else has encountered this.

 

Role Property.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Role property of Labels suddenly changed to "Role.Default" with errors

@ChrisChong Yeah Find and replace would have been amazing. I'm still working on geting all of them since powerapps is running extremely slow for me. 

 

The docs I was refering to are just the main ones for powerapps 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-text-box 

The annoying thing is that it doesn't give a link towards additional information for role. This is it:

 

"Role - The semantic role of the label text, such as Heading 1. Doesn't change the style of the label but makes the output semantically correct for interpretation by screen readers."

View solution in original post

6 REPLIES 6
Highlighted
Community Champion
Community Champion

Re: Role property of Labels suddenly changed to "Role.Default" with errors

Sorry to hear you're experiencing this issue @PhilD. I will have the support team review. 

 

@TopShelf-MSFT

Highlighted
Advocate II
Advocate II

Re: Role property of Labels suddenly changed to "Role.Default" with errors

Any suggestion on how to fix this problem?

Every card and Text input throws this error. Help please.Every card and Text input throws this error. Help please.

 

Highlighted
Frequent Visitor

Re: Role property of Labels suddenly changed to "Role.Default" with errors

Anyone get a response on this yet? I have the same issue. App still works but every field has a new red X  due to the .default in the "Role" property.

Highlighted
Frequent Visitor

Re: Role property of Labels suddenly changed to "Role.Default" with errors

Nevermind, I found the docs of what the field is and though I still don't understand why it just randomly errored out like this for me on an app I haven't customized in over 2 months, the fix is to go to the "Text" variable and copy the name of the reference field (i.e. ThisItem.'Full Name') and just copy the section in the ' so in the example above I copied 'Full Name' with quotes and pasted it in the role field. 

 

Or even simpler just delete everything in the Role field as it's not a mandatory field.

 

From the docs this field is just for screen readers so it seams like this should be an accessability notice and not an error but whatever update that corrupted the names to a .default caused it to become a full error. 

 

 

Highlighted
Advocate II
Advocate II

Re: Role property of Labels suddenly changed to "Role.Default" with errors

Thanks. Can you reference the docs please?

Aso, it seems to me that this is an argument for a "Find-and-Replace" function. It really was a dog of a time to rectify since I had so many fields exhibiting the error.

Thanks again.

Chris

Highlighted
Frequent Visitor

Re: Role property of Labels suddenly changed to "Role.Default" with errors

@ChrisChong Yeah Find and replace would have been amazing. I'm still working on geting all of them since powerapps is running extremely slow for me. 

 

The docs I was refering to are just the main ones for powerapps 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-text-box 

The annoying thing is that it doesn't give a link towards additional information for role. This is it:

 

"Role - The semantic role of the label text, such as Heading 1. Doesn't change the style of the label but makes the output semantically correct for interpretation by screen readers."

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,268)