There is a usability mismatch between:
elements.get_elements_dataframe() defaulting element_type_column="Type"
hierarchies.update_or_create_hierarchy_from_dataframe() defaulting element_type_column="ElementType"
Changing defaults now would break backward compatibility.
Could we add a safe fallback in update_or_create_hierarchy_from_dataframe:
- Use
ElementType if present.
- If missing, use
Type only when all non-null values match valid element type values.
- If validation fails, treat
Type as a regular attribute and raise a clear error that ElementType is required.
This avoids breaking existing scripts while preventing conflicts where Type is a genuine dimension attribute.
There is a usability mismatch between:
elements.get_elements_dataframe()defaultingelement_type_column="Type"hierarchies.update_or_create_hierarchy_from_dataframe()defaultingelement_type_column="ElementType"Changing defaults now would break backward compatibility.
Could we add a safe fallback in update_or_create_hierarchy_from_dataframe:
ElementTypeif present.Typeonly when all non-null values match valid element type values.Typeas a regular attribute and raise a clear error that ElementType is required.This avoids breaking existing scripts while preventing conflicts where Type is a genuine dimension attribute.