Migration template for installation points can be used to create multiple installation points at the same time. This can also be used to create a hierarchy of installation points. However when this is done, sometimes the hierarchy is not created correctly. When we try to create parent and child installation points at the same time, if the child installation point gets created before the parent then this issue happens. This blog explains how to use the migration template to create hierarchy in a consistent way.
There are two approaches which can be used to create a hierarchy of installation points.
This approach is straightforward. In order to create a hierarchy, make sure that the parent installation points are created first and then the children.
a) Execute migration with migration mode “Add new records” for parent installation points
b) Once above migration is completed successfully, execute migration with migration mode “Add new records” for lower level installation points.
This approach can be used if the levels of hierarchy are 1 or 2 because with each new level we have to run migration template again to create the installation points at that level.
This approach can be used to create installation point hierarchy with any level of hierarchy by running migration template exactly 2 times.
a) Create all installation points ( parent and children ) in the same level using the migration mode “Add new records”. Leave the parent installation point column as blank and execute migration.
After the completion of the above step the installation points will be created at level 1 as shown below
b) Copy the migration template file to a new file.Choose the migration mode as “Replace Already existing records”.
Keep all the data same as before, don’t modify any data. Add the data in the column “Parent Installation Point ID” as per hierarchy requirement
Execute migration completing all the steps
After migration is complete the hierarchy will be created as per requirement.
As you would have observed using this approach any level of hierarchy of installation points can be created by executing migration exactly 2 times. Hope this information is helpful.
Note: Migration template for installation points can also be used to create a hierarchy of registered products as a registered product is made up of 2 Business Objects: Installation Point and Individual Product. Further information can be found in the below link: