Files
gridcraft/crates/model
Harrison BoothandClaude Opus 5.5 8732325b58 ft-121.1.25: keep PivotTables whose source is in another workbook on XLSX save
A PivotTable whose cache's worksheetSource has an r:id to an
externalLinkPath relationship (range or defined name in another
workbook) was read as a model pivot with an unresolvable source, and the
writer then skipped it silently: the table, cache definition, records,
the cache's link and the workbook's pivotCache entry were all lost.

Such PivotTables are now reported by read_pivots instead of modelled and
kept by the pass-through layer: the table parts with their sheet, the
cache and records with the workbook and its original cacheId. Written
pivot caches skip the kept ids, a cache no kept table uses is dropped,
and the kept parts' dxfId and numFmtId references are renumbered to the
rewritten styles part (Excel refuses to open the file otherwise).
gridcraft-cli check counts kept PivotTables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:42:49 -05:00
..