# Data Tree Paths randomly changing

**URL:** <https://discourse.mcneel.com/t/data-tree-paths-randomly-changing/137244>\
**Category:** Grasshopper\
**Tags:** windows, mac, pathmapper, path-mapper, data-tree\
**Created:** [February 1, 2022, 9:44am UTC](https://discourse.mcneel.com/t/data-tree-paths-randomly-changing/137244 "2022-02-01T09:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nils-eckhardt](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@nils-eckhardt](https://discourse.mcneel.com/u/nils-eckhardt)\
**Post date:** [February 1, 2022, 9:44am UTC](https://discourse.mcneel.com/t/data-tree-paths-randomly-changing/137244/1 "2022-02-01T09:44:27Z")

</div>

Hey guys,

so I have stumbled upon a rather weird issue. I have a Data Tree which gets remapped from {A;B;C;D} to {A;B;C;D;1}. But as soon as I connect the changed tree to any other component the last branch index changes to 0. Interestingly enough it also backtracks so all components before now also show 0, not 1.  
Different components like ‘_append element_’ for instance also have the same issue.

When merging the tree with another one which is supposed to end with 0, it first still retains both paths, but connecting to something else it again later merges the paths.

 ![PathMapperIssue01](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/2/2/122cd7ee9da122fcdc03186465f3eea084337255.png)

Doing a simple graft-trim operation multiple times always yields a different (random) result.

 ![PathMapperIssue02](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/a/8/da83ce466629bebd7149e8ba44b576893d8a3392.jpeg)

Sometimes the output from the Graph Mapper seems to be correct, however connecting it further changes the branch index

 ![PathMapperIssue03](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/a/d/0ade7bd6d6674a55238f861d0b12a12e81c577a3.jpeg)

Tested the script both on Mac and Windows and both on R6 and R7 with no differences.

GH version is 1.0.0007

Best regards and hoping for some help  
Nils Eckhardt
