Hello,

You should allow the use of white spaced when defining the column names of a CSV export. Technically, a CSV column name can contain white spaces.

I'm in a case where I have to export data using CSV, to import them in another plateform. The other plateform have column names with spaces, and I'm unable to export data actually because I can't reproduct the name in the column name.

Even if it's changing core module, I need to be able to generate the export quickly, could you please point me the right direction to disable that check ?

Thank you

CommentFileSizeAuthor
#4 2025-06-19_16-12-20.png257.51 KBsuper_romeo

Comments

Alexandre360 created an issue. See original summary.

gold’s picture

Version: 8.x-1.0-beta1 » 8.x-1.2

Is this still an issue? I have a View at the moment where this is an issue with the JSON output, but the CSV works fine.

@Alexandre360, create a view using fields and add a label with spaces to one of them. I'm currently having that label render fine.

steven jones’s picture

Status: Active » Closed (works as designed)

As @gold has said, you can already do this with the CSV encoding, but not json encoding. So, closing this issue out.

super_romeo’s picture

Status: Closed (works as designed) » Active
StatusFileSize
new257.51 KB

Yes, it's still the issue.

That's what this change is about: Only allow machine like names for the field alias row plugin

super_romeo’s picture

super_romeo’s picture

super_romeo’s picture

I solved it!
Leave "Alias" fields empty in "Data export: Row style options" dialog (Format/Show/Settings).
+ For all fields fill checkbox "Create a label" and fill in "Label" field.

steven jones’s picture

Related issues: +#3554271: Release 8.x-1.9