Hi Team,

Can you add a new registers into completed grid and export to Collect Earth, yet recognize that the grid is completed?

To elaborate, my survey didn't have region attribute. Now, I added the region attribute, and re-exported a clone of it. But it doesn't recognize that the plots are already filled!!

The data should have already been in the database and when I load the original CEP file the data seems to be there.

asked 19 May '16, 22:58

Tesfay's gravatar image

Tesfay
0258
accept rate: 0%

converted to question 19 May '16, 23:04

Open%20Foris's gravatar image

Open Foris ♦♦
1.0k5714


Hi Tesfay,

When you clone a survey the cloned Survey's internal ID ( its URL ) will be different than the original one.

This means that the data that belongs to the original survey is not visible to the cloned one as the survey uses the internal ID to reference the records on the database.

A possible solution is that you :

  1. Export the data from the original survey by using the XML(Zip) format ( you need to be using the original survey, open the original CEP file) In the CE menu Tools->Data Import/Export->XML Export->Export data to XML(compressed)

  2. Open the ZIP file generated and update the file called idm.xml so that the URI matches the URI that you can find inside the placemark.idm.xml file inside the cloned CEP file.

This line looks like this:

<uri>http://www.openforis.org/idm/NAME_OF_SURVEY</uri>

Again, you can find the URI of the newer (cloned) survey if you open the placemark.idm.xml file inside the CEP file (you can open the CEP file or WinZIP or similar, or you can try to change the extension to ZIP)

  1. Import the updated ZIP file through Tools->Data Import/Export->Import new records using XML

That should work!

So basically, in brief, you are exporting the data from the original survey and importing it into the new one. BUT for this to work you need to make sure that the URI and name of the project (which is specified in the idm.xml file) are the same than in the new one that you have currently loaded in Collect Earth (the newer cloned one)

AS A GENERAL NOTE : When you import data from an XML(ZIP), the data will only be imported if it refers to the same survey (in this case the newer cloned one) than the survey that is CURRENTLY loaded (in use) in Collect Earth

permanent link

answered 19 May '16, 23:09

Open%20Foris's gravatar image

Open Foris ♦♦
1.0k5714
accept rate: 10%

edited 08 Jul '16, 15:29

I have tried the above answer but its not working. What could be the problem?

permanent link

answered 28 Mar '17, 16:06

teon's gravatar image

teon
2815
accept rate: 0%

A kind request for the Team:

could you please develop a small utility program to facilitate the use of data with cloned surveys? That should work both with exported Collect Earth (.cep) and Collect (.collect-data) files. All what is needed are these two questions:

  • XML export file to be cloned?
  • New survey name?

Output is the cloned XML. Playing with updated zip files is sometimes a bit frustrating.

permanent link

answered 29 Mar '17, 08:20

Lauri%20%28OF%29's gravatar image

Lauri (OF) ♦♦
6952816
accept rate: 20%

@Tesfay:
If you needed to add a new attribute to your existing survey, you could do it without cloning the survey. Adding new attributes won't affect existing data, like for example changing labels and validation rules. Usually there can be problems only if you delete an attribute (you will loose all the associated data) or you convert an attribute from one type into another. By the way, it would be better to publish the survey before starting to collect data with it, so when you will try to update it, only little changes will be allowed by the survey designer.

@Lauri:
In general a cloned survey can even be not compatible with the original one, because it can contain attributes converted from numbers to text or something else, and then importing data among the 2 is not always possible.
But I like your idea; maybe it's easier to just give the possibility to the user to specify during data export if:
- is it for a cloned survey?
- (if the previous answer is yes) please specify it's name

And then the user will have to import the data into the cloned survey (Collect will check if the data is still compatible with the cloned survey during data import).
Does it fits your needs?

Thanks,
Open Foris Team

permanent link

answered 30 Mar '17, 09:52

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Dear Team,

this new data export feature would be a good solution, thanks!

-Lauri

permanent link

answered 30 Mar '17, 10:24

Lauri%20%28OF%29's gravatar image

Lauri (OF) ♦♦
6952816
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×284

question asked: 19 May '16, 22:58

question was seen: 5,794 times

last updated: 30 Mar '17, 10:24