Skip to content

Duplicated in exporting CSV #11828

Open
Open
@rubybui

Description

@rubybui

Describe the Bug

Hi, we needs to export a few hundred rows of an order tables with depth and multiple relationship fields. Result tends to have multiple lines of table header as well as duplication of the last page.

Image there could be multiple types of bugs over here, as there is the type of appended header in the middle of the file and duplicate rows after this header.

and there is a type that only show duplicated rows with no header inserted

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/blob/main/packages/plugin-import-export/src/export/createExport.ts

Reproduction Steps

Have a table with relationships.
add import/export plugin
seed tables
create exports

Which area(s) are affected? (Select all that apply)

plugin: other

Environment Info

Payload: 3.29.0
next 15.2.0
node: 22.14.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions