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

[BUG] Cannot create Datalibrary with CSV #2543

Open
cencio91 opened this issue Oct 22, 2024 · 0 comments
Open

[BUG] Cannot create Datalibrary with CSV #2543

cencio91 opened this issue Oct 22, 2024 · 0 comments

Comments

@cencio91
Copy link

cencio91 commented Oct 22, 2024

Hi,

I'm trying to create a CSV data library, but CSV is not readden

Step to reproduce:

  1. I've uploaded a CSV contains the following :
ADMIN_USER,ADMIN_PASSWORD
myuser,mypass
  1. Then i've checked the flag "Generate Subdata list from First line of csv after saving
    (only when checked and with file uploaded)" ,selected type=FILE-CSV, a country and a System (blank environment).

  2. when I click on "SAVE", the page infinite loads with this image:
    immagine

  3. If i force reload, I can see the newly created datalibrary, but the SubData are not filled, and the download button shows "Object not found !!"

immagine

  1. Also if I add the SUBDATA manually, I get an error (cerberus key subdata has no csv column position mapped...) during execution. This is a minimal test configuration:
    immagine
    immagine
    immagine

Consideration:

  • If i use "INTERNAL" as data library type, the same code works.
  • if i create the datalibrary as CSV --> manually create a row in SUBDATA --> save it without marking "Generate Subdata list from First line of csv after saving" --> then reopening the data library, reupload the CSV and mark "Generate Subdata list from First line of csv after saving", it works.
    I think that the generation of the first blank row in SUBDATA is missing during the automated fill.

Cerberus Version : 4.19-SNAPSHOT-1858, inside a docker container and MySQL v8

P.S: I've tryed both setting the delimiter to ',' than leaving it blank. I've tryed also with older version of snapshot (about 2 month ago)

thank you very much,
Francesco

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

1 participant