"Keep Attributes" when doing Hierarchy SaveAs is not working
Describe the bug
When performing a SaveAs action on a hierarchy there is an option to overwrite should the target hierarchy already exist. If the overwrite option is selected then an additional "Keep Attributes" option becomes available. There are 2 issues with "Keep Attributes".
- It is ambiguous what is meant by "Keep Attributes". Does it mean copy attribute values from the source hierarchy to the target (that is "keep" the source attribute values)? Or does it mean ignore attributes and preserve the existing values in the target hierarchy (that is "keep" the current values in the target hierarchy)?
- Which ever way "Keep Attributes" is supposed to be working, it isn't. Where the target hierarchy already exists and so needs to be overwritten, any C elements created in the target hierarchy don't get the attribute values from the source hierarchy (1st interpretation) and if the target hierarchy already has attributes defined for C elements these are cleared (2nd interpretation). This is regardless whether "Keep Attributes" option is selected or not. The target hierarchy always has all blank values for all C elements.
To Reproduce
This can be easily reproduced using the Region dimension in Canvas Sample
- SaveAs Region to "Region New"
- Region New hierarchy has empty values for attributes for all C elements
- Repeat with overwrite option now the new hierarchy exists. Do with both "Keep Attributes" options
- Result is the same. Region New hierarchy has empty values for attributes for all C elements.
- Enter some attribute values for C elements in Region New
- Repeat the SaveAs from Region to Region New again with both possible Keep Attributes options
- Result is the same. Region New hierarchy has empty values for attributes for all C elements.
Expected behavior
- It should be clear what the intended behaviour of Keep Attributes is (i.e. is it to copy from source to target or to ignore source and preserve target for C elements).
- Whichever the intended behaviour, it should work.
Screenshots
Overwrite options (doesn't seem to make any difference)
End result in target hierarchy (C elements have no attribute values)
Desktop (please complete the following information):
- TM1 Version: 11.4
- Browser: Chrome
- Arc Version: 1.4.2