Facing some problems in mix-up of form IDs

5 views
Skip to first unread message

Shashank Garg

unread,
Jul 1, 2014, 12:28:54 AM7/1/14
to openxd...@googlegroups.com, openxda...@googlegroups.com, Shashank Garg
We are facing a peculiar problem of form data getting into the wrong form which don't seem to be addressed in any of the existing tickets.

The problem is as follows:

We have a study with several forms, say ten forms. When data is entered in one form (eg., a form with form_definition_version_ID = 3) and submitted to the server, we sometimes find that it has landed up in a form with a different ID than the ID of the original form. It even gets exported to the wrong table.

Has someone else faced this problem? If so, has it been sorted out and how?

Please let us know if you are aware of such a problem and its resolution.

Thanks,
Shashank@Handsrel

Ronald Kayondo

unread,
Jul 1, 2014, 1:28:16 AM7/1/14
to openxda...@googlegroups.com, openxd...@googlegroups.com, Shashank Garg
Hi Shashank,
This has happened to me once but it was in special use case where  I copied and pasted the xforms in the database manually and forgot to change the form Id in the xForm xml. The id has to be the same as the form version database Id. Could this be the same issue as yours?

Regards,
Ronald




--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxdata-users/CAHzs-2uB7H2MgpgZGqjxqwEC0oKDhac8rGCO1Q2rkyPnwx1VuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Ronald. K

Shashank Garg

unread,
Jul 1, 2014, 1:36:04 AM7/1/14
to Ronald Kayondo, openxda...@googlegroups.com, openxd...@googlegroups.com
Hi Ronald,

No, we have tried to ensure that the ID generation is done by the Forms Designer even if the form is changed manually. The Forms Designer also has an error in ID generation when a new version of the form is created, which I will report separately.

Regards,
Shashank

Ronald Kayondo

unread,
Jul 1, 2014, 2:13:04 AM7/1/14
to Shashank Garg, openxda...@googlegroups.com, openxd...@googlegroups.com
 Just to make sure...by Id I mean't that database id in the xform and not the form binding.See below highlighted in Red.If thats what you also meant then I have no more ideas :(

<model>
    <instance id="example_study_sample_form_v1">
      <example_study_sample_form_v1 formKey="example_study_sample_form_v1" id="25" name="Sample Form_v1">
....
--
Ronald. K

Sneha Jonnalagadda

unread,
Jul 1, 2014, 2:57:14 AM7/1/14
to openxd...@googlegroups.com, Shashank Garg, openxda...@googlegroups.com
Hi Ronald, 

 We did make sure the id's match as mentioned above, despite which we have this issue.


You received this message because you are subscribed to the Google Groups "openXdata Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-de...@googlegroups.com.
To post to this group, send email to openxd...@googlegroups.com.
Visit this group at http://groups.google.com/group/openxdata-dev.

For more options, visit https://groups.google.com/d/optout.



--
Best,

Sneha Jonnalagadda



Dagmar Timler

unread,
Jul 1, 2014, 3:04:03 AM7/1/14
to openXdata Developers, Shashank Garg, openxda...@googlegroups.com
Hi

Unfortunately I don't have any great suggestions - I have only seen exported data go into the wrong table when I've copy and pasted a form and forgotten to change the id Ronald mentioned.
The only other thing I could suggest is that perhaps the form was changed after it was downloaded onto the phone - so the copy on the phone somehow does not match the form on the server.

Good luck
Dagmar
Reply all
Reply to author
Forward
0 new messages