cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thelearner11
Frequent Visitor

Get Items for SharePoint list is returning no data

I just had a question about an issue I am facing:

I am attempting to return some items from a SharePoint list for a flow on Power Automate. Currently, I'm attempting to retrieve the data for a specific date, and the data amount is about 4000 items for that date. The full list has maybe about 30-40 thousand items in the list. I am using an ODATA filter query in the Get items connection that filters by date, so for this specific day, there are about 4000 items to retrieve.

However, the get items returns no data in its output. I have checked the SharePoint list to confirm data exists for this date, and it does. So I was wondering what the issue may be here. Thanks.

The ODATA filter query works with other dates I input, just some dates it doesn't work with. Another observation is that the ODATA filter query seems to work when the date has around 100 items, but not when it has about 4000 items. Does that play a role? And if it does, what is a possible workaround for this? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

  

This issue occurs because you have too many items(By default Get items only returns 100 items).

You can enable pagination and set it to 100000 (maximum items returned).

vliweimsft_1-1676864336361.png

 

vliweimsft_0-1676864307048.png

I think this link will help you:

How to get more than 5000 items from SharePoint Online in Flow - Alex Tofan's blog

 

 

Best Regards,

Levi

 

View solution in original post

14 REPLIES 14
v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

  

This issue occurs because you have too many items(By default Get items only returns 100 items).

You can enable pagination and set it to 100000 (maximum items returned).

vliweimsft_1-1676864336361.png

 

vliweimsft_0-1676864307048.png

I think this link will help you:

How to get more than 5000 items from SharePoint Online in Flow - Alex Tofan's blog

 

 

Best Regards,

Levi

 

Hello Levi thanks for the response. In this case, I am only retrieving about 3500-4000 records. Is there a limit on how many records one can retrieve without pagination? Or is the limit based on how many records one has in their sharepoint list as a whole?

This worked marvelously! Thank you so much. Now I am able to set it to about 4500 items in the filter, and it retrieves the items for the date. You're a genius 🙂 Are there any limitations to Pagination that I should know about?

Also just one more question: What happens when the SharePoint list exceeds 100k rows, does the pagination first use the ODATA filter query on the SharePoint list, and then return a maximum of 100k rows on the filtered list? Or does it get the first 100k rows, and then filter those records and return the filtered list?

v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

  

Pagination is limited to an upper limit of 100k.

When it exceeds 100k, flow will only get the first 100k and skip the subsequent items.

 

Best Regards,

Levi

Hello Levi, thanks for the explanation. I assume pagination retrieves the first 100k in the entire sharepoint list regardless of what the filter query is, right? Also, I am attempting to use a column name in the odata filter query for one of the sharepoint lists with whitespace using _x0020_ however it is still mentioning that the column doesn't exist. Is this feature supported in Get Items for sharepoint lists?

v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

 

In the filter query, flow will only filter the first 100k items returned.

If you have spaces in your column names, please ignore the spaces in the filter query.

 

Best Regards,

Levi

 

Sorry, I may have phrased the question incorrectly. Currently:

It limits me to 5000 items it seems as the pagination threshold for it. But in that case, it has returned the data in the list still and applied the date filter query. Would that indicate that it is first filtering the SharePoint list, and then the pagination returns the items only in that date? Because I have about 30-40 thousand records in the SharePoint list and it returned the exact 3000-4000 items I need specifically for that date, unless I got lucky and the first 5000 rows that the pagination retrieved from the SharePoint list happened to be the items for that date by chance.

 

Edit: I'm asking this because if the list were to increase to over 100,000 items, then I would like to know if it would still retrieve all the correct 3000-4000 items for a specific date in the filter query and face no issues doing so no matter how large the list is; otherwise I guess Power Automate cannot handle lists that big and it would have to be done manually.

v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

 

I think I get what you want.

 

I want to explain to you that the Get Items action will always capture all the records that fits the filter query but return only 100 of them at max.

 

For example, you have 200 records that Title equals 1, but the final result will always return 100 of them if you set the threshold as 100 no matter you enable the Pagination or not.

 

Best Regards,

Levi

I see. So if I understand correctly:

Get Items will apply the filter query to the entire sharepoint list no matter how large the size, but will only return the number of those filtered items stated in the Pagination threshold, which in my case I have set the threshold to 5000, so it will return up to 5000 of those filtered items. --- or is the threshold option and the pagination option in the settings separate from each other?

 

I just want to say that I apologize if these are too many questions, I am just trying to wrap my head around this. I very much appreciate you taking the time and effort to answer my questions and help me understand :).

 

v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

 

Yes, your understanding is absolutely correct.

 

Best Regards,

Levi

Thanks so much Levi, I appreciate it. I was just asking all of these questions as I was worried that if the size of my SharePoint list reached above 100k items that the flow would fail, but I am relieved to hear that the filter query will run on all the SharePoint items no matter the size, but it only matters how many items the filter query will return, and in my case it should never really return more than 3000-4000 or so after being filtered for a date, which is well within the threshold for amount of items to return.

 

I have faced another issue however, and that is that some of the columns are returning null values even though I have specifically checked that they contain a value. Could this be due to naming conventions used for columns, or the actual value itself? The column is a single line of text column.

v-liwei-msft
Community Support
Community Support

Hi @Thelearner11 

  

We really understand that you have more than one issue need to be solved today and we are surely happy to help you with those, but to better focus on the new problem and ensure the service quality, we would advise you to create another ticket on the issue.

It can also help us to get the case better recorded and let Microsoft know what you have been through clearly. Thank you so much for your understanding. 

 

Best Regards,

Levi

 

Sounds good, will do 🙂 Thanks for all your help.

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (5,652)