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 / Model-driven app - cus...
Power Apps
Unanswered

Model-driven app - custom button - strange behaviour

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I've created a simple page in a Model-driven app to provide the customer with an easy way to upload a list of customers (VAT numbers), which is used to give discounts.

Once a year a new Excel list is received that needs to replace the above mentioned list.

 

Because I don't want to point the (non technical) customer to bulk deletion jobs, I've created a custom button with a PowerFx statement which deletes all records:

KoenL_0-1647342710064.png

 

 

If(
    Confirm(
        "This action will clear the discount list." & Char(10& "Customers will not be removed, but their discount flag will be set to false." & Char(10& Char(10& "Are you sure you want to continue?",
        {Title: "Delete Confirmation"}
    ),
    Remove(
        'Discount Customers',
        'Discount Customers',
        All
    );
    Refresh('Discount Customers')
);

 

I have 2 behavioral issues:

  1. I don't get any loading indication/feedback while the statement is being executed
  2. The list (+/- 2000 records) is only partially cleared (e.g. only 300 records are removed)

 

Any ideas on how to fix this?

 

Thanks!

 

Categories:
I have the same question (0)
  • KoenL Profile Picture
    7 on at

    Update:

     

    I've attached a monitor to the app to try understand what's happening.

    Basically the remove...all statement sends a delete statement to the api for every individual record.

    Because of the number of records, this results in "Too Many Requests" errors:

    KoenL_1-1647350564865.png

     

    In my opinion this is a serious bug in the platform 😞

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard