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 / Command Bar Button Err...
Power Apps
Unanswered

Command Bar Button Error Power FX - Cannot read properties of null (reading identifier)

(1) ShareShare
ReportReport
Posted on by 107

We have some command bar buttons which have been working fine. However, since Friday afternoon we have been getting errors when you select a command bar button which uses Power FX for the On Select property. Any buttons that run JavaScript are ok.

 

The error we get when you select the buttons is:- Cannot read properties of null (reading identifier)

 

Is anyone else seeing this issue in there Command Bar buttons that they have created with Modern Commanding?

Categories:
  • Alex Nosiara Profile Picture
    12 on at

    We have experienced the same problem with one of our customers beginning this week. I assume Microsoft has pushed through an update over the weekend. Command Bar buttons with PowerFX on select are causing the problem. With tedious debugging by commenting out code, you can find the dataverse reference that is causing the problem. When you find it, it makes no sense why this reference is no longer working but others for the same record are fine. It was always a particular "Self.Selected.Item.xxxx" reference causing the problem, but not all of them. We triple checked, and those references should be fine.

     

    The PowerFX fomula helper thinks the reference is fine and prompts you to use it. You dont get any errors when you define the formula.

     

    No code is executed when you get the error, PowerApps just decides in advance that reference wont work. eg. If your first line of the formula is a plain text Confirm statement (no references), it does not get executed.

     

    I think Microsoft has introduced a bug when parsing the formula at runtime.

     

    We had to workaround for now by creating the record with hardcoded values and then used a synchronous workflow on create to fix it up.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard