# Something broke the parser

**URL:** <https://forum.getodk.org/t/something-broke-the-parser/30702>\
**Category:** Support\
**Tags:** form-design\
**Created:** [October 20, 2020, 6:23pm UTC](https://forum.getodk.org/t/something-broke-the-parser/30702 "2020-10-20T18:23:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukhasawneh](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@sukhasawneh](https://forum.getodk.org/u/sukhasawneh)\
**Post date:** [October 20, 2020, 6:23pm UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/1 "2020-10-20T18:23:19Z")

</div>

**1. What is the problem? Be very detailed.**  
I received this error while uploading an xls form to ONA; DK Validate Errors: \>\> Something broke the parser. See below for a hint. Dependency cycles amongst the xpath expressions in relevant/calculate The following files failed validation: ${tmp73fso5gc} Result: Invalid  
**2. What app or server are you using and on what device and operating system? Include version numbers.**  
ONA  
**3. What you have you tried to fix the problem?**  
looked for all calculation and relevant conditions  
**4. What steps can we take to reproduce the problem?**  
helping figure out the problem  
**5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.**  
I have the form

---

<div class="post-metadata">

**Author:** ![Xiphware](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/xiphware/32/2587_2.png) [@Xiphware](https://forum.getodk.org/u/Xiphware)\
**Post date:** [October 20, 2020, 6:45pm UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/2 "2020-10-20T18:45:52Z")

</div>

Please post your form (suitably sanitised of any personal data) and I expect somebody here can spot the error.

---

<div class="post-metadata">

**Author:** ![sukhasawneh](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@sukhasawneh](https://forum.getodk.org/u/sukhasawneh)\
**Post date:** [October 21, 2020, 5:22am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/4 "2020-10-21T05:22:20Z")

</div>

[2020.09.09\_Verification & Baseline Survey\_SS\_V1......xlsx](https://forum.getodk.org/uploads/short-url/1WzbO9U9Kvoh0NH6fRFNbefuHan.xlsx) (87.2 KB)

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [October 21, 2020, 7:55am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/5 "2020-10-21T07:55:20Z")

</div>

Hi @sukhasawneh  
welcome to the forum! Please [introduce yourself here!](https://forum.getodk.org/t/introduce-yourself-here/6671)

The problem is in the way you use `pulldata` function. For example in row 184 you have a `select_one` question named `hh_member` and use `pulldata('household_registration_form','hh_member','hh_member',${hh_member})`  
The last parameter is the name of the same question so basically you try to use its answer to calculate options to display what doesn't make sense because such an answer doesn't exist when you want to do that and that cause dependency cycle.

It's just one example but you have more such bugs in your form so please review it and fix.

---

<div class="post-metadata">

**Author:** ![sukhasawneh](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@sukhasawneh](https://forum.getodk.org/u/sukhasawneh)\
**Post date:** [October 21, 2020, 8:56am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/6 "2020-10-21T08:56:30Z")

</div>

Thank you so much @Grzesiek2010, can you help me with this; how can pull data from other filled form, actually I have other forms rely on the main form (registration form), it is like case management !! can I do this using odk and .xls?

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [October 21, 2020, 9:32am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/7 "2020-10-21T09:32:17Z")

</div>

It depends what you want to achieve could you maybe prepare a small version of your form that contains that pulldata function to help us understand your case?

---

<div class="post-metadata">

**Author:** ![sukhasawneh](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@sukhasawneh](https://forum.getodk.org/u/sukhasawneh)\
**Post date:** [October 21, 2020, 10:35am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/8 "2020-10-21T10:35:25Z")

</div>

Thank you for your support @Grzesiek201.  
I created these simple xls forms to clarify the idea.  
[verification.xlsx](https://forum.getodk.org/uploads/short-url/de3x6Cf0JwI9jtDhpaFG8QQ8IXD.xlsx) (136.2 KB) [registration.xlsx](https://forum.getodk.org/uploads/short-url/lS0MnHkOKxNQ57EOnzDAG3hUVdt.xlsx) (123.3 KB)

---

<div class="post-metadata">

**Author:** ![damien](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/d/9de053/32.png) [@damien](https://forum.getodk.org/u/damien)\
**Post date:** [January 28, 2021, 9:55pm UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/9 "2021-01-28T21:55:17Z")

</div>

Hi, I have the same problem using ONA  
[TRANSGABONNAISE-PARCELLESET PAP-TEST.xlsx](https://forum.getodk.org/uploads/short-url/y7sJtWxYLCLVLkgrU40BHPhM1Wu.xlsx) (57.8 KB)  
"DK Validate Errors: \>\> Something broke the parser. See below for a hint. Dependency cycles amongst the xpath expressions in relevant/calculate The following files failed validation: ${tmpom0zyybu} Result: Invalid"

I cannot find the row where I mixed up

---

<div class="post-metadata">

**Author:** ![Xiphware](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/xiphware/32/2587_2.png) [@Xiphware](https://forum.getodk.org/u/Xiphware)\
**Post date:** [January 29, 2021, 2:50am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/10 "2021-01-29T02:50:01Z")

</div>

try fixing line 204, you appear to have a relevant expression dependent on itself:

 ![Screen Shot 2021-01-29 at 3.47.28 PM](https://getodk.b-cdn.net/uploads/default/original/2X/1/1957ddecd405264dae2ecbac999c9b13067101e7.png)

---

<div class="post-metadata">

**Author:** ![damien](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/d/9de053/32.png) [@damien](https://forum.getodk.org/u/damien)\
**Post date:** [January 29, 2021, 6:09am UTC](https://forum.getodk.org/t/something-broke-the-parser/30702/11 "2021-01-29T06:09:49Z")

</div>

Hi, thanks a lot for your reply.
