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

Whitespaces in CSV headers result in node for itemset doesn't exist error #665

Open
yanokwa opened this issue Apr 4, 2022 · 1 comment

Comments

@yanokwa
Copy link
Member

yanokwa commented Apr 4, 2022

If you have a select_one_from_file data.csv question in a form and the attached data.csv has a name header with a trailing space, Collect will fail (and Enketo will succeed).

Good: list_name,name,label
Bad: `list_name,name ,label

Screen Shot 2022-04-04 at 14 17 04

We should probably do as Enketo does and remove all whitespaces from names. We should also see if Enketo trims values as well and consider standardizing on that behavior.

@lognaturel
Copy link
Member

It looks like JR trims whitespace for XML values but not CSV values: https://forum.getodk.org/t/unable-to-see-data-entered-while-editing-a-record/42286

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

No branches or pull requests

2 participants