FindItemsAdvanced : Problems with pagination (wrong number of results/duplicated results)
I encountered a strange problem using pagination with FindItemsAdvanced: On higher pages, I get a wrong number of results and duplicated items. Example: - Searching for "Koga" on german eBay site - The Response tells me that totalEntries=744 - Then I do 8 requests (one after another) with entriesPerPage=100 and pageNumber=1..8 - The responses for pageNumber=1 up to 5 delivers 100 results per call, all ok! - But the results for pageNumber=6 to 8 has just 36, 35 and 36 results! - Also the results for pageNumber 6 to 8 has many duplicate items already retrieved for pageNumber=1 to 6! My app is mainly unchanged regarding search since years, but this problem was just discovered a few weeks ago. So I think I'm not doing anything wrong. Is this a problem of the Finding API?
I haven't looked at your sample upload, but I know that some of what you are observing is normal for the Finding API. Finding API calls seem to re-calculate search results freshly between pagination calls, so items naturally re-sort a small amount between calls and thus you may see duplicates appear since new items are suddenly included and some old ones drop of, and thus everything shuffles a little bit. On the other hand, some of what you are observing does seem a little unusual, such as the last 3 pages of results showing less than 100 items.
@helios825 I understand that there can be little difference between the calls, but in my example the difference is more than a quarter of the results. Also this happens every time I repeat this or another request with totalEntries > 500. Looks like the api server has a problem and is mixing the results of the pages for higher page numbers.
**I use a third party component and I think it makes a SOAP request, so the parameters are not in the url, they will be sended as XML. XML Request is included in my example file below.** Ah OK. I jumped in late and didn't see the dropbox file. The missing items are because you are telling the API to hide duplicates. Apparently the total count doesn't take that into account. If you remove the itemFilter, you'll get all the items.
@clickimusprime Thank you for the information about HideDuplicates. Now I've done some tests with and without HideDuplicates parameter: HideDuplicates = true: - Response.TotalNumberOfEntries = 732 - Returned Items = 572 - Number of Duplicates in this 572 items: 51 - Ignoring the 51 duplicates I have 521 unique items HideDuplicates = false: - Response.TotalNumberOfEntries = 738 - Returned Items = 738 - Number of Duplicates in this 738 items: 214 - Ignoring the 214 duplicates I have 524 unique items When I do a search at the eBay site I have 732 items. Maybe there are more than 200 duplicate items on the eBay site but I cannot check this. Still wondering that HideDuplicates tell me that there are 732 items, then I get just 572 results and within this results I still found 51 duplicates. Still sounds that there is something wrong.