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

Cannot read properties of undefined (reading 'replace') - when pasting from Excel #267

Open
larissa-n opened this issue Feb 24, 2023 · 4 comments · May be fixed by #349
Open

Cannot read properties of undefined (reading 'replace') - when pasting from Excel #267

larissa-n opened this issue Feb 24, 2023 · 4 comments · May be fixed by #349

Comments

@larissa-n
Copy link

This sometimes happens when pasting multiples rows and columns directly from Excel.

TypeError: Cannot read properties of undefined (reading 'replace') 
at parsePastedValue (.../columns/textColumn.js:127:460)
at Object.pasteValue (.../columns/textColumn.js:140:36)
at pasteValue (.../columns.keyColumn.js:66:139)
at ...DataSheetGrid.js:565:69
this: undefined
value: Object

Generally happens with long datasets (~100 rows). Haven't yet been able to see a pattern with regard to which row it's pasting when failure occurs (2, 10, ...). Always the same row with each dataset, even if all the rows look the same.

@nick-keller
Copy link
Owner

Can you share the excel file with a reproductible dataset?

@sonmansu
Copy link

sonmansu commented Apr 26, 2024

This error happens on .xls file. (.xlsx is ok. .xls file only)

i want to share this file but i don't have privilege with Microsoft 365 ...
image

@sonmansu sonmansu linked a pull request Apr 26, 2024 that will close this issue
@ryanbitonio
Copy link

Is there any update here?

@gouldingken
Copy link

Attached is a file that will reliably fail the copy paste.
Select all content in the table.
Paste into a data sheet where all columns are textColumn.

Broken Copy Paste.xlsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants