Empty file #968
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#968
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I try to save XLSX file with CSV data, I am getting empty file. I am getting CSV data, from get response with tab separator. Here is example code:
Example of CSV data (TAB separator):
TEST November 29, 2017 23 FA TEST - FA CLICK 1 $1.10 $1.10
TEST November 29, 2017 23 GA TEST - GA CLICK 1 $1.10 $1.10
I am able to get the data, but file is empty. I don't see any error. Would that be problem with parsing CSV data?
Is the worksheet in the loop empty? Log the data and ws objects within the loop.
Worksheet seems to have data:
"G14665":{"t":"n","w":"1","v":1},"H14665":{"t":"n","w":"$2.88","v":2.88},"I14665":{"t":"n","w":"$2.88","v":2.88},"A14666":{"t":"s","v":"TEST"}
can you round trip through a buffer? Write to a buffer in memory (call XLSX.write with bookType "xlsx" and type "buffer") then read the new buffer and inspect th result.
Using following options:
const wopts = {type: 'buffer', bookType: 'xlsx'};
I am getting an error: TypeError: x.charCodeAt is not a function
I am also getting following error: TypeError: Cannot set property 'General' of undefined
Problem is that method generates XLSX file but cells are empty. But number of empty cells is not lower than number of rows in data.
First:
console.log(ws["!ref"])
within the loop and see if the asserted range includes the cells. The utilities ultimately look at that key to determine what cells are in the worksheet.If the range is too small, could you share the original
data
that was passed tojson_to_sheet
?If the range looks correct, can you share
JSON.stringify(ws)
,JSON.stringify(wb)
outside the loop, and the actual XLSX file that was generated?