# Program tree ignored

**URL:** <https://forum.universal-robots.com/t/program-tree-ignored/3037>\
**Category:** Java\
**Created:** [November 2, 2018, 9:06am UTC](https://forum.universal-robots.com/t/program-tree-ignored/3037 "2018-11-02T09:06:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon82484413](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon82484413](https://forum.universal-robots.com/u/anon82484413)\
**Post date:** [November 2, 2018, 9:06am UTC](https://forum.universal-robots.com/t/program-tree-ignored/3037/1 "2018-11-02T09:06:50Z")

</div>

I got my UR cap to create a program tree inside itself, where I need it to make some moves.

The script attached to the cap is running, and I see the variables getting updated correctly, but the waypoints and setting the digital outputs, is completely ignored. What can cause this?

![Udklip](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/9daad9b4cfc3ef21b4c13f88c8771c1d7c09b0a1.png)

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [November 2, 2018, 9:10am UTC](https://forum.universal-robots.com/t/program-tree-ignored/3037/2 "2018-11-02T09:10:11Z")

</div>

Remember to put `writer.writeChildren()` in the ScriptWriter of the parent node, otherwise the child script code is not added anywhere.

---

<div class="post-metadata">

**Author:** ![anon82484413](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon82484413](https://forum.universal-robots.com/u/anon82484413)\
**Post date:** [November 2, 2018, 9:15am UTC](https://forum.universal-robots.com/t/program-tree-ignored/3037/3 "2018-11-02T09:15:44Z")

</div>

And that is exactly what I forgot… 😞 I am ready for the weekend!
