A bug was reported in the CSV export of users feature, where the exporter omits commas when the last fields have no value, causing the file to be rejected by many tools. alranel encountered this issue and reported it. simon was able to reproduce the problem, which occurred when no group_names field was set for a user. The issue has since been fixed via a commit and assigned by the team, with sam acknowledging the fix and techAPJ implementing the solution.
I exported users in CSV format with the Admin > Users > Export button. While the file is substantially valid, it’s rejected by many tools (like miller or parsing libraries) because not all lines have the same number of commas/fields. It looks like your exporter omits commas when last fields have no value. While this looks reasonable, it looks like it breaks the formal specification of CSV files.
Discourse version: the one used as of now in your hosted forums
That sounds like a bug. I’m assuming the issue with the users CSV file is happening when no group_names field is set for a user. I can reproduce that with a CSV file that contains staged users. Is this where you are seeing the problem?