Bug 116065 - FILEOPEN CSV file not formatting correctly when opened.
Summary: FILEOPEN CSV file not formatting correctly when opened.
Status: CLOSED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.1.1 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 16:16 UTC by Derek
Modified: 2018-03-02 13:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek 2018-02-27 16:16:35 UTC
Description:
When opening a csv file in Libre Office some separated fields get combined into a single cell, resulting in the error "The data could not be loaded completely because the maximum number of characters per cell was exceeded."  This does not happen if the file is opened in Microsoft office for example.

Steps to Reproduce:
1.Open csv file I uploaded
2.Row 113 column E shows affected cell
3.

Actual Results:  
Many comma separated fields dumped into a single cell.

Expected Results:
Many fields searated into cells


Reproducible: Always


User Profile Reset: No



Additional Info:
File uploaded with error message


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Comment 1 V Stuart Foote 2018-02-27 16:45:01 UTC
Was there going to be an attachment?

Also, opening the .csv should open the Text Import dialog. There you have ability to adjust the Separator Options precisely. Does doing so help?
Comment 2 V Stuart Foote 2018-02-27 17:09:08 UTC
If you can not post the original .CSV file--please don't if proprietary or sensitive. 

You can use a text editor of some sort (i.e. sed/awk, gvim, notepadd++, etc.) to sanitize the text--keep the same data layout and types e.g. numbers remain numbers, text remains text, dates dates.

Does not need to be the full file--just enough so that you still have the issue when filter import opening the file into LibreOffice Calc.
Comment 3 Eike Rathke 2018-03-02 13:33:57 UTC
Without a sample file to reproduce there's nothing we could do.
I assume the data in question does not close an enquoted (") field and thus all following data including all next lines ends up in one cell until that reaches end of capacity.