You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoadListDataAsStreamAsync() fails when a list has more than 5000 items and if the item count is multiple of ViewXml <RowLimit>
Steps to reproduce
Try to get all the list items using spList.LoadListDataAsStreamAsync() from a list that has more than 5000 items. Make sure the list item count in the list is multiple of <RowLimit>.
Eg: If a list has 6000 list items use <RowLimit Paged="TRUE">1000</RowLimit>
I'm getting the list items as below. Make sure the viewXml has <RowLimit Paged="TRUE">1000</RowLimit>
@NewGHUser4321 : nice catch, in this case the 6000th row is returned to indicate paging is over but as that row was already there some code populating a dictionary broke with a duplicate key exception. I've fixed this, the next nightly build should work fine.
Category
Describe the bug
LoadListDataAsStreamAsync()
fails when a list has more than 5000 items and if the item count is multiple of ViewXml<RowLimit>
Steps to reproduce
Try to get all the list items using
spList.LoadListDataAsStreamAsync()
from a list that has more than 5000 items. Make sure the list item count in the list is multiple of<RowLimit>
.Eg: If a list has 6000 list items use
<RowLimit Paged="TRUE">1000</RowLimit>
I'm getting the list items as below. Make sure the viewXml has
<RowLimit Paged="TRUE">1000</RowLimit>
I get this Error:
An item with the same key has already been added. Key: restId
And the stack trace is
Expected behavior
Should not throw error. It should get all the list items as expected.
Environment details (development & target environment)
Thank you.
The text was updated successfully, but these errors were encountered: