Hello,
I'm trying to add data to an existing survey record in Open Foris Arena using the CSV import, and I repeatedly get "Record with keys "survey_id=" not found", even though the record exists. I've tried several things and can't find the cause.
SURVEY STRUCTURE survey (root, key: survey_id) > compartment (keys: compt_no + species) > plot (key: plot_no) > tree_data Arena version: 3.0.0 [please check this against your own Arena]. Single cycle (cycle 1).
WHAT I'M DOING Data > Data Import > CSV/Excel > "Update existing records", entity Compartment (I also tried Plot).
THE EXISTING RECORD - It appears in Data > Records (1 record, step 1 Entry, 0 errors, 0 warnings). - It is not locked (step 1, not Analysis). - I can open it and copy the key from the record path: Survey [''].
WHAT I TESTED 1. A CSV made from the Arena import templates: validation says "Record with keys "survey_id=" not found" on every row. 2. A CSV exported from Arena itself (Data > Records > Export), for the same record. Re-importing it unchanged first gives "Invalid columns: ..._label" (expected, the manual says label columns are invalid). After removing the 13 *_label columns and changing nothing else, I get the same "Record with keys ... not found" error. 3. I copied the survey_id directly from Arena and compared it byte-for-byte with the export: no hidden characters, no difference.
QUESTIONS 1. Why would Arena not find a record whose key is identical to the one in its own export? 2. Is "Update existing records" on a child entity (compartment/plot) supposed to be able to add NEW compartments or plots to an existing record? The manual says adding new entities is allowed (option on by default), but I can't get it to work. 3. If not, what is the recommended way to import plot coordinates into an existing record? I have seen the "Merge records" option in the Arena-format import, but would need to know whether that is the intended route.
Thank you