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 / 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard