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 / Isssue is with RemoveI...
Power Apps
Answered

Isssue is with RemoveIf() function in PowerApps

(0) ShareShare
ReportReport
Posted on by 357

I use this code to remove old records and add new:

 

RemoveIf(DailyDiaryContractor,ProjectLinkID=Gallery1.Selected.ProjectLinkID);

 

this is not working 1st time when i open app and patch record.
After that its working for n times.
Don't know why it have issue with 1st time only. 
Note: My SharePoint list having more than 5000 records.

 
Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    on at

    Hi @sayyed007amir ,

    Do you mean that if you directly use removeif function it doesn't work, if you firstly patch then removeif it will work?

    Could you check the item ID that you select at the first time and the second time?

    Actually, I do not think your formula has any problem.

    I think this is a delegation problem.

    RemoveIf function is not delegate , which will lead to some problems.

    What's more, there's no delegate function about removing action.

    The table of delegate functions for sharepoint:

    Item Number Text Boolean DateTime Complex [1]
    Filter Yes Yes Yes No [4] Yes
    Sort Yes Yes Yes Yes No
    SortByColumns Yes Yes Yes Yes No
    Lookup Yes Yes Yes No Yes
    = Yes Yes Yes No [4] Yes
    <, <=,<>, >, >= Yes [2] No No No Yes
    StartsWith - Yes - - Yes
    IsBlank - No [3] - - No

     

    To solve this problem, I suggest you split your list to 3 lists.

    Powerapps could at most delegate 2000 records.

    Also, please change the delegation limit to 2000.

    delegation.jpg

     

     

    Best regards,

  • Verified answer
    sayyed007amir Profile Picture
    357 on at

    I solved this issue by showing those list data in Gallery (previously i was collecting data based on primary id).
    Now i added a button in Gallery with code (Buttons's Onselect):

    Select(Parent);Remove(DataSource,ThisItem);

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard