Ask Your Question

Import csv with multi-line fields into LO base [closed]

asked 2012-05-03 16:08:14 +0200

Geert Janssens gravatar image

updated 2015-10-17 19:51:03 +0200

Alex Kemp gravatar image

I'm trying to import a csv file in libreoffice base. The peculiar thing about this csv file is that is contains fields with multi-line content.

I first opened the csv file in calc, which worked fine. Calc effectively displays the multi-line fields as multi-line.

Next I copied all cells and pasted them into an existing libreoffice base database table. While Calc handles the multi-line fields correctly, Base seems to discard any multi-line information. In base the field only holds one line, concatenating all the lines that make up the multi-line field. The field type in the table is TEXT/VARCHAR and is long enough to hold all the information.

Opening the table via a form also suggests the multi-line information has been stripped in the copy-past operation. I have created a form in which the field is displayed in a mult-line enabled text field, but all is shown as a single (long) line.

Any ideas how I can import multi-line content in a Base table ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by qubit
close date 2013-04-28 02:21:56.430032

2 Answers

Sort by » oldest newest most voted

answered 2012-08-17 22:05:20 +0200

DonLow gravatar image

I started to comment,but since I really believe this will work, I decided to post it as an answer. Since Calc opens your CSV file correctly, can you simply then save the Calc file in .ods format, and then open the ODS file in Base?

edit flag offensive delete link more


@Geert Janssens -- Does this answer work for you? If not, please describe the issue(s).

qubit gravatar imagequbit ( 2013-03-13 14:24:32 +0200 )edit

This is embarrassing in several ways :(

First I managed to not be aware of this reply for over 6 years.

Secondly, now that I tried this again based on the answer it looks like there may never have been a problem with the data, but only with how it was presented to me.

When I look at the imported data from a table view, all newlines seem to be suppressed. However if I create a form based on that table and make the fields multi line, the newlines are still there.

So thank you for ponting my in the right direction and apologies for the late reply.

Geert Janssens gravatar imageGeert Janssens ( 2019-01-12 08:19:36 +0200 )edit

answered 2012-05-03 20:44:28 +0200

mahfiaz gravatar image
edit flag offensive delete link more


Thank you for your reply. These two threads deal with the opposite of what I'm trying to accomplish. They explain how to export from base to csv while preserving multi-line fields. I tried the tip of using a memo type field as import field, but still during the import any newlines are stripped.

Geert Janssens gravatar imageGeert Janssens ( 2012-05-04 10:09:55 +0200 )edit

I am afraid I cannot help you then. I hope someone else has the answer.

mahfiaz gravatar imagemahfiaz ( 2012-05-04 21:08:13 +0200 )edit

Question Tools


Asked: 2012-05-03 16:08:14 +0200

Seen: 2,204 times

Last updated: Aug 17 '12