# \[Bug\] Error in test5

**URL:** <https://get-help.theconstruct.ai/t/bug-error-in-test5/41273>\
**Category:** Behavior Trees for ROS2\
**Created:** [June 4, 2026, 1:37pm UTC](https://get-help.theconstruct.ai/t/bug-error-in-test5/41273 "2026-06-04T13:37:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eblady](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/eblady/32/6980_2.png) [@eblady](https://get-help.theconstruct.ai/u/eblady)\
**Post date:** [June 4, 2026, 1:37pm UTC](https://get-help.theconstruct.ai/t/bug-error-in-test5/41273/1 "2026-06-04T13:37:01Z")

</div>

This is an error report.

* * *

**Screenshot of the error**

 ![](https://error-imgs.s3.amazonaws.com/error_image_d8419771-20c7-4100-8343-03a47b547b92_1780580154278.png)
* * *

**Error details**

Hi, This error appears when testing the test5 program of BTs. In addition, it is not clear in the course how to run the Groot application.

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [June 8, 2026, 9:41am UTC](https://get-help.theconstruct.ai/t/bug-error-in-test5/41273/3 "2026-06-08T09:41:09Z")

</div>

Hello @eblady ,

As the error message indicates here:

```auto
BT::RuntimeError
what(): Error parsing the XML: XML_ERROR_EMPTY_DOCUMENT

```

The problem is that BehaviorTree.CPP tried to load an XML file, but the file it received was empty or not found properly.

This is happening because you probably didn’t complete the `test_unit5.cpp` file with the required XML behavior. See here an example of how it should be:

 ![Captura de pantalla 2026-06-08 a las 11.00.42](https://get-help.theconstruct.ai/uploads/default/original/2X/3/34615e591f53a692d5a78ee53f515072171692d8.png)

In the image above I used the XML provided in the exercise solution.

So you have to fill the XML behavior and then re-build the workspace, as instructed in previous exercises from the course.

Please let me know if you have any further doubts.

Best,

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [June 13, 2026, 9:41am UTC](https://get-help.theconstruct.ai/t/bug-error-in-test5/41273/4 "2026-06-13T09:41:41Z")

</div>

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