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 Automate / Issue with Delete Reco...
Power Automate
Unanswered

Issue with Delete Records with Remove field value of 1 in Share

(0) ShareShare
ReportReport
Posted on by 20

I have Flow that is supposed to be picking up all list items that have a value of 1 in the field "Remove". I used this formula: 

 

Remove eq 1 

 

For some reason when the flow runs it only captures about 100 records (I know there are over 500 in the list that have this value). The list is over 200k rows. However, I made sure that the Remove field is Indexed.  

 

In addition, the flow has been running for over 2 hours. Should it really take that long to delete a few hundred records? Please see screenshot below of the flow and let me know if I am missing something simple. 

 

GetItems_DeleteItemsByCriteria.jpg

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @aehrenwo,

     

    Could you please share a bit more about the Remove field within your SharePoint list? Is it a Number type column?

    How do you know that the flow only captures about 100 records?

     

    I suppose that the Remove column is a Number type column in your SharePoint list, is it true? If the Remove field is a Number type column in your SharePoint list, I think the flow that you provided is correct.

     

    In addition, I suppose that you know the flow only captures about 100 records based on the number of the "Apply to each" action runs, is it true?

     

    I suppose that your "Get items" action may up to the limitation of the number of returned records in a single call from the SharePoint service. You could consider enable the Pagination option within the Settings of your "Get items" action to handle more records than are returned in a single call from a service.

     

    Please click "Menu" button-> "Settings" option within your "Get items" action, then enable the Pagination option within the Settings panel as below:15.JPG

     

     

    After you eable the Pagination option within the Settings of your "Get items" action, then try your flow again to check if the issue is solved.

     

    More details about the Pagination option within Settings of flow actions, please check the following article:

    https://flow.microsoft.com/en-us/blog/four-connector-action-settings/

     

     

    Best regards,

    Kris

     

  • aehrenwo Profile Picture
    20 on at

    Kris-

     

    thanks adding pagination definitely allowed the flow to pick up all 546 records that had a 1. 

     

    However, it seems like the delete function immediately fails as there are arrows that say previous failed and next failed-- is this normal? Sorry very new to the tool. 

     

     running.jpg

  • aehrenwo Profile Picture
    20 on at

    I see the following error in one of the previous runs. I know this field called Remove is indexed so not sure why I am getting this threshold error? The list does have way more than 5000 rows - but I am only trying to delete 500+? 

     

    Any suggestions? 

     

    {
    "error": {
    "code": 502,
    "source": "msmanaged-na.azure-apim.net",
    "clientRequestId": "9b89c63c-d826-4fe7-898d-8a0bd7c08dbf",
    "message": "BadGateway",
    "innerError": {
    "message": "The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.\r\nclientRequestId: 9b89c63c-d826-4fe7-898d-8a0bd7c08dbf\r\nserviceRequestId: e2435f9e-60cb-5000-8c62-fd9fd6b26134;e2435f9e-10d9-5000-8c62-f135789a5c6d",
    "status": 502,
    "source": "https://jnj.sharepoint.com/teams/lms_help/_api/SP.APIHubConnector.DeleteListItem",
    "errors": [
    "-2147024860",
    "Microsoft.SharePoint.SPQueryThrottledException"
    ]
    }
    }
    }

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard