Erro: java.lang.string cannot be cast to java.lang.integer

I am obtaining the following error “java.lang.string cannot be cast to java.lang.integer” after scanning the codes using the android app. However, if I use the online version and I write the codes this error does not appear.

Welcome back to the community, @Mj_92! Just curious to know if you have validated your XLSForm through this online validator to see if there should be any syntax issues within your form.

I found that the problem was in the “repeat_count”. I put in it a variable ${nbr} and this worked fine on the desktop online version. However, for the android app I should use int(${nbr}) to make it work.

1 Like

@Mj_92, thank you for sharing the solution with the entire community! :clap: :heart: :partying_face: