cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DuncanIVH
Helper I
Helper I

Do Until loop to process more than 5000 items

I'm using the 'do until' method to load and process more than 5000 files from a Sharepoint document library. However the 'Get items' step is loading more than 5000 items, which is causing an error in the subsequent 'Apply to Each' step.

On the Get Items I have specified a top count of 5000 and enabled paging with a threshold of 5000. However it's loading 7768 which is the full amount of files in the library.

 

getitems-settings.png

 

getitems.png

 

count.png

 

 

applytoeach.png

 

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @DuncanIVH ,

 

I can't reproduce your problem.

I have a list with 6000 items.

vxiaochenmsft_0-1645594230470.png

vxiaochenmsft_1-1645594247487.png

vxiaochenmsft_2-1645594269631.png

 

 

What did I miss?

 

Best Regards,

Wearsky

Hi,

would you be able to try the same but against a Document Library?

I have tried both Get Items and Get Files against a document library but always get the full amount of files.

 

I have just tried against a list and it does restrict to 5000 so it seems that the issue is the pagination/top count against a document library.

v-xiaochen-msft
Community Support
Community Support

Hi @DuncanIVH ,

 

I tested a library but I still can't reproduce it .

vxiaochenmsft_0-1645665726164.png

vxiaochenmsft_1-1645665762124.png

vxiaochenmsft_2-1645665778421.png

vxiaochenmsft_3-1645665786315.png

 

Best Regards,

Wearsky

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,123)