Validate errors: dependency cycles amongst the xpath expressions

Hello, I have the same problem that I've failed to deploy my xlsform because of dependency cycles. But, unfortunately, I haven't found where's my mistake. Can anyone help me here? Thanks anyway!
Coba-export.xlsx (34.2 KB)

You have several errors around the place... eg

line 28 and 29 both have an ${b07a} id; all questions must have a unique name

line 28 ${b07a} has a relevance of ${b07a} >=5, which is self-referencing

line 41 ${b203} has a relevance of ${b203} = '3', which is self-referencing

...

Please make sure:

  1. all questions have a unique name
  2. no question includes itself in its relevant expression

Thank you very much. I have repaired my xlsform based on your suggestions. But I still have the same problem here. Could you please help me again?Coba-export.xlsx (42.8 KB)

@Xiphware pointed out a few lines where you made a mistake but apparently there are more of them. Your form is pretty big (~550 lines) and now you know what causes the problem so you have to do that on your own (review other rows), you can't ask us to do that for you.

Error: b'ODK Validate Errors:\n>> Something broke the parser. See above for a hint.\nDependency cycles amongst the xpath expressions in relevant/calculate\n\nThe following files failed validation:\n${Nitunze_CashTransfer_PDM_Questionnaire}.xml\n\nResult: Invalid'

I have the above problem kindly help me

Hi @Adan
welcome to the forum! Please introduce yourself here!

Please go through this topic it's not a complex problem and you should fix it on your own, if not please attach your form so that we can take a look.

Damm even I am having a similar kind of issue, I have searched all over the internet and even have posted on number of threads on different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now.

Hi @miyabhai101
welcome to the forum! Please introduce yourself here!

you need to attach your form since it's a bug there we are not able to tell you what's wrong if we can't take a look at it.

Greetings to you all, I am also getting a similar error on my odk: Dependency cycles amongst the xpath expressions in relevant/calculate Questionniare_odk5NEW-trial.xlsx (12.0 KB)

Hello Emmaj 10,

I found the problem on your xls file. There was mistaken in the calculation. I had corrected it and highlighted in the excel file.

Hope its works for you. I had check the filed and now its working fine in here for in ODK collect.

And also you need to replace ${z1}='yes' by ${z1}='1'.

Please get attached of the file.

Regards,
Dinesh Dongol
Questionniare_odk5NEW-trial_dnes.xlsx (12.7 KB)

Hi team, I hope you are well; kindly support on this similar error am getting with my questionnaire. Your support will highly be appreciated.
Parents_quiz.xlsx (17.6 KB)
Thanks in advance
Chris

line 27:

name=q4a, relevant=selected(${q4a},'0')

its hard to only be 'relevant' to yourself... :grin:

I think you want relevant=selected(${q4},'0'), but you may also want to check the rest of your form for similar, um, D'ohs... :slight_smile:

Surely thanks I needed extra eyes to see that error, It has now worked. Keep on the good work
@Xiphware.

Hello,
am getting a similar problem but my error is coming from the constraint column. what i want is a restriction from selecting other options when one selects "none" or "never" or "don't know". I shall be gratefull. attached is the form chauhotspotmapping.xlsx (22.7 KB)

Hello chauvoice2020,

You can use ((. = '-88') or not(selected(.,'-88'))) and ((. = '-99') or not(selected(.,'-99'))) and ((. = '-77') or not(selected(.,'-77'))) in constraint column; which means you cannot select 'none of the above', 'do not know', or 'no response' with other options. . In here -88 means none of the above, -99 means do not know and -77 means no response.

Hope it works for you. Do try it out and let me know if its works or not.

Regards,
Dinesh Dongol

Thanks Dangol. I had it figured out, the dependency cycle was in relevant column Q16 A.

Questionnaire_for_geop.xlsx (20.9 KB)

experiencing the same problem, but still cant fix it. Gosh!! kindly help

line 32:
select_one yes_no Q19 19. R1.2.2 : Do you keep records of your business? selected(${Q19}, 'No')

line 39:
text Q23 26. If no, why did you not complete the training or learning a trade? selected(${Q23}, 'No')

line 60:
text Q39 39. Did it make a positive differences? selected(${Q39}, 'No')

line 61:
text Q40 40. Did it make a negative differences? selected(${Q40}, 'No')

...
Go thru all your questions that have a relevance expression, and make sure they dont refer to themself.

Great!
This has been very helpful

Cheers !!

Hi! I keep getting this msg:

Something broke the parser. See above for a hint.
Dependency cycles amongst the xpath expressions in relevant/calculate

The following files failed validation:
${papa}.xml

Please someone can help me pleasepapa.xlsx (25.6 KB)