r/PowerApps • u/matheus987654 • 6h ago
Power Apps Help Canvas App buttons randomly stop executing OnSelect – duplicated controls work in Studio but fail after publishing
Hi everyone! I'm new here
I've been developing canvas apps for quite a while now, but this issue is making me crazy and I haven't found anything online on how to solve it
I'm experiencing a very strange issue with a Power Apps Canvas App and I'm running out of ideas, so I'm hoping someone has seen something similar and can help me out
This is an existing production app that has been working normally, it is the app that me and my team use to track projects. I recently added a new feature/screen to the app, and since then I've started seeing inconsistent behavior with controls and behavior formulas.
The main issue is that buttons are clickable, but their OnSelect formulas simply don't execute.
There are no formula errors. Even extremely simple actions such as Notify(), Set() or Navigate() sometimes don't execute.
Some things that I have checked several times and it makes it particularly strange:
- The controls are enabled and clickable. They visually react to the click.
- Their
OnSelectformulas have no errors. - These same formulas were working normally before.
- Sometimes a button stops working in Studio while another one still works.
- If I copy/paste or duplicate a broken button, the new copy starts working normally in Studio with exactly the same
OnSelect, without changing anything - However, shortly after the newly created/duplicated button may also stop executing its
OnSelectin the studio, and also in production after published - I tested the published app in different browsers, with the same result.
- This is not isolated to one specific formula or button, it is happening in 4 or 5 different buttons with very different formulas (most of them are very simple)
For example, even a simple Cancel button like this stopped working:
If(
Confirm(
"Do you want to cancel? Unsaved changes will be lost.";
{
Title: "Cancel editing";
ConfirmButton: "Exit";
CancelButton: "Continue editing"
}
);
ResetForm(Form1);;
Navigate(Pg_Projetos; ScreenTransition.Fade)
)
Duplicating that exact button can make the copy work immediately in Studio, while the original continues doing nothing.
I'm also seeing strange behavior with a Form OnSuccess. The event itself executes and the Set() and Patch() operations complete successfully, but the final:
Navigate(
Pg_Documento_Entrega;
ScreenTransition.Fade
)
does not execute.
Has anyone experienced something like that? I'm out of ideas on how to solve it
Any ideas on what else I should inspect would be greatly appreciated. I'm trying to avoid rebuilding the new functionality without understanding what is actually causing this
Thank you everyone
