Back to Table of Contents

Form Actions - Import (Study, Form or Version)

You can use the Import functionality to bring in studies, forms or form versions from work done elsewhere.

Select a row to begin import

If you want to:

  • Import a specific form version - select any version of that form
  • Import a specific form - select any row in the study
  • Import a study - select any row

(Note this is different to Delete and Export)

Select what to import and find file

  1. Select where you want the import to go to
  2. Select Browse to find the file on your local machine
  3. Import

Note: If you have mismatched your destination and the xml then you will receive an error message. For example, if you have previously exported a form version, but have asked to import a study in the above dialog - the error message "This is a Form version, not a Study. Try "Import Form version" instead." will appear

Warning about importing items with the same names as existing items

In 1.16, if you export a Study or a Form from your database, and then re-import that study or form immediately, duplicate forms will be created.

These duplicate forms will be given a unique form_definition_version_id and so they will appear as two separate rows in your List of Forms, as shown above.

When you Capture data, that data will be captured under the separate form_definition_version_ids and so each form will have its own count, as shown in the above picture.

However, if that form had the same form binding as the originafl form, then it will attempt to export data to the same table as the first form. This will result in either data not being able to be exported if you change a form, or the confusing picture below where two rows of data are shown where only one is expected.

You should take care when importing a Form or Study that openXdata is going to do what you expect.

A ticket has been raised about this issue here and will hopefully be fixed in future versions.

Additional information on how openXdata stores your data is available in "How openXdata stores your data"