Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "argument of type 'NoneType' is not iterable" when trying to preview forms #2175

Open
mdestaubin opened this issue Jan 28, 2019 · 2 comments
Assignees
Labels

Comments

@mdestaubin
Copy link
Contributor

Description

Receiving the error message "argument of type 'NoneType' is not iterable" when trying to preview an uploaded form with mismatched label columns in the survey and choices tab.

Example: label vs label:: English (en).

Steps to Reproduce

  1. Upload this sample form as new project - sampleform.xlsx
  2. Click on the preview form icon

Expected behavior

There should be a preview of the form shown

Actual behavior

All that is shown is the error message: "argument of type 'NoneType' is not iterable"

Additional details

The form preview works if both columns say either label or label::English (en). It's only when they're mismatched that the error occurs.

@tinok
Copy link
Member

tinok commented Feb 11, 2019

It seems it can also happen if there are unlabeled language columns (label or hint) in the form. E.g.

image

This form has matching label languages but fails with the same error. Hopefully this helps to debug the error.

@joshuaberetta
Copy link
Member

Seems like this was possibly related to Enketo and is no longer an issue — one can preview and deploy without error. The form-builder does however complain:

Perhaps there should be some feedback outside of the form-builder or even fail to deploy if this is the case? Exports do seem to work fine though, even with the mismatched translation in the OP xlsform.

cc. @jnm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants