Deploy errors

When deploying this error shows up (after validation against the **[online validator ])

Error: ODK Validate Errors: >> XForm is invalid. See above for the errors. : Cycle detected in form’s relevant and calculation logic! The following nodes are likely involved in the loop: ${group_bt0wi89_patines_1_t3_da_dias_sem} ${group_bt0wi89_patines_1_t3_da_meses} ${group_bt0wi89_patines_1_t3_da_dur} ${group_hz6cs99_patines_1_cedu_da_anos_1} ${group_of5ws70_otro_1_t2_da_meses} ${group_of5ws70_otro_1_t2_da_dur} ${group_of5ws70_otro_1_t2_da_dias_sem} ${group_of5ws70_correr_1_t2_da_dias_sem} ${group_of5ws70_correr_1_t2_da_meses} ${group_of5ws70_correr_1_t2_da_dur} ${group_re9ta96_monopatin_1_t1_da_anos} ${group_re9ta96_otro_1_t1_da_dur} ${group_re9ta96_otro_1_t1_da_dias_sem} ${group_re9ta96_otro_1_t1_da_meses} ${group_re9ta96_bicicleta_1_t1_da_anos} ${group_re9ta96_patines_1_t1_da_anos} ${group_re9ta96_correr_1_t1_da_dias_sem} ${group_re9ta96_correr_1_t1_da_dur} ${group_re9ta96_correr_1_t1_da_meses} ${AFD1_nombre_otro_001} ${group_re9ta96_caminar_1_t1_da_meses} ${group_re9ta96_caminar_1_t1_da_dias_sem} ${group_re9ta96_caminar_1_t1_da_dur} ${group_hz6cs99_patines_1_cedu_da_dias_sem} ${group_hz6cs99_patines_1_cedu_da_dur} ${group_hz6cs99_patines_1_cedu_da_meses} ${AFD2_nombre_otro} ${group_bt0wi89_patines_1_t3_da_anos} ${group_of5ws70_bicicleta_1_t2_da_anos} ${group_of5ws70_patines_1_t2_da_anos} ${Por_favor_especifiq_esplazamiento_activo_001} ${group_rs1tc30} ${_7_Indique_la_frecuen_esplazamiento_activo} ${group_re9ta96_monopatin_1_t1_da_dias_sem} ${group_re9ta96_monopatin_1_t1_da_meses} ${group_re9ta96_monopatin_1_t1_da_dur} ${group_hz6cs99_monopatin_1_cedu_da_anos_1} ${group_of5ws70_monopatin_1_t2_da_meses} ${group_of5ws70_monopatin_1_t2_da_dias_sem} ${group_of5ws70_monopatin_1_t2_da_dur} ${Por_favor_especifiq_esplazamiento_activo_002} ${group_bt0wi89_otro_1_t3_da_anos} ${group_re9ta96_patines_1_t1_da_dias_sem} ${group_re9ta96_patines_1_t1_da_meses} ${group_re9ta96_patines_1_t1_da_dur} ${group_mv7mx80} ${group_hz6cs99_bicicleta_1_cedu_da_anos_1} ${group_zq5vu76} ${group_bt0wi89_bicicleta_1_t3_da_anos} ${group_bt0wi89_correr_1_t3_da_anos} ${group_bt0wi89_caminar_1_t3_da_meses} ${group_bt0wi89_caminar_1_t3_da_dur} ${group_bt0wi89_caminar_1_t3_da_dias_sem} ${group_of5ws70_bicicleta_1_t2_da_meses} ${group_of5ws70_bicicleta_1_t2_da_dur} ${group_of5ws70_bicicleta_1_t2_da_dias_sem} ${group_of5ws70_monopatin_1_t2_da_anos} ${group_hh2iq33} ${AFD3_frec} ${AFD3_anos} ${AFD3_dur} ${AFD3_nombre} ${AFD3_int} ${group_hz6cs99_correr_1_cedu_da_meses} ${group_hz6cs99_correr_1_cedu_da_dur} ${group_hz6cs99_correr_1_cedu_da_dias_sem} ${AFD1_nombre_otro} ${group_bt0wi89_correr_1_t3_da_dias_sem} ${group_bt0wi89_correr_1_t3_da_dur} ${group_bt0wi89_correr_1_t3_da_meses} ${t3_dur} ${t3_des} ${ACTIVIDAD_FISICA_EN_ER_PUESTO_DE_TRABAJO_001} ${t3_da} ${t3_anos} ${t3_gprof} ${t3_int} ${group_of5ws70_caminar_1_t2_da_anos} ${group_bt0wi89_bicicleta_1_t3_da_meses} ${group_bt0wi89_bicicleta_1_t3_da_dias_sem} ${group_bt0wi89_bicicleta_1_t3_da_dur} ${group_of5ws70_patines_1_t2_da_dur} ${group_of5ws70_patines_1_t2_da_meses} ${group_of5ws70_patines_1_t2_da_dias_sem} ${group_bt0wi89_monopatin_1_t3_da_meses} ${group_bt0wi89_monopatin_1_t3_da_dias_sem} ${group_bt0wi89_monopatin_1_t3_da_dur} ${group_hz6cs99_otro_1_cedu_da_anos_1} ${group_re9ta96_bicicleta_1_t1_da_dias_sem} ${group_re9ta96_bicicleta_1_t1_da_dur} ${group_re9ta96_bicicleta_1_t1_da_meses} ${group_hz6cs99_bicicleta_1_cedu_da_dias_sem} ${group_hz6cs99_bicicleta_1_cedu_da_meses} ${group_hz6cs99_bicicleta_1_cedu_da_dur} ${AFD1_anos} ${AFD1_dur} ${AFD1_int} ${AFD1_nombre} ${AFD1_frec} ${AFD2_booleano} ${Ahora_tenemos_inter_s_en_conoc} ${AFD2_anos} ${AFD2_nombre} ${AFD2_int} ${AFD2_dur} ${AFD3_booleano} ${AFD2_frec} ${group_hz6cs99_monopatin_1_cedu_da_dur} ${group_hz6cs99_monopatin_1_cedu_da_dias_sem} ${group_hz6cs99_monopatin_1_cedu_da_meses} ${Por_favor_especifiq_esplazamiento_activo_003} ${group_bt0wi89_monopatin_1_t3_da_anos} ${group_of5ws70_otro_1_t2_da_anos} ${group_cv7dx54} ${_7_Indique_la_frecuencia_con_la} ${group_of5ws70_caminar_1_t2_da_dias_sem} ${group_of5ws70_caminar_1_t2_da_dur} ${group_of5ws70_caminar_1_t2_da_meses} ${group_bt0wi89_otro_1_t3_da_dias_sem} ${group_bt0wi89_otro_1_t3_da_dur} ${group_bt0wi89_otro_1_t3_da_meses} ${group_hz6cs99_caminar_1_cedu_da_anos_1} ${t2_anos} ${t2_dur} ${t2_des} ${t3_booleano} ${t2_da} ${t2_int} ${t2_gprof} ${ACTIVIDAD_FISICA_EN_DO_PUESTO_DE_TRABAJO} ${group_of5ws70_correr_1_t2_da_anos} ${group_re9ta96_otro_1_t1_da_anos} ${group_re9ta96_correr_1_t1_da_anos} ${group_hz6cs99_otro_1_cedu_da_meses} ${group_hz6cs99_otro_1_cedu_da_dias_sem} ${group_hz6cs99_otro_1_cedu_da_dur} ${group_re9ta96_caminar_1_t1_da_anos} ${group_co07o33} ${_3_Indique_la_frecuen_esplazamiento_activo} ${_7_Indique_la_frecuencia_con_la_001} ${group_kz5kd00} ${Por_favor_especifiq_esplazamiento_activo} ${AFIA_frec} ${AFIA_anos} ${Ahora_estamos_intere_del_horario_escolar} ${group_bt0wi89_caminar_1_t3_da_anos} ${group_hz6cs99_correr_1_cedu_da_anos_1} ${group_hz6cs99_caminar_1_cedu_da_dias_sem} ${group_hz6cs99_caminar_1_cedu_da_meses} ${group_hz6cs99_caminar_1_cedu_da_dur} The following files failed validation: ${CUESTIONARIO_FINAL}.xml Result: Invalid

[row : 17] Group has no label: {‘name’: ‘group_rs1tc30’, ‘type’: ‘begin_group’}

[row : 18] Group has no label: {‘name’: ‘group_re9ta96_header’, ‘type’: ‘begin_group’}

[row : 25] Group has no label: {‘name’: ‘group_re9ta96_caminar_1’, ‘type’: ‘begin_group’}

[row : 32] Group has no label: {‘name’: ‘group_re9ta96_bicicleta_1’, ‘type’: ‘begin_group’}

[row : 39] Group has no label: {‘name’: ‘group_re9ta96_patines_1’, ‘type’: ‘begin_group’}

[row : 46] Group has no label: {‘name’: ‘group_re9ta96_correr_1’, ‘type’: ‘begin_group’}

[row : 53] Group has no label: {‘name’: ‘group_re9ta96_monopatin_1’, ‘type’: ‘begin_group’}

[row : 60] Group has no label: {‘name’: ‘group_re9ta96_otro_1’, ‘type’: ‘begin_group’}

[row : 78] Group has no label: {‘name’: ‘group_kz5kd00’, ‘type’: ‘begin_group’}

[row : 79] Group has no label: {‘name’: ‘group_of5ws70_header’, ‘type’: ‘begin_group’}

[row : 86] Group has no label: {‘name’: ‘group_of5ws70_caminar_1’, ‘type’: ‘begin_group’}

[row : 93] Group has no label: {‘name’: ‘group_of5ws70_bicicleta_1’, ‘type’: ‘begin_group’}

[row : 100] Group has no label: {‘name’: ‘group_of5ws70_patines_1’, ‘type’: ‘begin_group’}

[row : 107] Group has no label: {‘name’: ‘group_of5ws70_correr_1’, ‘type’: ‘begin_group’}

[row : 114] Group has no label: {‘name’: ‘group_of5ws70_monopatin_1’, ‘type’: ‘begin_group’}

[row : 121] Group has no label: {‘name’: ‘group_of5ws70_otro_1’, ‘type’: ‘begin_group’}

[row : 139] Group has no label: {‘name’: ‘group_cv7dx54’, ‘type’: ‘begin_group’}

[row : 140] Group has no label: {‘name’: ‘group_bt0wi89_header’, ‘type’: ‘begin_group’}

[row : 147] Group has no label: {‘name’: ‘group_bt0wi89_caminar_1’, ‘type’: ‘begin_group’}

[row : 154] Group has no label: {‘name’: ‘group_bt0wi89_bicicleta_1’, ‘type’: ‘begin_group’}

[row : 161] Group has no label: {‘name’: ‘group_bt0wi89_patines_1’, ‘type’: ‘begin_group’}

[row : 168] Group has no label: {‘name’: ‘group_bt0wi89_correr_1’, ‘type’: ‘begin_group’}

[row : 175] Group has no label: {‘name’: ‘group_bt0wi89_monopatin_1’, ‘type’: ‘begin_group’}

[row : 182] Group has no label: {‘name’: ‘group_bt0wi89_otro_1’, ‘type’: ‘begin_group’}

[row : 227] Group has no label: {‘name’: ‘group_co07o33’, ‘type’: ‘begin_group’}

[row : 228] Group has no label: {‘name’: ‘group_hz6cs99_header’, ‘type’: ‘begin_group’}

[row : 235] Group has no label: {‘name’: ‘group_hz6cs99_caminar_1’, ‘type’: ‘begin_group’}

[row : 242] Group has no label: {‘name’: ‘group_hz6cs99_bicicleta_1’, ‘type’: ‘begin_group’}

[row : 249] Group has no label: {‘name’: ‘group_hz6cs99_patines_1’, ‘type’: ‘begin_group’}

[row : 256] Group has no label: {‘name’: ‘group_hz6cs99_correr_1’, ‘type’: ‘begin_group’}

[row : 263] Group has no label: {‘name’: ‘group_hz6cs99_monopatin_1’, ‘type’: ‘begin_group’}

[row : 270] Group has no label: {‘name’: ‘group_hz6cs99_otro_1’, ‘type’: ‘begin_group’}

Hope you can help!

As the error msg marks, you have reference cycles in some relevant and calculation expressions.

That means you use a reference to the variable itself or you reference a second variable which is referencing the first variable.

It seems that you use a similar self-referencing expression at many place. So you be able to locate it by comparing some places.
nYou cold create a copy/clone of your XLSForm and reduce it, inclufing only the first line related to the error msg and continue checks with the online validators.

Don’t worry about the warnings for missing group names. This is often wanted in form design to avoid showing a name as group title.

1 Like

no errors.xlsx (16.0 KB)

I have simplified the XLSForm, but still cant figure out how to solve the error. I have attached the XLSForm in case it helps.

Here is the error:

Error: ODK Validate Errors:

XForm is invalid. See above for the errors.
: Cycle detected in form’s relevant and calculation logic!
The following nodes are likely involved in the loop:
${group_re9ta96_caminar_1_t1_da_anos}
${group_re9ta96_bicicleta_1_t1_da_anos}
${group_re9ta96_bicicleta_1_t1_da_dias_sem}
${group_re9ta96_bicicleta_1_t1_da_dur}
${group_re9ta96_bicicleta_1_t1_da_meses}
${group_re9ta96_caminar_1_t1_da_meses}
${group_re9ta96_caminar_1_t1_da_dias_sem}
${group_re9ta96_caminar_1_t1_da_dur}
${group_rs1tc30}
${_7_Indique_la_frecuen_esplazamiento_activo}

The following files failed validation:
${no} errors.xml

Result: Invalid

I have just figured out that the problem resides in the ‘required’ column, where a loop references back the same variables. However, I don’t really know how to solve the error and keep the same functionality.

1 Like

Cycle references are not possible.
Could you exactly explain your requirement, please?

1 Like

As you can see in

,
when question 6 is answered ‘Sí’, all variables in the first column of the matrix question are required. However, when an answer is entered in any of this variables, only that one becomes required. .
This way we require the person to answer their chosen variable, instead of skipping to the next question.

I hope it is easy to understand.

I am attaching the XLSForm in the case is of any help.
file_error.xlsx (16.5 KB)

@coral_sanchez, I don’t see any issues loading your XLSForm:

I deleted the part that creates the error. Here is the XLS Form with the error:
aQ67u9EdN2GrHdFugtQ5i6.xlsx (16.6 KB)

As described in the thread, the loop error is in the ‘required’ column in the matrix question variables.

@coral_sanchez, did you validate your XLSForm through this online validator to see if you can capture any syntax issues?

@Kal_Lam Yes I did, it is in the start of this thread. To make it easier, here is the syntax errors for the last excel file I uploded (a simplified version).
Error: ODK Validate Errors:

XForm is invalid. See above for the errors.
: Cycle detected in form’s relevant and calculation logic!
The following nodes are likely involved in the loop:
${group_re9ta96_otro_1_t1_da_anos}
${group_re9ta96_correr_1_t1_da_anos}
${group_re9ta96_caminar_1_t1_da_anos}
${group_rs1tc30}
${_7_Indique_la_frecuen_esplazamiento_activo}
${group_re9ta96_monopatin_1_t1_da_dias_sem}
${group_re9ta96_monopatin_1_t1_da_meses}
${group_re9ta96_monopatin_1_t1_da_dur}
${group_re9ta96_bicicleta_1_t1_da_dias_sem}
${group_re9ta96_bicicleta_1_t1_da_dur}
${group_re9ta96_bicicleta_1_t1_da_meses}
${group_re9ta96_patines_1_t1_da_dias_sem}
${group_re9ta96_patines_1_t1_da_meses}
${group_re9ta96_patines_1_t1_da_dur}
${group_re9ta96_monopatin_1_t1_da_anos}
${group_re9ta96_otro_1_t1_da_dur}
${group_re9ta96_otro_1_t1_da_dias_sem}
${group_re9ta96_otro_1_t1_da_meses}
${group_re9ta96_bicicleta_1_t1_da_anos}
${group_re9ta96_patines_1_t1_da_anos}
${group_re9ta96_correr_1_t1_da_dias_sem}
${group_re9ta96_correr_1_t1_da_dur}
${group_re9ta96_correr_1_t1_da_meses}
${group_re9ta96_caminar_1_t1_da_meses}
${group_re9ta96_caminar_1_t1_da_dias_sem}
${group_re9ta96_caminar_1_t1_da_dur}

The following files failed validation:
${aQ67u9EdN2GrHdFugtQ5i6} (1).xml

Result: Invalid

@coral_sanchez, maybe it could be because of the expression you have used in e27, e34, e41, e48, and e55, as shown in the image below:

Maybe try reviewing it.

Deleting that actually worked!! Thanks a million.