You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting items from a collection to File Library we are seeing some data in wrong columns.
We see this happening when in one batch the relationship is null for some records but not all and in another batch the relationship is never null.
To explain a bit better, here's screen recording:
Screen.Recording.2024-04-23.at.18.48.52.mov
The issue seems to come from json2csv and the usage of flatten.
As mentioned earlier, in first batch this is how data is passed to CSVParser:
joselcvarela
changed the title
API: Columns shift when EXPORT_BATCH_SIZE is surpassed when exporting CSV
API: Columns shift when EXPORT_BATCH_SIZE is surpassed on exporting CSV
Apr 23, 2024
Describe the Bug
When exporting items from a collection to File Library we are seeing some data in wrong columns.
We see this happening when in one batch the relationship is
null
for some records but not all and in another batch the relationship is never null.To explain a bit better, here's screen recording:
Screen.Recording.2024-04-23.at.18.48.52.mov
The issue seems to come from
json2csv
and the usage offlatten
.As mentioned earlier, in first batch this is how data is passed to
CSVParser
:And on second batch:
As can be seen, on second batch, there's no record with
author
, so theflatten
fromjson2csv
is not able to expand.To Reproduce
The configuration
EXPORT_BATCH_SIZE
should be set to10
Here's the database used on the video:
export-column-shift-issue.sql.zip
Admin : admin@example.org
Password: password
Here's the request (exported as cURL from Directus App):
Directus Version
v10.10.5
Hosting Strategy
Self-Hosted (Custom)
The text was updated successfully, but these errors were encountered: