cubewise-code / tm1py

TM1py is a Python package that wraps the TM1 REST API in a simple to use library.
http://tm1py.readthedocs.io/en/latest/
MIT License
190 stars 110 forks source link

remove_edges_under_consolidation cannot unwind a consol if it is in different case and has different number of spaces #1174

Open Mr-SabyasachiBose opened 1 month ago

Mr-SabyasachiBose commented 1 month ago

Describe the bug calling remove_edges_under_consolidation() doesn't work if the actual element name in the dimension is "Parent1" but the parameter supplied is "parent1" or "Parent 1", etc. although TM1 considers them as same names for an element.

To Reproduce add a consolidation in a dimension/hierarchy, say Parent1 and add a child under it say Child1 execute the function remove_edges_under_consolidation( dim_name, hierarchy_name, "parent 1" )

Expected behavior Parent1 should not have Child1 under it anymore

Version TM1py [2.0] TM1 Server Version: [e.g. 11.8]