Bug 32670 - CALC: Save File-copy from Base in Calc as DBF does not function
Summary: CALC: Save File-copy from Base in Calc as DBF does not function
Status: CLOSED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 17:52 UTC by mhonline
Modified: 2012-07-25 15:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File with bug 32670, writing to DBF gives failure (21.08 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-05-13 05:42 UTC, Edwin van Hierden
Details
format-changes N,19,0 to N,7,2 (124.97 KB, image/jpeg)
2011-05-18 17:41 UTC, mhonline
Details
the source (in HSQL) and the result of copying and of saving as DBF (107.79 KB, image/jpeg)
2011-10-19 14:58 UTC, mhonline
Details
Screenshot showing Cell 262 error (153.18 KB, image/png)
2011-12-28 10:57 UTC, NoOp
Details
Screenshot showing Cell 262 as: '4872PM (143.12 KB, image/png)
2011-12-28 10:59 UTC, NoOp
Details
Screenshot showing Cell 262 after copy from Base (145.27 KB, image/png)
2011-12-28 11:00 UTC, NoOp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mhonline 2010-12-26 17:52:27 UTC
open a DBF in Calc and use "Save as" to save it with another name as DBF seems to work

copy a table in Base and insert it in Calc looks a little strange but seems to work too. But when saving it as DBF, it is totally brooken (no DBF anymore)

Martin
Comment 1 Jan Holesovsky 2010-12-28 05:55:20 UTC
Martin: Can you please attach here the .ods produced by that operation, that fails to save as DBF?  Thank you!
Comment 2 Edwin van Hierden 2011-05-13 05:42:31 UTC
Created attachment 46683 [details]
File with bug 32670, writing to DBF gives failure
Comment 3 Edwin van Hierden 2011-05-13 05:45:35 UTC
Writing content to DBF gives:
General Error.
General input/output error.
OS: Ubuntu 11.04

OpenOffice 3.2.1 gives no failure.
Comment 4 Alex Thurgood 2011-05-13 08:07:17 UTC
Hi all,

I can not reproduce with my own tests on Mac OSX 3.4b5. If I copy a table from a mysql db containing a timestamp field, a character field, an integer field, a double field, they appear in Calc fine. Then I can save them as DBF. Close, re-open the DBF, eveything still OK, the header columns have been changed to define the field format, but that also happens with OOo (and has always done as far as I can remember). If I then save the DBF as another DBF (different name), and then re-open the renamed file, everything still appears OK.


Something particular about your file ? Have you tried with the latest 3.4 beta5 ?

Alex
Comment 5 mhonline 2011-05-18 17:40:34 UTC
@ Alex

You need to have a DBF-application - reopen the wrong-formed DBF in OOO/LO works fine
However: still worthless 
Look at attached screencaptures:
zaehler,N,19,0 (that is correct) - becomes
zaehler,N,7,2 (wow!)

Now the digits are justified correct (right to left) , but inserts a decimal+00 and changes the format

Fun: it shortens the fieldlength and makes it dynamic - in regard to the longest number in that column. I do not know, whether this will have any effect when reopen in real DBF-applications, lets see. that happens on decimals only, not on text-fields.

Yes, this is 3.4 Beta5

Martin
Comment 6 mhonline 2011-05-18 17:41:56 UTC
Created attachment 46878 [details]
format-changes N,19,0 to N,7,2
Comment 7 mhonline 2011-05-18 17:54:28 UTC
oops - comment 5+6 mailed to the wrong issue (should have been 32672)
can some delete that?

sorry

 martin
Comment 8 mhonline 2011-05-18 17:59:18 UTC
@ Alex


gave it a try with LO 3.4 Beta 5
and LO crashed immidiatly on crtl-v 
(not the only thing, when LO crashed)

Martin
Comment 9 Rainer Bielefeld Retired 2011-10-13 09:10:37 UTC
Very old bug ...

@reporter:
Still a problem for you wiht 3.4.3? If yes, please read  hints on
<http://wiki.documentfoundation.org/BugReport> carefully!

Then please:
- Attach screenshots with comments if you believe that that might explain the 
  problem better than a text comment. Best way is to insert your screenshots
  into a DRAW document and to add comments that explain what you want to show
- Contribute a step by step instruction containing every key press and every 
  mouse click how to reproduce your problem. 
- add information 
  -- what exactly is unexpected (as Tor said, all effects very carefully and 
     complete)
  -- and why do you believe it's unexpected (cite Help or Documentation!)
  -- concerning your PC (especially: video card)
  -- concerning your OS (Version, Distribution, Language)
  -- concerning your LibO version and localization (UI language)
  –- Libo settings that might be related to your problems 
  -- how you launch LibO and how you opened the sample document
  –- If you can contribute an OOo Issue that might be useful
  -- everything else crossing your mind after you read a.m. URL
May be you can test <http://wiki.documentfoundation.org/BugReport_Details> for
submitting bug reports?
Comment 10 Rainer Bielefeld Retired 2011-10-13 10:30:45 UTC
Comment on attachment 46878 [details]
format-changes N,19,0 to N,7,2

Obsolete due to Comment 7
Comment 11 mhonline 2011-10-19 14:57:28 UTC
I just check the problem with LO 3.4.3 on W2K: no changes

Copying a table
-- from odb bound/connected to DBase: functions (partly)
-- from an odb connected to HSQL-tables: impossible
I can not reproduced it with mysql, because I do not have that.

attached: screencapture 

pls look at the related issue id=32669

m.
Comment 12 mhonline 2011-10-19 14:58:56 UTC
Created attachment 52554 [details]
the source (in HSQL) and the result of copying and of saving as DBF
Comment 13 Björn Michaelsen 2011-12-23 11:34:02 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 14 Björn Michaelsen 2011-12-23 17:00:58 UTC
needinfo keyword redundant by needinfo status.
Comment 15 Rainer Bielefeld Retired 2011-12-27 22:35:39 UTC
I will try to interest someone with DBF knowledge for this issue.
Comment 16 NoOp 2011-12-28 10:56:23 UTC
LOdev 3.5.0 
Build ID: 7362ca8-b5a8e65-af86909-d471f98-61464c
linux

After copying from Base to Calc, the cells in D262 and D426 get changed from:
'4872PM
to a time format:
4884:00:00

If I try to save the copied spreadsheet I get an 'Write error. Cell D262 contains a string that is longer in the selected character set'.

I'll attach screenshots.
Comment 17 NoOp 2011-12-28 10:57:31 UTC
Created attachment 54913 [details]
Screenshot showing Cell 262 error
Comment 18 NoOp 2011-12-28 10:59:00 UTC
Created attachment 54914 [details]
Screenshot showing Cell 262 as: '4872PM
Comment 19 NoOp 2011-12-28 11:00:33 UTC
Created attachment 54915 [details]
Screenshot showing Cell 262 after copy from Base
Comment 20 NoOp 2011-12-28 11:02:05 UTC
Added note: If the file is saved as a .dbf, Base doesn't recognize the file as a dBase file & it's necessary to open as a spreadsheet instead.
Comment 21 Alex Thurgood 2012-07-21 11:11:00 UTC
Just tried revisiting this with LO 3.5.5.2 on Linux Mint 12 64bit.

Opened submitter's Calc file. Seems to open without errors.
Saved as DBF, selecting EURO codepage.
Read dbf file via dbview command line utility, no I/O errors, and the display seems OK


This looks solved for me. Can we close ?


Alex
Comment 22 Alex Thurgood 2012-07-21 11:15:37 UTC
(In reply to comment #21)
> Just tried revisiting this with LO 3.5.5.2 on Linux Mint 12 64bit.
> 
> Opened submitter's Calc file. Seems to open without errors.
> Saved as DBF, selecting EURO codepage.
> Read dbf file via dbview command line utility, no I/O errors, and the display
> seems OK
> 
> 
> This looks solved for me. Can we close ?
> 
> 
> Alex

Oh darn, just realised that there are 2 reported buggy behaviours in this report:
(a) copying from Base to Calc
(b) exporting from Calc to DBF


As far as I'm concerned, (b) works fine for me. Haven't tested (a) here because submitter has not provided an ODB file, or even the DBF file to which Base is supposed to connect, only a Calc file.


Alex
Comment 23 Alex Thurgood 2012-07-21 11:59:00 UTC
Tested on LO 3.5.5.2 with :
/usr/lib/R/library/foreign/files/sids.dbf

1) Copied sids.dbf into my declared DBF folder.
2) Opened the ODB file referencing the DBF folder.
3) Opened a new Calc document.
4) Right-mouse button click on table sids in the ODB file, then selected Copy.
5) Clicked on Calc sheet, then Ctrl-V
6) Data from DBF file correctly copied over from Base to Calc without any visible formatting problems.
7) Save Calc sheet as DBF.
8) Opened new DBF file with dbview command line utility, data seem to be same as in original DBF file displayed in Base,and the data copied over to Calc.

Conclusion : can not reproduce the problem.


Alex
Comment 24 Jochen 2012-07-24 19:59:42 UTC
Hi *,

> Conclusion : can not reproduce the problem.

Should bugreport be closed?