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 / PowerFx Patch command ...
Power Apps
Answered

PowerFx Patch command not working - PowerApps bug

(0) ShareShare
ReportReport
Posted on by 18

Hello,

 

I've may found a bug!

 

I have a simple PowerFx command in my model-driven app (form button) that changes the status of the record:

Patch('Fases do Projeto'; Self.Selected.Item; { Status: 'Status (Fases do Projeto)'.'Inativo(a)'; 'Razão do Status': 'Razão do Status (Fases do Projeto)'.Encerrada });

 
It was working flawlessly, and it suddenly stopped working with an error message:
Could not find a property named 'm2m_projetoid' on type 'Microsoft.Dynamics.CRM.m2m_projetofase'.
 
The entity where the error occur is 'Fases do Projeto' (m2m_projetofase). The "parent" entity is 'Projeto' (m2m_projeto). The lookup pointing to the parent entity is 'm2m_projeto', but something in PowerApps is looking for the name 'm2m_projetoid'.
 
There was no change to the code or to the entity. The error message doesn't give me additional insight (even in the txt file), and there is no javascript, plugin or flow attached to this entity. 
 
The error pops up very quickly, seems like to be a client-side validation.
 
Any ideas?
 
Thanks,
Bruno
Categories:
  • Verified answer
    brunorodrigues Profile Picture
    18 on at

    I've tried publishing all customizations, both from the new and old interfaces, to no avail.

  • Verified answer
    brunorodrigues Profile Picture
    18 on at

    Ok, I went to the Command Library, updated the entity, and it went back to normal!

    Not sure why this happened.

     

    Thanks

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard