These are chat archives for collectiveaccess/support

14th
Nov 2017
zombabie
@zombabie
Nov 14 2017 12:04
Hi everyone! It is a question about importer. I tried to use occurrenceHierarchyBuilder to map an existing occurrence as parent. "idno" is parent's id which is numerical, "name" is parent's preferred label, "type" is parent's occurrence type. Outcome is the record mapped to another occurrence which is not following the mapping. Any clue? Thank you very much!
zombabie
@zombabie
Nov 14 2017 12:22
Some more observation: As if providence is first treating the "idno" as "occurrence_id", and if the record with this "occurrence_id" is deleted, it will map to a wrong record. If the "occurrence_id" not deleted, it will map to correct record following my "idno" + "name".....how strange.....is it a bug?
zombabie
@zombabie
Nov 14 2017 13:21
I’m using 1.7.5 just downloaded on Nov 1
CollectiveAccess
@collectiveaccess
Nov 14 2017 13:22
idno needs to the identifier of the parent record, not the occurrence_id
What you describe sounds like a bug, but I suspect it's falling back to attempting to use occurrence_id's when the idno match fails.
This is actually intended behavior, albeit behavior that almost no one actually uses.
I'm assuming your idno's are purely numeric – only numbers?
zombabie
@zombabie
Nov 14 2017 14:26
Thanks for look into my case! Yes, they are purely numeric, and
and the idno using does exist
CollectiveAccess
@collectiveaccess
Nov 14 2017 14:28
but the mis-import only happens when the numeric idno does not exist, correct?
CollectiveAccess
@collectiveaccess
Nov 14 2017 14:47
@teresaazevedo08 We have pushed a fix to GitHub in the "develop" branch for the issue you reported. It'll be part of the next (1.7.6) release.
teresaazevedo08
@teresaazevedo08
Nov 14 2017 14:54
@collectiveaccess Thank you very much!
zombabie
@zombabie
Nov 14 2017 15:09
i tried 2 parents, both numeric idno exist. One can map,one cannot
CollectiveAccess
@collectiveaccess
Nov 14 2017 15:09
I thought you said it was only mis-importing when the target parent was deleted?
zombabie
@zombabie
Nov 14 2017 15:16
No, both exist. I just guess if the idno was treated as occurrence_id. If this is the case, one occuidno rrence_id is deleted, one is not.
CollectiveAccess
@collectiveaccess
Nov 14 2017 15:17
I don't understand
zombabie
@zombabie
Nov 14 2017 15:20
ok, just make it simple. I
I cannot map the numeric idno to the parent occurrence, but it exist in my records
zombabie
@zombabie
Nov 14 2017 15:26
will the idno be treated as occurrence_id even it exists?
zombabie
@zombabie
Nov 14 2017 15:43
because the idno, preferred label and event type are just copy from providence records. I don't know why one parent can map but the other cannot, provided that both exist......sorry you can ignore my question of occurrence_id if too confusing :(