Bug 86737 - Wrong precaculated values in OOo calc sheet not reevaluated
Summary: Wrong precaculated values in OOo calc sheet not reevaluated
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.6.2 release
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard: lhm-limux
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-26 10:47 UTC by Jan-Marek Glogowski
Modified: 2019-07-11 12:34 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
HR department calc sheet (37.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-11-26 10:47 UTC, Jan-Marek Glogowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Marek Glogowski 2014-11-26 10:47:22 UTC
Created attachment 110054 [details]
HR department calc sheet

The attached document is a complex calc sheet used in our HR department.

From my investigation and kendys commends, it seems at least OOo 3.2.1 has been writing wrong cached values, as there are some xml arguments of:

  office:date-value="1899-12-30"

in the document.

As it's in German and was possibly generated using an even older OOo version, just a usage howto:

1. Open the document.
2. Locate the wrong date in the lower right corner of the first sheet: "12/30/1899"
3. Locate the date the calculation is base on in the middle of the first sheet: "Stufenlaufzeit ab" "10/01/2013" and change it to force reevaluation.

After recalculation the sheet is correct.
Comment 1 Jan-Marek Glogowski 2014-11-26 10:53:52 UTC
I just tested LO 3.5.4.2 from Debian Wheezy, which does re-evaluate the values on load, and the sheet is shown correctly.

The correct value should be "01.11.2015".
Comment 2 m_a_riosv 2014-11-27 21:45:31 UTC
Hi Jan thanks for reporting.

Hard recalc, does it right [Shift+Ctrl+F9] with sample file.

Also there is an option to force the files don't created by LibreOffice to be recalculated.
Menu/Tools/Options/LibreOffice Calc/Formula - Recalculation on file load, that I think can serve in your situation.

Please do a test.
Comment 3 Jan-Marek Glogowski 2014-11-28 12:53:24 UTC
Well - sure a hard recalc fixes the problem.

LibreOffice Calc/Formula - Recalculation on file load "ODF Spreadsheet (not saved by LibreOffice)" helps, but only "Always recalculate". "Prompt user" doesn't help, as it doesn't show any prompt and nothing is recalculated. There is already the bug 60973 for the problem, which I restored to "unconfirmed".

Additionally somebody pointed me to bug 60964. kendy mentioned we might want some blacklisting. Otherwise we might go with "Always" for our rollout.

I would really get some feedback /pointers on the decision to default to "non-recaclculation" mentioned in bug 60964 comment 2.
Comment 4 QA Administrators 2015-06-08 14:29:32 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INVALID
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

This NEEDINFO Message was generated on: 2015-06-08

Warm Regards,
QA Team
Comment 5 QA Administrators 2015-07-18 17:28:01 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO

Message generated on: 2015-07-18
Comment 6 Michael Weghorn 2019-07-11 12:34:46 UTC
FWIW, while looking at another issue, it turned out that the correct result is shown for the attached doc even with "Never recalculate" set from this commit on:

commit 573f5dfba805b733dd2da62bde3cd5d9d25879d9
Author: Eike Rathke <erack@redhat.com>
Date:   Thu Dec 18 13:26:48 2014 +0100

    Resolves: fdo#86978 append formula cells to track instead of tree
    
    Cells in FormulaTree are assumed to be tracked already and their
    dependents be notified. Also postpone tracking until all listeners are
    established.
    
    Change-Id: I7f27fba979fe231e3d3cd071fcc8a273142cb3f3