# Bug ‘textContent’ Enketo

**URL:** <https://forum.getodk.org/t/bug-textcontent-enketo/43300>\
**Category:** Support\
**Tags:** enketo, form-design\
**Created:** [October 3, 2023, 9:16am UTC](https://forum.getodk.org/t/bug-textcontent-enketo/43300 "2023-10-03T09:16:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis-rodx](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/luis-rodx/32/22743_2.png) [@luis-rodx](https://forum.getodk.org/u/luis-rodx)\
**Post date:** [October 3, 2023, 9:16am UTC](https://forum.getodk.org/t/bug-textcontent-enketo/43300/1 "2023-10-03T09:16:22Z")

</div>

Hi all!

I’m having a problem with a survey in Enketo and I really can’t find the logic why it might be happening. I think it’s a bug.

**1. What is the issue? Please be detailed.**

I get the following ‘textContent’ error when opening the survey in Enketo:

![image](https://getodk.b-cdn.net/uploads/default/original/3X/c/d/cd60e34748ebe11a0a7734a22a705e3f276f1126.png)

The same xls in the mobile app opens, with all the features and submissions working as expected.

The question that is causing the problem is a select\_one\_from\_file [finename].csv, and the use of the ‘autocomplete’ feature and of the number of groups inside a repeat group seem both relevant.

**2. What steps can we take to reproduce this issue?**

Let's call 'Scenario 1' the scenario that reproduces the issue:

- Repeat Group that contains two normal groups;
- The relevant ‘select\_one\_from\_file [finename].csv’ question is inside 2nd group;
- ‘autocomplete’ appearance is on;
- RESULT: produces the bug

**3. What have you tried to fix the issue?**

Let's call 'Scenario 2' and Scenario 3' the scenarios that fix the issue by changing the use of some features (but the solution does not fit me since, unfortunately, I really need 'Scenario 1' to work in Enketo and not only in the app):

Scenario 2:

- Repeat Group that contains two normal groups;
- The relevant ‘select\_one\_from\_file [finename].csv’ question is inside 2nd group;
- ‘autocomplete’ appearance is not added;
- RESULT: does not produce the bug

Scenario 3

- Repeat Group now contains only the 2nd group of previous questions;
- The relevant ‘select\_one\_from\_file [finename].csv’ question is inside this group;
- ‘autocomplete’ appearance is on;
- RESULT: does not produce the bug

I've also tried creating new csvs, changing the csv type, etc. but nothing worked.

**4. Upload any forms or screenshots you can share publicly below.**

To protect my client’s details, I’m attaching the XLS files of the different scenarios with only the questions that seem to be causing the problem. I am also attaching the csv files with dummy data:

[salespersons.csv](https://forum.getodk.org/uploads/short-url/uMHXUqG795U0bphJ6EaN7HvVjIa.csv) (286 Bytes)  
[scenario 1 - error happens.xlsx](https://forum.getodk.org/uploads/short-url/64KBBtgx07mKJyXTHaW01vGP5Gk.xlsx) (16.1 KB)  
[scenario 2 - no autocomplete, no error.xlsx](https://forum.getodk.org/uploads/short-url/isyzfpP3WJ4rQkCkep0kBjzdM9y.xlsx) (16.1 KB)  
[scenario 3 - 1 group, no error.xlsx](https://forum.getodk.org/uploads/short-url/drHYUYXdMqgIEsM8xMh2N0O9sDF.xlsx) (15.9 KB)  
[test.csv](https://forum.getodk.org/uploads/short-url/5aG2FuYFakZK4xhk4z59UAhrTH1.csv) (151 Bytes)

Can anyone please help me with this problem? It’s a long post, but I’ve just tried to be as detailed as possible

Thank you in advance! Any help is really appreciated!

Kind regards,  
Luis

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [October 3, 2023, 3:47pm UTC](https://forum.getodk.org/t/bug-textcontent-enketo/43300/2 "2023-10-03T15:47:48Z")

</div>

Thanks so much for the very detailed report, this kind of information can really help with troubleshooting.

In this case, I can't reproduce on Central v2023.4.0 with Enketo 6.2.2 and I believe it was fixed by [https://github.com/enketo/enketo-core/pull/995](https://github.com/enketo/enketo-core/pull/995). Hopefully you're able to upgrade and that will work for your full form!

---

<div class="post-metadata">

**Author:** ![luis-rodx](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/luis-rodx/32/22743_2.png) [@luis-rodx](https://forum.getodk.org/u/luis-rodx)\
**Post date:** [October 4, 2023, 8:11am UTC](https://forum.getodk.org/t/bug-textcontent-enketo/43300/3 "2023-10-04T08:11:45Z")

</div>

Thank you LN, that must be it! ☺
