synapse-admin icon indicating copy to clipboard operation
synapse-admin copied to clipboard

Error importing csv

Open hugo141592 opened this issue 1 year ago • 4 comments

Hi! I am trying to import a bunch of records, but with no success. Even using the example.csv file, I get the message "Required field 'displayname' is not present".

image

hugo141592 avatar Jun 12 '24 20:06 hugo141592

Experiensing same problem.

tsartsiom avatar Jul 11 '24 03:07 tsartsiom

Same here. After uploading the provided example.csv, I can successfully simulate the import. But with the real import (with box unchecked that asks for simulation of import), I get the error "Bad Request".

Seems like the error "Required field 'displayname' is not present" is thrown when the first line in example.csv ("id,displayname,password,is_guest,admin,deactivated") is missing. When the CSV file contains this as a header line, simulated import works (with ID changed to my server of course), but not for real imports.

lofi8bits avatar Jul 16 '24 12:07 lofi8bits

Can confirm bug. Happy to test fixes. Thanks for the cool app!

aogrand avatar Aug 15 '24 19:08 aogrand

The problem is is that the id is not encoded properly

Image

(i've redacted my domain)

look at the arrows

%40 @ %3A :

..so its doubled up and matrix obviously doesnt understand the call

I'm a Vue developer and know nothing React, so sorry I cannot do a PR, but at least I pointed out where this fails...

fractalf avatar Jun 13 '25 20:06 fractalf