# "error":"'NoneType' object is not iterable","warnings":null error during Form Validation on ODK Central

**URL:** <https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218>\
**Category:** Support\
**Tags:** odk-central, odk-xlsform\
**Created:** [August 11, 2025, 6:08pm UTC](https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218 "2025-08-11T18:08:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Depke](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tyler_depke/32/17598_2.png) [@Tyler\_Depke](https://forum.getodk.org/u/Tyler_Depke)\
**Post date:** [August 11, 2025, 6:08pm UTC](https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218/1 "2025-08-11T18:08:21Z")

</div>

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

I’m creating a form from scratch and trying to upload to ODK Central. Upon upload of my XLSX both using the web interface and using the API to connect to a google sheet, I’m getting the following error during form validation:

`Error: API failure (400): {"message":"The given XLSForm file was not valid. Please see the error details for more information.","code":400.15,"details":{"error":"'NoneType' object is not iterable","warnings":null}}`

I’m not sure where to look for errors. Has anyone gotten this error before?

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

See the attached Google Sheet or XLSX file and try to upload it to a project in ODK Central.

[🥑Avocado\_IPGRI\_bad.xlsx|attachment](https://forum.getodk.org/uploads/short-url/60zL1s2qqucx5tVPVAGtO5sG517.xlsx) (92.5 KB)

Here is a more minimal google sheet with many of the columns deleted and still the same error:

> **[🥑Avocado\_IPGRI](https://docs.google.com/spreadsheets/d/10rHO18XXb2J5j6JE5iQ3IUWEXEAd0IfDhDeB239k2b4/edit?gid=811615218#gid=811615218)**
>
> This Sheet is private

**3. What have you tried to fix the issue?**  
Since I have a bunch of empty columns, I tried deleting all columns except the first 3 in both the choices and survey sheet, but that gave me an error that my calculations were null. Upon deleting all the calculate rows, I end up getting the same error again. I’m thinking there is a row that doesn’t have a value in it that needs one, but I cannot find it. I’ve never seen this error message before and it isn’t specific enough to help me find where the problem(s) is/are.

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

> **[PUBLIC 🥑Avocado\_IPGRI](https://docs.google.com/spreadsheets/d/1rDSj09rqw1PwG0Ad-567wi_2jNyPmTEMjZ5IGF7mz6I/edit?usp=sharing)**
>
> This Sheet is private

Minimal w deleted columns below:

> **[🥑Avocado\_IPGRI](https://docs.google.com/spreadsheets/d/10rHO18XXb2J5j6JE5iQ3IUWEXEAd0IfDhDeB239k2b4/edit?gid=811615218#gid=811615218)**
>
> This Sheet is private

---

<div class="post-metadata">

**Author:** ![ahblake](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ahblake/32/22392_2.png) [@ahblake](https://forum.getodk.org/u/ahblake)\
**Post date:** [August 11, 2025, 10:59pm UTC](https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218/2 "2025-08-11T22:59:36Z")

</div>

I looked at your form and the group structure seemed unusual, but there was the correct number of begin/ends so was possibly ok, so I tried

- removing emoji from filename
- removing emoji from form\_id
- removing choice item r\_19 which had no list name or label
- renaming choice sheet column `list name` to `list_name`
- adding `form_title` to settings
- asking kapa
- realised that I should go back to basics and simply googled the error and... [tada](https://community.kobotoolbox.org/t/i-got-this-nonetype-error-on-a-form-developed-in-xlsform-and-uploaded-into-kobotoolbox/64810)
  - **"The cause of the error was an ‘empty’ group. There was no survey element in a ‘begin\_group/end\_group’ section."**
  - added a note inside `g_4` 🎊
  - 

> begin group g\_4 Multiplication/Regeneration descriptors  
> note g\_4\_1 now it uploads!  
> end group

  - The original minimal version also uploads with this _one weird trick_, skipping all the first attempts

---

<div class="post-metadata">

**Author:** ![Tyler\_Depke](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tyler_depke/32/17598_2.png) [@Tyler\_Depke](https://forum.getodk.org/u/Tyler_Depke)\
**Post date:** [August 12, 2025, 11:06am UTC](https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218/3 "2025-08-12T11:06:11Z")

</div>

Looks like that did it! I’ve been surprised how few errors I’ve encountered as I continue to use emojis. I’ve been defaulting to ChatGPT for errors like this for a number of reasons, one of which is bandwidth/internet quality as ChatGPT actually does fairly well compared to search engines when internet isn’t great. Looks like that was a bad decision here.

For the ODK team, I don’t know how general this particular error message is, but 90% of the errors I encounter have a row number or a variable name so it’s easy to find where the issues are. If it’s not too difficult to modify this error message to include variable name that would be super helpful.

---

<div class="post-metadata">

**Author:** ![Lindsay\_Stevens\_Au](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/e8c25b/32.png) [@Lindsay\_Stevens\_Au](https://forum.getodk.org/u/Lindsay_Stevens_Au)\
**Post date:** [August 12, 2025, 2:20pm UTC](https://forum.getodk.org/t/error-nonetype-object-is-not-iterable-warnings-null-error-during-form-validation-on-odk-central/56218/4 "2025-08-12T14:20:42Z")

</div>

Sorry for the confusion! This issue is on the list here: [https://github.com/XLSForm/pyxform/issues/754](https://github.com/XLSForm/pyxform/issues/754) It can be triggered by empty groups or groups containing no visible items. It’s unclear why this is a problem exactly but at least the error message can be more helpful than it is right now.
