# Multiple roots and Ambiguous error in vega tree layout

**URL:** <https://discuss.elastic.co/t/multiple-roots-and-ambiguous-error-in-vega-tree-layout/270132>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [April 14, 2021, 4:51pm UTC](https://discuss.elastic.co/t/multiple-roots-and-ambiguous-error-in-vega-tree-layout/270132 "2021-04-14T16:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashvin\_Bhutekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashvin_bhutekar/32/86899_2.png) [@Ashvin\_Bhutekar](https://discuss.elastic.co/u/Ashvin_Bhutekar)\
**Post date:** [April 14, 2021, 4:51pm UTC](https://discuss.elastic.co/t/multiple-roots-and-ambiguous-error-in-vega-tree-layout/270132/1 "2021-04-14T16:51:45Z")

</div>

I am creating vega tree flow using dynamic data from the index pattern. As I am using 'URL' and 'nexturl' field in the index pattern which gets repeated many times (One child referring to many parents).  
Tree layout is created successfully when all the URL field values are unique, but multiple roots or ambiguous error appears when fields are not unique.  
for example: User visits URLs in following pattern  
"abc" --\> "bcd" -\> "cde"--\>"abc" in this case abc is ambiguous (referring to 'cde' and 'abc').  
Is it possible to resolve this problem? How should I approach to solve this problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 12, 2021, 4:52pm UTC](https://discuss.elastic.co/t/multiple-roots-and-ambiguous-error-in-vega-tree-layout/270132/2 "2021-05-12T16:52:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
