I was reading a SharePoint List using the “Get Items” activity in an Azure Logic App. I explain how you can create such a Logic App in the blog post Reading a SharePoint List with Azure Logic App.
It all worked fine for a while, but recently the list grew larger than 100 items. Suddenly, I started getting complaints that some items didn’t make it into the data warehouse. What’s going on? I ran the Logic App and I could see only 100 items were inserted into the SQL Server table:
(I realize the Logic App is doing a row-by-row insert, which is really slow. But for a small data set loaded only once a day, I don’t really care)
You can check the exact JSON output of the Get Items activity by clicking on “Show raw outputs”. And the output also only had 100 items. Luckily, the solution wasn’t that complicated. The OData feed responsible for exporting the SharePoint List applies pagination. This means only the first 100 items of the list are returned, alongside with an URL on how to retrieve the next 100 items (you can find it in the JSON if you’re really interested in the details). Fortunately, we can just enable pagination in the settings!
Switch the slider for pagination to on, and specify a threshold value (I read somewhere this is maximum 5000, but don’t take my word for it). Don’t forget to hit Done at the bottom AND to save your Logic App!
I was asked to do a review of the book Microsoft Power BI Performance Best…
This is a quick blog post, mainly so I have the code available if I…
Praise whatever deity you believe in, because it's finally here, a tenant switcher for Microsoft…
This book was making its rounds on social media, and the concept seems interesting enough…
I'm hosting a free webinar at MSSQLTips.com at the 19th of December 2024, 6PM UTC.…
The slides and scripts for my session "Tackling the Gaps & Islands Problem with T-SQL…