Bug 87739 - FILEOPEN : XLSX - formulas linked to other sheets are not refreshed when opening file (hard recalc needed)
Summary: FILEOPEN : XLSX - formulas linked to other sheets are not refreshed when open...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.3.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: Cell-Formula XLSX
  Show dependency treegraph
 
Reported: 2014-12-26 11:11 UTC by dpierret
Modified: 2021-03-01 10:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
files 1.xlsx and 2.xlsx (9.19 KB, application/zip)
2014-12-26 11:11 UTC, dpierret
Details
Same files but in Calc native (ODS) format (15.70 KB, application/zip)
2021-03-01 10:35 UTC, Svatopluk Vít
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dpierret 2014-12-26 11:11:31 UTC
Created attachment 111364 [details]
files 1.xlsx and 2.xlsx

Problem description:  formulas linked to other XlSX sheets are not refreshed when opening the file

Steps to reproduce:
1. create a new file in Excel 2013 format : c:\C:\Temp\LibreOffice\1.xlsx 
2. add a value in cell A1 (sample value : 10) of file 1.xlsx and save the file
3. create a second file in Excel 2013 format : c:\C:\Temp\LibreOffice\2.xlsx 
4. in cell A1 of file 2.xlsx, set value equal content of cell A1 of file 1.xlsx and save the file file 2.xlsx. Cell A1 contains formula : ='file:///C:/Temp/LibreOffice/1.xlsx'#$Sheet1.A1 . In this case, the cell shows the value 10
5. open file 1.xlsx, change the content of cell A1 from 10 to 15 and save the file.
6. open file 2.xlsx. LibreOffice notifies that the spreasheet has cells with link to other spreadsheet(s). Select YES to get the cell content updated. In this LibreOffice version, the cell A1 in file 2.xlsx is not refreshed as expected. It still shows the value 10 but it should display the value 15.


Current behavior: formulas linked to other sheets are not refreshed => the cell shows the old value : 10 

Expected behavior: formulas linked to other sheets are refreshed => the cell shows the new value : 15
Comment 1 MM 2014-12-26 12:42:28 UTC
Unconfirmed with V4.3.5.2 on windows 7 x64
Unconfirmed with V4.3.5.2 on mint 17.1 x64

Even opening the 2 files together, changing the value in file 1 and without saving making a hard-update with CTRL-Shift-F9 works.
Comment 2 raal 2014-12-28 18:31:47 UTC
I can confirm with Version: 4.5.0.0.alpha0+
Build ID: 57626f2132f73e4e42b31e364b25c5867336e718
TinderBox: Win-x86@42, Branch:master, Time: 2014-12-26_09:26:33

Hard recalc ctrl+shift+f9 needed
Comment 3 QA Administrators 2016-09-20 09:38:05 UTC Comment hidden (obsolete)
Comment 4 dpierret 2017-06-03 08:37:57 UTC
tested Version: 5.3.3.2 - same issue
Comment 5 QA Administrators 2018-07-03 02:39:13 UTC Comment hidden (obsolete)
Comment 6 dpierret 2018-08-04 15:55:00 UTC
Tested latest version 6.0.5.2 (X64) :
1/ Cells on 2.xlsx are still not refreshed.
2/ Option to refresh the link data does not help
Comment 7 QA Administrators 2019-08-05 03:28:01 UTC Comment hidden (obsolete)
Comment 8 Svatopluk Vít 2021-03-01 10:30:45 UTC
The Bug is still present

Version: 7.1.1.1 / LibreOffice Community
Build ID: 575c5867c4cc13d7ae78f9ce39a54a52ed38c769
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded

After change in File1, saving and opening File 2 there is that yellow dialog "Automatic update of external links has been disabled." and button Allow updating. When you click the button, nothing happend.

Manual update via F9 is working.
Comment 9 Svatopluk Vít 2021-03-01 10:35:35 UTC
Created attachment 170146 [details]
Same files but in Calc native (ODS) format

Investigation : When you change the format to Calc native format ODS and relink the file 2 to file 1, it is working as expected.

- open the file 1-lo.ods and change the value
- save the file in ods format
- open the file 2-lo.ods
- yellow message "Automatic update of external links has been disabled." is there
- click to button Allow updating
- file is updated without problem

Looks like that XLSX import omits this functionality after opening.

Version: 7.1.1.1 / LibreOffice Community
Build ID: 575c5867c4cc13d7ae78f9ce39a54a52ed38c769
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded