# ODK error message

**URL:** <https://forum.getodk.org/t/odk-error-message/26561>\
**Category:** Support\
**Created:** [May 19, 2020, 7:05am UTC](https://forum.getodk.org/t/odk-error-message/26561 "2020-05-19T07:05:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 7:05am UTC](https://forum.getodk.org/t/odk-error-message/26561/1 "2020-05-19T07:05:10Z")

</div>

**1. I get error note when trying to reach Form in ODK. Form is working properly on desktop.**

**2. Android, Samsung A70.**

**3. I haven't tried anything, I don't know what should I fix, probably in code**

**4. Please review a error message and form code**

**5. Error message and form attached[Competitivenes Reinforcement Initiative - JORDAN - v2.0.xlsx](https://forum.getodk.org/uploads/short-url/v5xSDzC9Nh1b9C8n1OdWUOEpaPY.xlsx) (28.0 KB)**

 ![Screenshot_20200514-191451_ODK Collect](https://getodk.b-cdn.net/uploads/default/original/2X/e/efc8c3e35712a523c0507becafe9acd388598d50.jpeg) **.**

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 19, 2020, 7:29am UTC](https://forum.getodk.org/t/odk-error-message/26561/2 "2020-05-19T07:29:57Z")

</div>

Good Morning Igor and welcome to the ODK community forum.

I get a lot of error from [xlsform online](https://getodk.org/xlsform/) when trying to transform your form to xml. How did you git the xml version of your form ?

A lot of item have the same name.  
Maybe you could try to create a repeat for the 35 crop you want to describe for each plot location. It will be easier to manage the form (ex. add a new crop, name 30 item with different names) and will make data analysis easier too.  
So for the moment it is impossible to reproduce the error you get.

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 19, 2020, 7:34am UTC](https://forum.getodk.org/t/odk-error-message/26561/3 "2020-05-19T07:34:09Z")

</div>

I read on your introduction that you are running Kobo so my warnings are maybe not relevant... but I don't know kobo.  
Let's get other advices 😉

---

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 7:49am UTC](https://forum.getodk.org/t/odk-error-message/26561/4 "2020-05-19T07:49:50Z")

</div>

Hello Mathieu,

that was very fast and helpful. But unfortunately I'm not an expert in coding (still can't believe I did this form that works at all). So let me clarify, you suggest to erase choose\_many option in crop question and to have only integer question, and than repeat question for every inserted crop with following questions?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 7:50am UTC](https://forum.getodk.org/t/odk-error-message/26561/5 "2020-05-19T07:50:24Z")

</div>

Isn't that the same? KoBoToolbox and ODK?

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 19, 2020, 8:15am UTC](https://forum.getodk.org/t/odk-error-message/26561/6 "2020-05-19T08:15:46Z")

</div>

Here a simplification of your form, as a test, not the truth 🙂 But with this repeat over crop list you will have to manage only one name for each item.  
I had to rename 2 "function" elements. Elements can't share a same name because ODK will not be able to know which one you refer to when using ${function} . I create firm\_function and gvt\_function.  
Repeat description over crop list will.  
[Competitivenes Reinforcement Initiative - JORDAN - v2.0.xlsx](https://forum.getodk.org/uploads/short-url/hyzHrOJmZpvSzxgw4IDadQUUdSh.xlsx) (17.0 KB)  
Your form is very inspiring for a project we have here in south France with wine growers and other farmers 🙂

---

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 9:38am UTC](https://forum.getodk.org/t/odk-error-message/26561/7 "2020-05-19T09:38:33Z")

</div>

Again, thanks a lot. Looks like you know what you are talking about, but still..now I have option to pick only one crop per plot, and additional questions doesn't appear after I select crop but rather they are there immediately (that could confuse person which populate date).

---

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 10:04am UTC](https://forum.getodk.org/t/odk-error-message/26561/8 "2020-05-19T10:04:19Z")

</div>

And yes...thanks for that function correction, I haven't realized I had two same names.

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 19, 2020, 11:24am UTC](https://forum.getodk.org/t/odk-error-message/26561/9 "2020-05-19T11:24:49Z")

</div>

I understand.  
You have another option to loop inside the crop repeat until the user select "no more crop" :

> [@XLS form- Repeat select\_one question until "A" is selected](https://forum.getodk.org/t/xls-form-repeat-select-one-question-until-a-is-selected/15318/18):
>
> It should be something like if (${count} = 0 or (/indefinite-repeat/person[position()=${count}]/choice != 'a' and /indefinite-repeat/person[position()=${count}]/age \>= 50), ${count} + 1, ${count}) We're defining a continuing condition so we need to reverse your ending condition. You want to end when "a" is selected or age \< 50 so the negation is to continue as long as "a" is not selected AND age is greater than or equal to 50. If you want to know more about why the or becomes an and, …

Maybe first start with your version and upgrade the form if needed later.  
Start with your version, You will be able o upgrade it.

---

<div class="post-metadata">

**Author:** ![imatanovic](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/imatanovic/32/11397_2.png) [@imatanovic](https://forum.getodk.org/u/imatanovic)\
**Post date:** [May 19, 2020, 11:59am UTC](https://forum.getodk.org/t/odk-error-message/26561/10 "2020-05-19T11:59:25Z")

</div>

I-m sorry, but I don't understand that.

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 19, 2020, 12:55pm UTC](https://forum.getodk.org/t/odk-error-message/26561/11 "2020-05-19T12:55:04Z")

</div>

Sorry if I introduced some confusion. The post is a bit tricky if you start using xlsform. Instead of asking the user if he want to describe a new crop, the crop list (select\_one) appears again and again until the user "say stop". It make use of a test in the repeat\_count column.

Once again you can start with all the crops already visible in the form. And upgrade the form later if needed.
