Called once per page after the count call in the cadre Data Setup flow (DataSetupViewModel). Each page of flat farmer rows is cleaned (empty SHG -> NON_SHG, "?" -> "-" in category, relative surname merged) and inserted into ie_flat_entity, which powers the farmer list and hub. The current page is saved after each page, so a failure throws, marks the download failed and the next attempt resumes from that page.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Not set by the call site. AuthInterceptor (OkHttpClientInterceptor) adds it from AndroidSessionManager. On a 401 or 400 it invalidates the token, gets a fresh one and retries once.
Parameters
Param
In
Required
Example
Notes
datasetName
path
Yes
PlusOneWorkNodeFarmerListGeoWise
Dataset name in the path of commons-report-service /api/v1/datasets/name/{name}/execute.
version
query
Yes
1
Dataset version. Always 1.
format
query
Yes
json
Response format. Always json, so the body is a JSON array of row objects.
Dataset input parameters as KEY=value pairs joined with "--". Same three geography aliases as the count call, plus LIMIT_OFFSET = pageNo x page size (row offset) and LIMIT_ROW_COUNT = page size (ref data value or 250).
Request
No body. geo aliases + LIMIT_OFFSET, LIMIT_ROW_COUNT (default 250)
Stored as-is; lifeStatus decides whether the farmer counts as active.
Errors
Status
When
What the app does
401 / 400
Session token expired or rejected
AuthInterceptor refreshes the token and retries once; if the retry also fails, Throws "Failed to fetch farmer data at page N"; saved progress lets the user retry from that page.
5xx
Dataset query failed on the server
Throws "Failed to fetch farmer data at page N"; saved progress lets the user retry from that page.
network error
No connectivity or timeout
Throws "Failed to fetch farmer data at page N"; saved progress lets the user retry from that page.