Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated in exporting CSV #11828

Open
rubybui opened this issue Mar 24, 2025 · 2 comments
Open

Duplicated in exporting CSV #11828

rubybui opened this issue Mar 24, 2025 · 2 comments
Assignees
Labels
status: cant-reproduce If an issue cannot be reproduced

Comments

@rubybui
Copy link

rubybui commented Mar 24, 2025

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
@rubybui rubybui added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. labels Mar 24, 2025
@github-actions github-actions bot removed the validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. label Mar 24, 2025
@DanRibbens DanRibbens self-assigned this Mar 24, 2025
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Mar 24, 2025
@DanRibbens
Copy link
Contributor

I'm having trouble reproducing this issue.

I've tried both testing with the Download feature and file upload creation and there isn't a way I can get the headers to duplicate.

Can you upload a sample CSV file that shows this problem or make a screen recording that can demonstrate the issue?

@DanRibbens DanRibbens added status: needs-repro If an issue does not include a reproduction status: cant-reproduce If an issue cannot be reproduced labels Mar 24, 2025
@github-actions github-actions bot removed the status: needs-repro If an issue does not include a reproduction label Mar 24, 2025
@rubybui
Copy link
Author

rubybui commented Mar 24, 2025

Hi Dan, due to the nature of the csv is personal information, I could not directly send the csv here.
I took some screenshots:
Order Table
Image

Image Payment Table Image

after sorted

Image

Not all items are duplicated

Image

Payment Table (don't have duplicated table header), but have duplicated rows

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: cant-reproduce If an issue cannot be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants