-
Notifications
You must be signed in to change notification settings - Fork 0
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
Import of CSV-columns with hyphens (-) fail #38
Comments
Not sure which one of you to assign this to, Please remove yourself if you think you're the wrong person :) (I don't think Kristoffer fixed it, but if so: Just close the issue?) |
The file
And the string is parsed with
So there is no support for variable names with '-'. I think a better design is to store this as a complex type, such as json, that handles escaping of strings, |
@AnneAbelseth As a short term solution to this bug, we recommend that hyphens (-) are not used in the column names. The long term solution is to rewrite the data to use a complex type instead of string. |
I have implemented a short term solution to the problem; I added a label informing the user not to use hyphens (-) in the column values when uploading the XML/CSV document. The implementation will be code reviewed, I'll let you know once it has been merged to the main branch. |
Here a the relevant table excerpt for this problem:
|
Added the short solution (label) to the main branch (merged). |
We store the colunm mappings in the DB as shown below
![image](https://user-images.githubusercontent.com/328994/212132289-c3c50ca2-eb6e-4c9e-afb4-5e7bd7235897.png)
This causes import of data with hyphens in their name, e.g.
my-column
The text was updated successfully, but these errors were encountered: