I have got the error: Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! in the tm1-ui-subnm component when using an MDX that displays all the descendants of a root consolidation node ( for example: {DESCENDANTS([FIN Cost Center].[Management Hierarchy (LOB)])} ).
The hierarchy is very deep and it might be the problem. This issue does not happen when displaying all the descendants of a consolidation node with less levels.
That usually happens if there are other changes happening on the same directive and has been looping through these changes for quite some time (probably back and forth with the changes).
Is there any other components / events happening on the page?
Can you try to put that single directive into a temp page - where that is the only content and check if it is still happening?
Are you able to post in here the whole attributes passed into that tm1-ui-subnm? You can mask off the actual variable names.
Can you post a masked screenshot in here of the browser console error?
That seems to be an internal limit within the underlying AngularJS library framework on rendering the same html templates recursively. Due to the nature of the hierarchy, HTML templates are being re-used to render each sub level.
I was able to re-create it and though there was an error in the console with a 12 level deep consolidation, I was still able to see the resulting hierarchy:
Despite the error, the hierarchy is still displayed correctly in the SUBNM. If this issue was only happening at the initialization of the page, that would not be a problem, but it happens each time a new selection is made in the SUBNM and therefore there is an impact on the performance, and the dashboard takes longer to render properly.
Thank you again for investigating. I will check your suggestion and see if it is acceptable for the users.