Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Patch Causes App to Crash

(0) ShareShare
ReportReport
Posted on by 76
I have records in a grid format in a gallery.  When I make changes and submit the App crashes due to memory.  It used to work OK although slow, now it's crashing
 
every time.  There are now about 100 records.  There more columns in the data source, but I only have 5 columns shown in the grid that need to be updated. 
 
It crashes on any device I use -iPhone, laptop, or iPad.  
 
Each field's OnChange is set to Select(Parent)
 
  The code on the OnSelect property of the Gallery is:
Patch(GridData,ThisItem, {LocationConcat:LocationText.Text,
DateClosed:DateClosedValue_1.SelectedDate,Status:DataCardValue16_2.Selected,
Reason:ReasonValue.Text, Time:TimeDD_1.Selected})
 
 

The Patch Code on the Submit button is 
If(
    varGridEdit,
            Patch(
          
            BCP,
            GridData
        ); Remove(BCP,colDelete);
        Notify(
            "BCP Data Updated",
            NotificationType.Success,
            3000
        );
        Clear(colDelete);
        Select(BTNLoadBCPData);
        
    ) ;
   Set(
            varGridEdit,
            !varGridEdit);
 
How can I fix this? 
Categories:

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard