web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bug - when editing For...
Power Apps
Answered

Bug - when editing Formulas, App Checker reports false error

(2) ShareShare
ReportReport
Posted on by 39
This feels like a bug to me, and I don't know how to report it.  This seemed like the best place to post it. 
 
I have an app that has grown to a decent size.  I'm making use of User Defined Functions in it, which is a Preview feature.  The app has got to a point that any time I make any change to the Formulas property, the App Checker reports an error, but the error is a false positive. I've created a minimal app to reproduce the bug.  I've attached the .msapp file to this question. 
 
App Formulas looks like:
 
fnSetTabList():Void =
{
    ClearCollect(
        varTabList,
        {Value: "Foo"}
    )
};
fnAllFormsAreClean():Boolean =
{
    true
};
 
The fnSetTabList function is called in OnStart.  My screen is very simple, here's the yml:
 
Screens:
  MyProfile:
    Properties:
      Fill: =RGBA(245,245,245,1)
      LoadingSpinnerColor: =RGBA(56, 96, 178, 1)
    Children:
      - TabList1:
          Control: TabList@2.2.30
          Properties:
            BasePaletteColor: =RGBA(5, 102, 178, 1)
            Items: =varTabList
            OnSelect: |-
              =fnAllFormsAreClean();
              Set(
                  varCurrentTab,
                  TabList1.Selected.Value
              );
            Width: =Parent.Width/1.5
            X: =20
            Y: =20
 
If I edit the Formulas property - even a simple edit like just adding a space - the App Checker reports:
 
'fnAllFormsAreClean' is an unknown or unsupported function.
 
That's a false error because fnAllFormsAreClean definitely exists.  I can clear the error by either CTRL-A, CTRL-X & CTRL-V in the formulas field, or by doing any edit ( like adding a space ) to the OnSelect property of the TabList1.  
 
Additional information:
  • If fnAllFormsAreClean comes before fnSetTabList in the Formulas property, the problem does not occur
  • If fnSetTabList does a Set(varTabList,[{Value: "Foo"}]) instead of ClearCollect, the problem does not occur
  • If I remove the Set(varCurrentTab,...) statement in the OnSelect of TabList1, the problem does not occur
This example is greatly reduced to try and figure out the crux of the issue. 
 
I would appreciate if someone would take the time to load the attached msapp file into their own environment and see if the issue happens for them.  If it's reproduceable elsewhere, I'd like to report this bug to Microsoft.  Is there any way to do that?
 
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
     
    if you feel like it is a bug you can report it in the support section of power apps.
     
    If my answer was helpful and it solved your issue please mark it as verified answer. If it helped but did not solve please consider giving me a like :)
  • TM-28062113-0 Profile Picture
    39 on at
    Thank you @mmbr1606, but the support in Power Apps is not helpful.  It's just Copilot trying to give solutions which are not helpful.  It may be because I'm not a delegated admin in my environment, but the "Support" and "Contact" tabs are disabled.  So, I cannot report the bug there.   
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    I tried this one.
    It did like you said, I tried to remove a space in the function 'fnAllFormsAreClean'.
    And I switched off the preview feature, save and switched it on. seems everything is back to normal.
     
  • TM-28062113-0 Profile Picture
    39 on at
    @stampcoin - thank you for your reply.  i tried as you described
    • turned off User-Defined Functions, saved the app & reloaded
    • turned on User-Defined Functions, saved the app & reloaded
    the issue still is true for me - any changes to the Formulas field has the App Checker reporting that fnAllFormsAreClean is unknown. 
     
    for you, does the App Checker no longer report the error when you change the Formulas field?
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    I double checked this morning.
    I think when you write function ( a calculation user-defined function, not a behavior one), it's better to avoid using {} ( as I understand ). 
    it's not like fnSetTabList() (this is Behavior user defined functions ).
    for example:
    fnAllFormsAreClean():Boolean =  
        CountRows(varTabList) > 0 ;// example
     
    or 
    fnAllFormsAreClean():Boolean =  
       IsBlank( CountRows(varTabList)) ; //example
     
    hope this make sense to you.
  • TM-28062113-0 Profile Picture
    39 on at
    @stampcoin - that makes sense, and i have verified that removing the curly braces {} on the fnAllFormsAreClean function solves the issue.
     
    Using this insight, I was able to go back to my larger app and refactor my functions to make the issue go away.
     
    Thanks for the assist!! 
  • TM-28062113-0 Profile Picture
    39 on at
    I have another example where this is happening in a different app and the behavioral advice that @stampcoin offered doesn't seem to apply. 
     
    In the new case, the app is very minimal.  No components are even added to the screen.
     
    App Formulas is:
     
    fnFirst():Boolean = true;
    fnSecond():Void =
    {
        Set(
            varBlah,
            true
        );
    };
     
    And App OnStart is:
     
    If(
        fnFirst(),
        Set(
            varBlah,
            false
        )
    );
    fnSecond();
     
    In this case, any edit to the Formulas results in the App Checker reporting:
     
    'fnSecond' is an unknown or unsupported function.
     
    This time, the issue stops if I move the definition for fnFirst to the bottom of Formulas.
     
    I've uploaded the .msapp file for this minimal app.  Does anyone have any ideas?
  • w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
    tested it and it worked fine. The error only appears when the UDF preview feature is turned off.
  • Verified answer
    TM-28062113-0 Profile Picture
    39 on at
    Both of my use cases seem to have resolved themselves in version 3.25071 of the editor.  That's still in preview at the moment, but presumably will be released soon.  I'll verify the issues remain resolved once that version is released.
     
    So, yeah, definitely a bug.  A friend of mine with an MVP account was able to submit this thread to the dev team for assessment.
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
     
    i wont asume anything here
     
    features still in preview or experimental features aswell can change daily. only because it works today does not mean that they will also work tomorrow.
     
    for sure the best practice is not to use those features in productive apps.
     
     
     

    If my answer was helpful and solved your issue, please mark it as the verified answer.

    If it helped but didn’t fully solve it, I’d appreciate a like. 😊

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard