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 / suddenly numerous comp...
Power Apps
Unanswered

suddenly numerous component related (brown) errors like :Cannot use boolean values in this context

(2) ShareShare
ReportReport
Posted on by 711

Example: I have a self made menu component with an CloseMenu action property.

In my app this property uses this code

 

UpdateContext({lToonEventGroepMenu:false})
;UpdateContext({ShowItemMenu:false})
 
Simply two context variables which are set to false.
I get the error "Cannot use boolean values in this context"
Like I stated there are suddenly numerous errors like this (not red but brown) in my app on component event properties.
What happened, what could be wrong?
Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @HansHeintz 

     

    is it possible that you can show us screenshots of your issue(s)

     

    thanks in advance

  • HansHeintz Profile Picture
    711 on at

    I guess my old component event properties were f.e. of type text, perhaps because ther was no 'none' back then (or text was default and there seemed no need to change) and meanwhile this was ignored but now triggers warnings.

  • HansHeintz Profile Picture
    711 on at

    A word of warning about this issue!! If you'd think to just change the event result type of your component event to none, all event code in your app that for instances of this component will be obliterated silently!!

  • HansHeintz Profile Picture
    711 on at

    Only way to get rid of the warnings afaik is

    -make new event properties without deleting the old ones

    -search for all code that uses the old events within the component and change the references to the new events

    -process all warnings in the app by cut (and replace with "") the code for the old event and paste into the code for the new event

    (97 warnings in my case pffff)

  • PowerGon Profile Picture
    3 on at

    Thanks @HansHeintz for reporting, I'm experiencing the same issue (666 new warnings in my app 😈).

     

    PowerGon_0-1715942684133.png

    Sorry for the spanish @mmbr1606 but the issue is just the same previously described:

     

    PowerGon_1-1715942838499.png

    Thanks in advance.

  • firdaus Profile Picture
    2 on at

    Same issue for me as well. Got 465 warnings on the app. All are related to boolean variables used in UpdateContext.

    This was not the case till yesterday.It is coming from today morning.

     

    firdaus_0-1715945711590.png

     

    warning.png
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    in my point of view this looks like a general issue and not a specific one (when multiple people have the same problem)

  • HansHeintz Profile Picture
    711 on at

    Personally I would like Powerapps to be far more strict about variable types to prevent misery later on so I can understand the change. But a somewhat softer landing / more subtle handling might be nice.

  • GlennBullion Profile Picture
    146 on at

    Just to add my two cents. I'm having the same issues. Variable and controls / components that all worked yesterday are returning : "Cannot use boolean values in this context".

     

    As I'm actively working on the app right now, I figured it was something I did by accident. Starting combing through to see if I set the variable in question as a boolean somewhere else, which would break every other instance of it. But nope, it's set as as a string all throughout the app. Good to know I'm not the only one.

     

    Is this one of those times we just have to wait Power Apps for a fix?

  • HansHeintz Profile Picture
    711 on at

    Problem is that if your component has an event property with result type text or boolean, while your value for this property in the app is some code to perform (so no text) you get warned for the inconsistency.

     

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard