I have implemented pagination call as mentioned in the documentation. Script is working fine except with a major glitch that it is returning few duplicate records and hence failing to return few records. Here is the pseudocode
- LIMIT=100
- Totalissues = search_issues(query,MaxResults=0)
- For start in range(0, TotalIssues, LIMIT)
- Issues= search_issues(query, startAt=start,MaxResults=LIMIT)
This is returning duplicate issues across different pages. E.g.
If TotalIssues = 1200, an issue 230(just for example) is returned in page 3 and page 4 calls.surprisingly after iterating through all pages total issues returned are 1200. But due to duplicate issues, some actual results are NOT returned by API.
Moreover, number of duplicate records vary with change in LIMIT value. Lower the value larger are the duplicate records.
Has anyone observed such issue?