Bug 165408 - FILESAVE XLS with pivot table roundtripped as XLSX not opening in Excel
Summary: FILESAVE XLS with pivot table roundtripped as XLSX not opening in Excel
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:xlsx, implementationError
Depends on:
Blocks: XLSX-Corrupted Pivot-Table-XLSX
  Show dependency treegraph
 
Reported: 2025-02-23 17:32 UTC by Aron Budea
Modified: 2025-02-23 21:12 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample XLS #1 (17.00 KB, application/vnd.ms-excel)
2025-02-23 17:32 UTC, Aron Budea
Details
Sample XLS #2 (24.00 KB, application/vnd.ms-excel)
2025-02-23 17:33 UTC, Aron Budea
Details
Sample XLS #3 (159.00 KB, application/vnd.ms-excel)
2025-02-23 17:34 UTC, Aron Budea
Details
Sample #1 resaved in MSO as XLS (24.50 KB, application/vnd.ms-excel)
2025-02-23 21:11 UTC, Timur
Details
Sample #1 resaved in MSO as XLSX (14.33 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-02-23 21:12 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2025-02-23 17:32:50 UTC
Created attachment 199408 [details]
Sample XLS #1

Save either of the attached XLS samples as XLSX, and try opening them in Excel.

=> Excel fails to open the XLSX, and when attempting repair, shows similar error:
Removed Feature: PivotTable report from /xl/pivotTables/pivotTable1.xml part (PivotTable view)
Removed Records: Workbook properties from /xl/workbook.xml part (Workbook)

Observed using LO 25.8.0.0.alpha0+ (41ab24cecd6ad74312843f113d2faa13259cdb7d) / Windows.

This is a regression from the following commit in 6.0:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=7c429ddca63c09a2b656715292968000bfe86a1a
https://git.libreoffice.org/core/commit/7c429ddca63c09a2b656715292968000bfe86a1a
author		Tamás Zolnai <tamas.zolnai@collabora.com>	2017-09-09 11:06:19 +0200
committer	Tamás Zolnai <tamas.zolnai@collabora.com>	2017-09-09 12:13:53 +0200

tdf#112278: Pivot table: filtering of non-string fields is not exported to XLS
Comment 1 Aron Budea 2025-02-23 17:33:14 UTC
Created attachment 199409 [details]
Sample XLS #2
Comment 2 Aron Budea 2025-02-23 17:34:45 UTC
Created attachment 199410 [details]
Sample XLS #3
Comment 3 Timur 2025-02-23 21:11:49 UTC
Created attachment 199413 [details]
Sample #1 resaved in MSO as XLS

I tested with all 3. If I resave XLS as XLS in MSO, saving to XLSX works. 
This is still the bug, as MSO can save and reopen, but with low priority.
Looking before referenced commit, Excel would open the file but without table being pivot.
So this is not a regression, and is properly marked as implementationError.
Comment 4 Timur 2025-02-23 21:12:38 UTC
Created attachment 199414 [details]
Sample #1 resaved in MSO as XLSX

This is about source XLS but let me add MSO saved XLSX for possible further test.