Hi,
When using the REST API 3.2 with pagination ($count=200,$skip), I get duplicates items in the results and missing ones. Running the same request gives the same results (same duplicates) but if I change the $count (for instance, $count=100), the duplicate items and the missing ones change.
The total item count looks good but it seems than some items are replaced by others.
Regards
-
Hello Frederic,
Thank you for reaching out to us.
You will need to specify a value for the $skip command, even if it is to skip zero.
So when using both $count and $skip, the $count command determines how many rows your query will fetch, and the $skip command determines how many will be skipped before they are fetched.
So if you are using $count=200, you should use $skip=0 in the first query. Then your second query should have ($count=200, $skip=200), and your third query should have ($count=200,$skip=400).
Please let me know if this helps.
Best regards,
Vanja
Please sign in to leave a comment.
Comments
3 comments