Last "page" missing
luispy87 opened this issue · 4 comments
Hi my friend,
I've tried your code, it's working fine but for some reason, the las't table is not recognized and is not loading all the date set. Please let me know if is possible to solve the issue.
Example
The monday boards have 1752 items,
GetFirst is configure with items page (limit: 500)
GetNext also next_items_page(limit:500
the end result is a 1500 rows data set,
if I configure the next_items_pag(limit100, the results is a table with 1700 items, 52 rows missing
if I configure the next_items_pag(limit10, the results is a table with 1750 items, 2 rows missing
so the last "page" for some reason is missing
Please let me know if there is solution
Hi @luispy87 , I have created a copy of this repo and updated it to solve the issue you mention. You can find it here: https://github.com/tomiapo/monday-to-powerbi
@ariten the issue is related to the List.Generate function. Since the cursor equals null in the last page, it does not take into account the records from that page. I have updated it to make an additional fetch using the null cursor (returning an error on purpose) and using that error as a stop condition (I had to update the GetNext function as well for it to handle the null cursor properly).