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

Problem when importing a CSV file as source schema #1268

Open
blitzfrayret opened this issue Oct 16, 2024 · 4 comments
Open

Problem when importing a CSV file as source schema #1268

blitzfrayret opened this issue Oct 16, 2024 · 4 comments

Comments

@blitzfrayret
Copy link

Describe the bug
When importing the csv file of the dataset 'BONARES-signal.ID_7024_FORST_NOTWORKING.csv' with the wizard 'Import source schema', at the step 'Typename Settings' the button 'Finish' is not actionable.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'File' ->'Import' -> 'Source schema'
  2. Browse directories to select the file 'BONARES-signal.ID_7024_NOTWORKING.csv'
  3. Click on 'Next'
  4. Click on 'Next'
  5. Click on 'Next'
  6. At the 'Typename Settings' step, the button 'Finish' stays unactionable.

Expected behavior
6. At the 'Typename Settings' step, the button 'Finish' should be actionable to import the file.

Screenshots
If applicable, add screenshots to help explain your problem.

issue_Hale_import

To get around the problem
Open the file BONARES-signal.ID_7024_NOTWORKING.csv in Excel, copy the content, paste it in another Excel file, export it as csv file 'Classeur1.csv'. This file can be imported with Hale studio.

@blitzfrayret
Copy link
Author

This bug occurs when using version 5.3.0 of Hale Studio on Windows.

@florianesser
Copy link
Member

@blitzfrayret Thanks a lot for reaching out! The button "Finish" should be available when you change the value of the Typename input field at the top of the dialog (e.g. to just "ID_7024_FORST_NETWORKING"). A name with dots (.) in it is not allowed, that's why the error message "Please enter a valid Type Name" is shown in the header.

@blitzfrayret
Copy link
Author

@florianesser Thank you a for your fast answer. Indeed, it could work when removing the dot in the name of the file.
However, would it be conceivable that Hale Studio could accepts dots inside the names of files because we could have this case when working with various datasets (when data publishers upload their data files in datasets, they are not always aware of naming good practices).

@florianesser
Copy link
Member

@blitzfrayret Renaming the file is not necessary, hale»studio can work with files that have dots in it. However, type names in schemas are not allowed to have dots in it. So if, like in this case, a file with dots in the file name is imported, the type names automatically derived from the file name needs to be edited, as shown in the screenshots.

grafik

grafik

@florianesser florianesser changed the title [BUG]:problem when importing a CSV file as source schema Problem when importing a CSV file as source schema Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants