Hi @shaban1 ,
Thats right
versions:
e4221ebeb41cd6ccb0cedad0461e5b603c207339 (v2024.3.2-1-ge4221eb)
8b1de6512faa7a60c05764312caec01f5c138c42 client (v2024.3.2)
7574030f7ea8750f3837950001a5efcdeba45b92 server (v2024.3.1)
I've seen this error before and it was a not a Central issue, but a form issue - are your other forms working in Enketo? Does this form load in Collect?
The lack of an additional error message doesn't help you find the issue, but perhaps you can start breaking your form into pieces and uploading chunks of it to try to locate the cause then a solution to it can be found.
Hi @ahblake ,
If it's something that seems strange to me, that is, that error appears, but there's nothing in any log from any other service.
I created a new one with the same form and it works fine. I think something strange happened in the form at some point.
But your tip is a great idea.
Thanks for your advice, but it doesn't work. In fact, I've noticed that they remain in draft status even when I publish them via API or interface; they don't change to another status.
Sample
curl -u "<REDACTED_USER>:<REDACTED_PASS>"
-X POST
"https://<REDACTED_HOST>/v1/projects/33/forms/Rahabilitation/draft/publish"
Respuesta:
{"message":"You tried to publish the form 'Rahabilitation' with version '19102025', but a published form has already existed in this project with those identifiers.","code":409.6,"details":{"xmlFormId":"Rahabilitation","version":"19102025"}}
curl -u "<REDACTED_USER>:<REDACTED_PASS>"
-X POST
"https://<REDACTED_HOST>/v1/projects/33/forms/Rahabilitation/draft/publish?version=$(date +%Y%m%d%H%M%S)"
Respuesta:
{"success":true}
curl -u "<REDACTED_USER>:<REDACTED_PASS>"
-X GET
"https://<REDACTED_HOST>/v1/projects/33/forms/Rahabilitation"
Respuesta:
{"projectId":33,"xmlFormId":"Rahabilitation","state":"open","enketoId":"hkkMtkHQHj8G1xBV9WY9YkfsdtYXyXj","enketoOnceId":"5d9eebe984ccf673ea1e00d92c7e5628c2f75f19964697f2356453d286dd88e4","createdAt":"2025-07-20T09:59:48.172Z","updatedAt":"2025-10-19T14:54:19.725Z","version":"20251019145419","hash":"ef047cd507fc57bb55bd331c0ba66420","sha":"2c0d4769e164271d669bcc1df0e46d5ace227cf2","sha256":"16b676cabf7b4c4a504d2f667c7f03e2c9333352f5015cb7e5d2f931ca0125d2","draftToken":null,"publishedAt":"2025-10-19T14:54:19.722Z","name":"التقرير الشهري/ دائرة التأهيل (Rehabilitation Department)"}
Resultado final:
El formulario Rahabilitation está publicado correctamente.
Versión: 20251019145419
Estado: open (acepta envíos)
draftToken: null (no hay borrador pendiente)
Fecha de publicación: 2025-10-19T14:54:19.722Z
versions:
e4221ebeb41cd6ccb0cedad0461e5b603c207339 (v2024.3.2-1-ge4221eb)
8b1de6512faa7a60c05764312caec01f5c138c42 client (v2024.3.2)
7574030f7ea8750f3837950001a5efcdeba45b92 server (v2024.3.1)
I'm having some trouble and can't seem to find a solution. I'm trying to publish a form, but it always remains in "Draft" status and never moves to "Production." When I try to access the public link I generated (e.g., "/test"), I get an error. I've tried generating multiple links, but the issue persists.
Could someone please let me know if I'm doing something wrong or missing a step? @yanokwa maybe you have a idea ?
versions:
e4221ebeb41cd6ccb0cedad0461e5b603c207339 (v2024.3.2-1-ge4221eb)
8b1de6512faa7a60c05764312caec01f5c138c42 client (v2024.3.2)
7574030f7ea8750f3837950001a5efcdeba45b92 server (v2024.3.1)
Is it possible for you to share a complete video including URLs privately via Direct Message?
I see you are having two separate issues:
Forms remain in draft even when published using API, I would like to see that.
One particular Form is not opening in Enketo, but when you upload the same Form in a separate project, it works correctly, right? For the problematic Form, you are getting two different errors:
Request to https://domain/test/..... failed.
Request to https://domain/v1/projects/12/formList failed.
What is the difference in the step/procedure to produce these two different errors? Can you please see the browser console and network tab for the details of these errors.