Hello! I’m facing a problem during a “Device:Get” request. We have this field called “ancestorIds”, which should be in order, like: [“customer”, “site”, “plant”, …] — that’s the correct hierarchy order. However, sometimes what we get is: [“plant”, “customer”, “site”, …].
Could you please help me ?
What happenned:
For device 22cd, the ancestor IDs were returned in the wrong order. The images below illustrate the error:
Console version
Hello, I’m taking a look at this now. If you could PM me the application ID and the workflow ID where you are seeing this behavior, that would be helpful.
1 Like
I sent you a reliable device where this error is always happening 
I spoke with the engineering team about this; the ancestorIds array is usually in the order of the system hierarchy but it is not guaranteed to be in the correct order. Something that would guarantee the difference in order would be changing the system hierarchy of a device further up the tree.
I will file a feature request about making the order of items in the array always reflect the parentage hierarchy, but I do not have a timeline for when we will have that implemented.
1 Like