Importing data to Collect

  • Asked
  • Active
  • Viewed 5708 times
0

Do you have an example to demonstrate how the data can be imported into a existing Survey? I know the .csv file is only option, but i am not clear about how to format the csv file, especially when the survey has multiple entities/tables.

i checked the previous post "Best practice for importing large sets of inventory data", but it didn't help much.

Thanks

Jinkai

0

Accepted answer

Hi Jinkai,
When you are editing your survey in the Survey Designer, you have the possibility to generate a template for the CSV data import:
- click on the small gear button in the top right corner
- select Export CSV data import/export template
alt text
It will generate a ZIP file containing a template for every entity data you will need to import into Collect. The column names in this files will depend on the names of the attributes in your entities.
Many thanks,
Open Foris Team

0

Accepted answer

Hello,

I just did one test. i exported the template as directed in your previous email. The ZIP file generated has 3 CSV files like cluster.csv, plot.csv and tree.csv. Do i need to import three times? Or Can I import just once if i can somehow construct one CSV file to include all the attributes from 3 CSV files?

Thanks,

Jinkai

0

Accepted answer

Hi Jinkai,
You can import the data one entity per time (starting from the root entity (the sampling unit) and then continue by importing data related to nested entities (e.g. if you have a structure like cluster -> plot -> tree you can start to import cluster.csv, then plot.csv and then tree.csv).
Otherwise you can put all the csv files you want to import and add them to a zip file to be imported into Collect: Collect will import every csv file following the hierarchy defined in the Schema).
Many thanks,
Open Foris Team

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.