|
||||||
The delegate callback will be called for each page in the stream, each of which has exactly 10K results. Typically your last page has < 10K results, but since 800K is an exact multiple of 10K, your last page also has 10K rows.
This code is overwriting each subsequent page. So move the CsvFile initialization before the API call, and writing to file outside the delegate after the method call. That should fix the code.
Regards,