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 / GUID error in play modus
Power Apps
Unanswered

GUID error in play modus

(1) ShareShare
ReportReport
Posted on by 25
Hi All, 
 
I have a strange problem, when I run my application I get the error: 
 
However my application / code is running fine and doing everything what I expect. I also only receive this error when I Play the application (not play modus via the editor).
 
When I go into my logs (In dev) I only receive the following logs
 
As you can see I do not receive a lot of information from this... 
 
However when I do the same in production:
 
 
For the simplicity for solving this problem, I have focused on OC_FP_F_B_F_Type. The code used in this control:
 
SortByColumns(
    RenameColumns(
        Filter(
            'Contract types',
            Status = 'Status (Contract types)'.Active And (!OC_FP_F_B_F_Category.HasOutput || Category.'Contract category' = GUID(OC_FP_F_B_F_Category.Output.Key))
        ),
        'Contract type',Key,
        Name,Value
    ),
    "Value",SortOrder.Ascending
)
 
The problem is occuring on the GUID(OC_FP_F_B_F_Category.Output.key) since thats the only part within this control that has the GUID function.
 
OC_FP_F_B_F_Category is a custom component that I have created, the HasOutPut checks if there is output this is a boolean, the Output.Key retrieves the selected item his GUID (in string format, this is why I have to put GUID around it).
 
 
I hope someone could help me?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,351 Super User 2025 Season 2 on at
     
    The way you have it right now, its going to execute the code whether your HasOutput or not because you have it active
     
    You would need to something like
     
    And
     
    (If (!OC_FP_F_B_F_Category.HasOutput, Category.'Contract category' = GUID(OC_FP_F_B_F_Category.Output.Key), true)
     
    So that it will either check your GUID value, or it will return true, which just means "whatever pick them all I dont matter" essentially)
     
    So you are getting lucky in your dev enviornment not to see this, its purely lucky.
     
    You may be able to trim it to
    (If (!OC_FP_F_B_F_Category.HasOutput, Category.'Contract category' = GUID(OC_FP_F_B_F_Category.Output.Key))
    However, i tend to add the true part in because I want that section of code to just say "I worked" and not impact the filter
     
  • RobinFierens1 Profile Picture
    25 on at
    Hi @Michael E. gernay, 
     
    I have tried your solution but it did not work. 
     
    Nevertheless, thanks for the suggestion!
  • Michael E. Gernaey Profile Picture
    53,351 Super User 2025 Season 2 on at
     
    If it did not work, then demonstrate why and if it didn't work then you are not telling something because it is how you would do it based on what you said.
     
    Share an example of the data. Share an example of the error, also share what you typed, how you tested it
     
    Please remember we are free people trying to help you and you giving nothing really back
     

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