mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-28 17:30:24 +01:00
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>