The workbook cannot be written as given: it has no sheets (or a streaming writer finished
before any startSheet), two pivot caches share a cacheId, a pivot table cacheId names no
cache, a theme colour is not 6 hex digits, a colour string (font, fill, border, tab,
conditional-format, sparkline or rich-text colour) is not 6 or 8 hex digits (RRGGBB or
AARRGGBB, optional leading #), a conditional-formatting rule has more than three formulas
(formula plus additionalFormulas), two series of a chart share an order (within one
chart-type element or across its primary and secondary chart), or a sheet's sheetProtection.password is not
a 1 to 4 hex digit legacy hash (set plainPassword instead), or, in modern-xlsx/lite, a
plainPassword holds a non-ASCII character.
The workbook cannot be written as given: it has no sheets (or a streaming writer finished before any startSheet), two pivot caches share a cacheId, a pivot table cacheId names no cache, a theme colour is not 6 hex digits, a colour string (font, fill, border, tab, conditional-format, sparkline or rich-text colour) is not 6 or 8 hex digits (RRGGBB or AARRGGBB, optional leading #), a conditional-formatting rule has more than three formulas (formula plus additionalFormulas), two series of a chart share an
order(within one chart-type element or across its primary and secondary chart), or a sheet'ssheetProtection.passwordis not a 1 to 4 hex digit legacy hash (setplainPasswordinstead), or, inmodern-xlsx/lite, aplainPasswordholds a non-ASCII character.