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\nResult: Invalid'

Hello,

I am having this error "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\nResult: Invalid'".

I do not have any entry in calculation so I suspect the problem is somewhere in relevance but I cannot identify it.

Is there a way to identify the source of the problem?

Thanks a lot for your help.

Best wishes,

row 160 (m3_q20) is probably 'bad' [there may be others, I stopped looking at 160]:

select_one yesno,	m3_q20	,Specify if other,	${m3_q20}=14			

relevant='${m3_q20}=14' is self-referencing, hence probably why its throwing the error.

A good trick when you have a LONG form that is giving you such an error, is divide-and-conquer: basically cut the form in approximately half and try to upload the 1st half as a form, then the 2nd half. That will tell you which half the problem lies in. Repeat dividing with the failing half till you sufficiently narrow it down...