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

Field names starting with underscores are ignored during CSV import #2582

Closed
kelvin-muchiri opened this issue Apr 9, 2024 · 0 comments
Closed
Assignees
Labels

Comments

@kelvin-muchiri
Copy link
Contributor

Environmental Information

  • Onadata version: v3.18.2

Problem description

During a CSV import, any field name starting with an underscore e.g _name is ignored during CSV import.

Expected behavior

Field names starting with an underscore should not be ignored during CSV import and data should be available for those fields

Steps to reproduce the behavior

  1. Create a form that has field names starting with underscores.
  2. Make submissions to the form
  3. Export the submissions into a CSV and edit the submissions.
  4. Import the CSV edited in the previous step. You will notice the fields whose names starts with an underscore will have no values

Additional Information

It's valid for field names to start with an underscore as per the xlsform.org documentation but unfortunately, when parsing the CSV for import, we make the assumption that any field starting with an underscore is a metadata field and ignore them

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

2 participants