Deployed project not syncing to legacy submission backend (bulk-submission-form rejects all uploads)

I have a deployed project that isn’t accepting bulk-uploaded historical submissions.

  • Username: icchwant
  • Server: kf.kobotoolbox.org
  • Project: MJAS Beneficiary MIS
  • Asset UID: ayLBa45yhHQUDRJduQazjx
  • Deployed and active (confirmed via /api/v2/assets/ayLBa45yhHQUDRJduQazjx/)

When I upload a ZIP of pre-built XML submissions to https://kc.kobotoolbox.org/icchwant/bulk-submission-form, I get:
“Submission complete. Out of 500 survey instances, 0 were imported, (500 were rejected as duplicates, missing forms, etc.)”

The project doesn’t appear at all in https://kc.kobotoolbox.org/icchwant/formList, even after redeploying. But the asset’s own API record shows deployment__data_download_links pointing to kc.kobotoolbox.org/icchwant/exports/ayLBa45yhHQUDRJduQazjx/, so it seems only partially registered on the legacy kc backend.

I also tried POSTing directly to https://kf.kobotoolbox.org/api/v2/assets/ayLBa45yhHQUDRJduQazjx/submissions/ (multipart, xml_submission_file) — that returns a 404.

Has anyone seen this “partially registered” state before, or know the correct current endpoint for bulk-importing pre-built XML submissions? Already filed a support ticket too, just hoping the community might be faster. Thanks!

anyone please!?

The above OpenRosa endpoint only exposes the forms which you have flagged as permitting anonymous submissions; if you haven’t enabled this for your form then it wont appear in the list of forms returned by this endpoint. So this may not in fact be be indicative of a ‘partially registered’ form - can you please check whether you’ve enabled anonymous submissions or not.

The .../assets/{asset_uid}/submissions/ endpoint has been renamed in v2; see Migrating from v1 to v2 API — KoboToolbox documentation
So I expect that is why you are now seeing a 404 Not Found.

Nothwithstanding why your bulk submission doesn’t appear to be working… But unless your pre-built XML submissions are precisely constructed - eg correct form ids, all have unique new submissionUuids, yadda, yadda, … - then they may all get flatly rejected. So I might suggest first trying to get a single submission to work - eg create one in Enketo, export it (from Enketo) as a ZIP, then confirm you can bulk-upload it. Once that’s working then make sure your pre-build submissions precisely match the same format.