-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Form preview fails with error argument of type 'int' is not iterable
#2057
Comments
@noliveleger, here's an example of how trying to handle exceptions gracefully can make debugging much harder: Lines 885 to 901 in 550dc43
If the exception weren't caught, we'd get a stack trace with local variables in Sentry. Instead, we get I think this is basically the same situation as #1705, but we'll have to figure out whether some of the exceptions that could be raised here have to do with user error, e.g. invalid XLSForms. For now, I'll try calling |
Related to the Pyxform upgrade (specifically https://github.com/XLSForm/pyxform/pull/118/files#diff-b29aeb282b118614b8333cdfc19f700dR76):
|
{u'$autovalue': u'option_1',
u'$kuid': u'sqUjrGI0R',
u'label': u'Option 1',
u'list_name': u'wj5sl24',
u'name': u'option_1',
u'order': 0} |
Why does it work when exporting the form as XLS and re-importing? The
...the resulting JSON in KPI is: {
"$autovalue": "1",
"name": "1",
"label": [
"Option 1"
],
"$kuid": "zIM7x1gzk",
"list_name": "rx3hr66",
"order": "1"
} |
Since @tinok reports this form was created entirely in the form builder, I was curious as to how the {
"$autovalue": "option_1",
"name": "option_1",
"label": [
"Option 1"
],
"$kuid": "sqUjrGI0R",
"list_name": "wj5sl24",
"order": 0
}, ...but not others: {
"$autovalue": "option_1",
"list_name": "aa9wy77",
"$kuid": "iug7hoytZ",
"name": "option_1",
"label": [
"Option 1"
]
}, It seems that the form builder adds |
PR'd a fix to Pyxform for this XLSForm/pyxform#237 |
…-with-integer-choice-order Upgrade formpack to fix #2057
…-fails-with-integer-choice-order Work around XLSForm/pyxform#236 by converting
Description
When previewing specific form, preview fails to load (
argument of type 'int' is not iterable
).Steps to Reproduce
Expected behavior
Form previews
Actual behavior
Form preview fails. Error:
Additional details
When exporting the XLS and importing as new project, the form preview succeeds somehow.
The text was updated successfully, but these errors were encountered: