cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

The 'Access Mode' column in the data source you're updating expects a 'OptionSetValue' type and you're using a 'Option Set Value Type'

PowerApps appears to be increasingly unstable. I am getting this message:

 

The 'Access Mode' column in the data source you're updating expects a 'OptionSetValue' type and you're using a 'Option Set Value Type'

 

See image titled 'PowerAppsIssue'.

 

However, I save and reload the app and it's fine (see PowerAppsIssue-OK)!

 

What is going on here?

1 ACCEPTED SOLUTION

Accepted Solutions

Hey @chris61 

 

This is a runtime error which is encountered when a request is initiated. That is why after refreshing the error goes away but it appears back as soon as the button is clicked.
 
Are you getting any more errors? Please share more details.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Dual Super User II
Dual Super User II

Hey @chris61 

 

To resolve this issue, you need to pass the values for lookup type column in the correct schema using the Choices(EntityName.ColumnName) expression as:
 
{
'Shift Activity': Lookup(Choices('Shift Activity Assistants'.'Shift Activity'),'Activity UID' = LinkedActivity),
Assistant: Lookup(Choices('Shift Activity Assistants'.Assistant), User=UserID),
Name: Name
}
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi thanks again this does appear to be working and it appears to have helped another issue I was having. However, what I don't understand is why this original issue is an issue on the first load but when reloading it goes away.

Hey @chris61 

 

This is a runtime error which is encountered when a request is initiated. That is why after refreshing the error goes away but it appears back as soon as the button is clicked.
 
Are you getting any more errors? Please share more details.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Hi Yashag, your comment of using Choices() seems to be fixing the errors I'm getting. It's been very helpful thank you!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (73,124)