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 / User Defined Functions...
Power Apps
Unanswered

User Defined Functions : Play issue

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I have written a function in App.Formulas that works correctly in the edit mode of the app.
However, I noticed that since I enabled "User-Defined Functions" in the settings, the application publishing does not update correctly in play mode.
When I launch the application in play mode, it indicates that there is an update:

"A new version of this app is coming. We'll let you know when it's available."

But it never actually updates.

 

The issue is resolved when I disable this feature.

Do you know any solutions to resolve these issues?

 

Thank you!

Categories:
I have the same question (0)
  • PeterCBell_au Profile Picture
    107 on at

    I have the same issue.

  • PeterCBell_au Profile Picture
    107 on at

    Correction; didnt disable feature but didnt define any UDF --> corrected problem.

  • AntoineB1 Profile Picture
    2 on at

    Hello, thank you for your response.

    My issue is specifically that I am trying to use this functionality, but I cannot publish my application in play mode after enabling it.
    Therefore, there is no point in activating this feature unless it can be used in play mode.

  • ShantanuP Profile Picture
    on at

    Can you please share session-id for this issue?

  • PeterCBell_au Profile Picture
    107 on at

    try mine since same issue. Peter.

    Session ID: 204d1be3-bb03-43a3-a975-ef4fb3b7d5c6
    PowerApps 3.24014.14
    Object ID: 9eca0026-55e4-470f-a497-27744dde6ac6
    Tenant ID: a687a7bf-02db-43df-bcbb-e7a8bda611a2
    Embedded Correlation ID: 2da96d60-c24e-11ee-801f-c925fdb2a61d
    App ID: 7ef7bcc6-bb64-4dde-ac28-236bfb6315d9
    Telemetry location: global

  • ShantanuP Profile Picture
    on at

    Hi @PeterCBell_au , Can you please share your player session id where App fails to load? Above seems to be authoring session id. Thanks!

  • PeterCBell_au Profile Picture
    107 on at

    I enabled a single UDF without referencing it and the problem persists

    Session id 94463370-343f-4dfc-9cc7-2d3f9bb668f0

    authoring version 3.24015.12

     

    I will leave it as the published version for the moment.

  • PeterCBell_au Profile Picture
    107 on at
  • ShantanuP Profile Picture
    on at

    Hi @PeterCBell_au ,

    Can you please share how you have declared UDF? I will try to repro the issue on my end that way.

     

  • PeterCBell_au Profile Picture
    107 on at
    udfMeetingBaseColour(UnitName: Text,isImportant:Boolean) :Color=If(isImportant,Color.Yellow, If(  IsBlank(First(Filter(UnitColours,ColUnit=UnitName))),Color.NavajoWhite,  First(Filter(UnitColours,ColUnit=UnitName)).fCol ))
     
    The UDF is using a collection 'UnitColours' to perform the calculation. Is this the problem?
     
    The collection has some logic to create the collection from a text string stored in a sharepoint table. I doubt that matters, just create a collection with the same record structure to test it at your end.
    ClearCollect(UnitColours,{ColUnit:"",fCol:Color.Black});Clear(UnitColours);
    //Extract the key:colour values
    ForAll( ForAll(Split(gblMeetingColours,VertBar), {Result: ThisRecord.Value}),
    If(!IsBlank(TrimEnds(Result)),
        Collect(UnitColours,
        {ColUnit:TrimEnds(First(ForAll(Split(Result,","), {Result: ThisRecord.Value})).Result) , fCol:ColorValue(TrimEnds(Last(ForAll(Split(Result,","), {Result: ThisRecord.Value})).Result))}
        )
        )
    );

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard