Please note, your new form still has duplicate names also…
As it happens, Kobo will silently(!) rename these when you upload your form, but this really isn’t behavior you should rely upon (and it will cause form validation tools- like XLSForm Online - to fail). Please make sure to use unique names for all your questions, including notes.
But going back to your original question…
The validation error you are getting appears to be a result of pyxform performing a specific check for geopoint controls in particular. In your case, you are performing a calculated geopoint, and pyxform is checking whether the result of your calculation is going to be of the right type. However, it only performs this static validation check once, when you deploy the form, and using the initial default form values only (and AFAIK not actually pulling any data!). So this results in a false-negative validation error, because it cannot determine whether the value that is (eventually…) going to be pulled in as a result of performing the pulldata()
calculation will match a geopoint string.
But you can trick it by making sure the this pulldata()
calculation is not run during this initial pre-deployment validation step, by making it conditional on having a valid id number to lookup (which only gets entered when you actually fill in the form; initially id_participante will be null).
if(${id_participante}!='', pulldata(‘censoOrd’,‘DireccionResidencia’,‘IDParticipante’,${id_participante}), '')
Borrador - Formulario de Censo de Participantes - HUB Edutech.xlsx (130.8 KB)
(I also fixed your duplicate names while i was at it…)
If you do this, your form should now deploy without any error, and it appears to work as you intend, correctly pulling in a geopoint location if I enter a recognized id from your sample csv dataset:
I’ve tested this only against Enketo; I dont know if or how well your form will work against KoboCollect so YMMV…
[Aside, this is a similar false-negative validation error - along with a similar workaround - to what I described recently here]
All that aside, again, if you are seeing any problems with your form(s), please make sure your raw data is correctly populated and formatted, and I recommend running your form thru the XLSForm Online validator and fixing any errors it reports before proceeding.