1

I have geometry file in *.xls file, but when I save in *.csv it say "some feature in your workbook might be lost if you save it as CSV (Comma delimited)" however I keep that file anyway and when I import that file in postgres it say "ERROR: extra data after last expected column". Any idea please?

asked Nov 10, 2014 at 6:01

1 Answer 1

1

I think the two messages are separate. The first message is just a warning that anything such as formulae, formatting and additional worksheets cannot be saved in a CSV as it is a simple ascii format. The second message suggests that you maybe have a text field as one of your attributes which contains a comma. This will effectively introduce an extra column break partway through the text field, hence the message about extra data after the last expected column. I recommend that you do a global search and replace to change all commas something else like a full-stop or a hyphen. You could also use a semicolon so long as you are sure that wont get interpreted as a column delimiter (it is sometimes used that way).

answered Nov 10, 2014 at 7:44
1
  • yeah, I did the search and found three commas from nowhere that confused my delimeter. Commented Nov 10, 2014 at 8:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.