FAQ: XLSX export fails with "The maximum length of cell contents is 32767 characters" #1954
SymptomExporting a query result to XLSX fails with this error: CauseThis is an Excel/XLSX worksheet format limit: a single cell can contain at most 32,767 characters. If any text value in the query result exceeds that limit, XLSX cannot represent the complete value and the export fails. The database value itself is valid. This limit is independent of the database type, column type, and operating system. Workarounds
ScopeThis error can occur whenever a single exported value exceeds 32,767 characters. It is not specific to MySQL, Windows, or Related issue: #1931 |
Replies: 2 comments 1 reply
AnswerThis is an Excel/XLSX worksheet format limit: a single cell can contain at most 32,767 characters. If any text value in the query result exceeds that limit, XLSX cannot represent the complete value and the export fails. The database value itself is valid. This limit is independent of the database type, column type, and operating system. Workarounds
This error can occur whenever a single exported value exceeds 32,767 characters. It is not specific to MySQL, Windows, or Related issue: #1931 |
|
Answer
This is an Excel/XLSX worksheet format limit: a single cell can contain at most 32,767 characters. If any text value in the query result exceeds that limit, XLSX cannot represent the complete value and the export fails.
The database value itself is valid. This limit is independent of the database type, column type, and operating system.
Workarounds