qualipool / swissrets

A swiss real estate transaction standard
https://swissrets.ch
MIT License
26 stars 18 forks source link

Unique unit IDs on export #212

Open Leisure-B opened 2 years ago

Leisure-B commented 2 years ago

We’re currently working on a swissrets import, and we’ve gotten to the point where we want to import projects, and connect the properties which belong to these projects. In order to create the correct set up, we’ve downloaded the project-tree.xml from the example files.

When looking at the id connections in the file, it seems that there could be errors in our import. On the first level we have the projects, containing units with an ID, for example ‘’projA’’. In our case, we would like to link the entries in the “porperties” tree to the entries in the “projects” tree. Since we are only able to base our connection on the unit id, we would have to rely on the assumption that all unit IDs are unique, not only in the current file, but also for future imports.

So my question is, are the unit IDs unique globally?