Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

UDFs Cannot Be Called From Custom Component Events

(2) ShareShare
ReportReport
Posted on by 270
Hello,
 
I know this is probably going to be a bit obscure and few are likely coding custom component behavior events but here we go...
 
I have an app that contains components. I have turned on the UDF feature (which requires the New Analysis Engine) and created a function that is used for validation. This function checks several control values and then returns True or False.
 
When the function is called from most places in my app, it works perfectly. When it is called from a component's custom event (behavior), which is coding outside the component itself, it always indicates a validation issue. Examining the controls values individually shows nothing that would trigger a validation failure. If I put the guts of the function into an OnSelect of a button and then look at each of the validations, they all indicate good data. 
 
If I highlight the function from within the custom event code, the value displayed shows the function resolved to no validation issue. BUT, when the event evaluates the returned value, while the app is running, the returned value always indicates a validation issue. Very strange.
 
Anyone have any thoughts on this. I have no means to report this to Microsoft, but this appears to be a UDF bug since I have been using custom component events for years without issue.
  • Michael E. Gernaey Profile Picture
    42,782 Super User 2025 Season 1 on at
    UDFs Cannot Be Called From Custom Component Events
     
    I would really need to see all of this, as its explained, but I want to see the step by step with the expressions etc as I have an idea whats wrong but truly, just share and should be no issue.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics