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 / Simple RemoveIf does n...
Power Apps
Unanswered

Simple RemoveIf does not work

(0) ShareShare
ReportReport
Posted on by

I use RemoveIf very often, never had any problems.

 

I have 3 SP lists (each 20k+ records). I want to remove records from them. There are 1-20 rows for each criteria per SP list.

 

ArturasF_0-1643359283513.png

 

When I click a button, something is going on for a few seconds and then it is done. I get no errors, but records are still present in SP list. Criteria types are correct. This is not first time I used this command on these lists. Today it is not working.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Anonymous ,

    Although RemoveIf() is not Delegable (it will not remove more than your Delegation Limit, your filters seem to be, however try the following (first example here)

    With(
     {
     wRecords:
     Filter(
     approve_events,
     TripID = "21122_28660"
     )
     },
     RemoveIf(
     approve_events,
     ID in wRecords.ID
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on at

    @WarrenBelz thank You for possible solution. at first it didn't paste but I changed it a little:

     

    ArturasF_0-1643365101033.png

     

    Anyways it does not work - records are still present in the list.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @Anonymous ,

    Yes - free-typing tends to do that (I have fixed original).

    However there is no reason this should not work (in fact your original code should work).  One of my productions apps deletes records in 50k+ Libraries with the ID as the criteria using the same structure.

    I assume Trip_ID is a Single Line of Text ?

  • Community Power Platform Member Profile Picture
    on at

    @WarrenBelz correct - it is single line of text and is in Title column.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @Anonymous ,

    Have you tried

    With(
     {
     wRecords:
     Filter(
     approve_events,
     Title = "21122_28660"
     )
     },
     RemoveIf(
     approve_events,
     ID in wRecords.ID
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    @WarrenBelz  if that doesn't work, is there a chance it's a potential list permissions issue?.. inadvertent change... or would that usually flag an error?

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @AmDev ,

    Good thought, but it should generate an error. @Anonymous - worth looking at though

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Thank You for support. It didn't work, I created a blank app and tried to run 

     

    RemoveIf(approve_Events,TripID="211222_28660");

     

    It took about 15 seconds but it worked.

     

    Previously I tried to run all commands on my Testing app. I always test or do attitional operations in that app. Perhaps it became corrupted after hundreds of tests and commands didn't work properly.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @Anonymous ,
    As I said at the start of this, your original code should have worked.

  • Ferminaterz Profile Picture
    150 on at

    I am getting the same thing. I had the RemoveIf using the title column and was working find and it stopped. Tried to troubleshoot and created a collection that only pulled that title. I can use every other column to RemoveIf and it clears my collection but not the Title column for some reason. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard