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

Announcements

News and Announcements icon
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,968 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard