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 / Weird Glitches in ForA...
Power Apps
Unanswered

Weird Glitches in ForAll & Getting Galleries to load Properly for OnChange

(1) ShareShare
ReportReport
Posted on by 39
Hi everyone,

I have this weird problem where when I call If(IsBlank(LookUp) in my forAll (my forall is going through a collection seeing if the record exists already in a Dataverse table) it glitches out badly and doesn't perform as expected.

I also have this issue where I have a gallery that has controls with onChange functionality, that only glitch when a large datasource is loaded. I even have a timer when the screen becomes visible to give it time to load but it doesn't work no matter how much time I give it. Does anyone have a solution for that?
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi,
     
    You didn't show us any code, or explain what "glitches means".
     
    Can you help me understand what you need help with, that you shared?
     
    1. Share your code
    2. Share your Ui so we can see
    3. Share the OnChange
    4. Share your Onvisible
     
    etc etc
     
    Please, share  as we cannot see your screen and nothing you said is going to specifically help us help you :-( I am afraid, without seeing it.
  • AnthonyIsAdulti Profile Picture
    39 on at
    Here is the code for the save button.

    ForAll(requestedToolCollection, 
        If(!IsBlank(LookUp('Dataverse Table', 'Dataverse Table ID' = ThisRecord.'Dataverse Table ID' && 'Item #' = ThisRecord.'Item #' && 'Tool Status' = 'Dataverse Table Status Choices'.New)),
        
            Patch('Dataverse Table', LookUp('Dataverse Table', 'Dataverse Table ID' = ThisRecord.'Dataverse Table ID' && 'Item #' = ThisRecord.'Item #' && 'Tool Status' = 'Dataverse Table Status Choices'.New),
            {
            Requested: ThisRecord.Requested,
            Comments: ThisRecord.Comments 
            }
        )
        ,
            Patch('Dataverse Table', Defaults('Dataverse Table'),
                {
                    'Item #': ThisRecord.'Item #',
                    Name: ThisRecord.Name,
                    Requested: ThisRecord.Requested,
                    'Dataverse Table ID': Dataverse Table_ID,
                    'Tool Status': 'Dataverse Table Status Choices'.New,
                    'Tool / Toolkit': ThisRecord.Name,
                    Comments: ThisRecord.Comments 
                }
            )
        
        )
        
    );


    The collection "requestedToolCollection" works fine and has all the proper values, its just when I patch those values into the Dataverse table it patches incorrectly. It hasn't been consistent so far, or at least have a pattern that I have been able to notice.

    he save button itself doesn't have any onChange code, but its onVisible is when there is a change of any of the controls in the gallery.

    In my gallery, I have an onChange on the text input and combobox controls that patches that value to the "requestedToolCollection."

    That is all. Let me know if you have any questions.
     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard