Skip to content

::element.rename ​

Use ::element.rename to change the principal names of existing elements without deleting and recreating them. For example, update business unit codes while keeping the data recorded against those units.

Set up the definition ​

Enter ::element.rename in column A of the header row. In the rows below, set -dimension to the target dimension and use -hierarchy if you need an alternative hierarchy. By default, TeamOne uses the dimension’s default hierarchy. If you leave -dimension out, TeamOne uses the preceding ::dimension definition on the same sheet.

Put the current principal name in column A and the replacement in column B. TeamOne skips rows whose current name doesn’t exist. Check the spellings and choose unique replacement names.

Example ​

These rows rename two region codes in the Region dimension.

Column AColumn B
::element.rename
-dimensionRegion
NTHNorth
STHSouth

Element rename definition with current and replacement names

After you run the definition, check reports, rules, and processes that refer to the old names. Use Model search to find references in the model. See the element rename example spreadsheet.