-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot submit record in offline-capable view due to existing record error #80
Comments
This might be localized to my Chrome browser. It doesn't occur in Firefox. |
http://localhost:8005/x/full/participant/4c3d9fc2bd39ce3e5e13176075e7ec29?ecid=1 See also email sent on 4/28 with subject "Multiple issues" I've seen this issue before. I believe it doesn't have anything to do with the form definition, and it cannot be reproduced so far. Once we can reproduce it reliably, we can fix it. I may have to add the record ID to the error message as I believe that may be the only way to figure this out.
|
Happened to run across this and was able to investigate. The cause is a duplicate recordName (not instanceID). Interestingly these records were for a different form (the form had the same form title). reproduced with http://localhost:8005/x/full/participant/9c4e3730b579618300560a13971d7f2e?ecid=1no |
The above means that the bug can be bypassed by:
issue reported here: enketo#1010 Some options to resolve:
|
Looks like db.js does not support the schema changes. There is a 6 year old unreviewed PR that would add it: aaronpowell/db.js#183. Db.js also doesn't seem to expose the native indexedDb stuff sufficiently to do this ourselves using the native API. |
pending PR review and merge in enketo/enketo-express |
|
Describe the bug
When a user fills out a form with multiple Participant ID fields. the form will not allow the user to submit. The issue will occur if 1 participant ID field is filled out, or all are filled out. The error states "This record name or ID already exists."
To Reproduce
Steps to reproduce the behavior. If applicable please include the smallest possible XLSForm or XForm (as zip or link).
Note: The form only appears to error if there are multiple groupings in the body. I have tested just having the participant id fields being in 1 group, and another question not being in any group. This works correctly. If the question is included in a group, it fails.
Record_exists_multiple_groups.txt
Expected behavior
The form should make it to the submission queue"
Screenshots
The text was updated successfully, but these errors were encountered: