Hello
The error is that of the object, with $ {data}
There is no deploy-error, and in fact I can use it very well in enketo web, but I would also like to use it in kobo-collect, to be able to insert the map offline
and kobo-collect fails to load the form
probably due to this error.
But the formula
which works in enketo web
it refers to a single element (I have just registered, although I have been consulting the forum for some time, and I still do not have permission to upload files; eventually I can make you a link to a cloud)
${data} is a datetime
Welcome to the community, @bonushenricus! My advise here would be that you check it manually to see which expressions is not working. For this you will have to keep the question and the expression (in your xlsform) that is not working and check to see if the same is an issue. Once this is cleared, you will need to move on with other issues which could be an issue. You will need to repeat this until you find the issue. Once you find the issue, you could then share the issue with the community. This should save the communities time and it would also be a learning for you (where you would learn which expression is not working and why).
If I change the name of the field from “data” to “giorno_ora” and obviously I also change it in the formula, there are no more problems with kobocollect and odkvalidate.
So it means that in odk and not in enketo, “data” is a variable already used, so an element of the survey cannot be called “data”
@wroos, we will have to check it out. Maybe we could do this once @bonushenricus confirms the same and shares with us the xlsform for testing that has this issue.
The error is that of the object, with $ {data}. and there is no name with the data and which I assume it’s a date. So I added the label name date in the beginning. Please do refer to the excel with highlighted.
Thank you.
The name {data} is also in your revision, then you haven’t used it in a formula and so it seems all right, but it’s not okay, because if I wanted to use it it wouldn’t be possible.
I believe we now know that {data} should not be used as a formula field name
I edited all 42 submissions by re-entering the datetime value in a new field with a different name.
And then I redeployed the xlsx form without the {data} field anymore. I hope this post will serve others to avoid this undocumented detail