Classic Pivot metadata bounds
Generated ordinary view text
Version 2.384.373 validates all represented text fields before appending the first generated Classic Pivot view record
Oversized values now raise a range error instead of silently losing their declared length or corrupting later physical record boundaries
| Property | UTF16 code units |
|---|---|
| Pivot Name | 0 through 255 |
| DataCaption | 1 through 254 |
| Field Name | 0 through 255 |
| Owned emitted measure DisplayName | 1 through 255 |
Empty field names retain their existing NULL representation, while empty ordinary measure captions are explicitly refused rather than implicitly replaced
The checks use the original text lengths before conversion to physical fields, without truncation, caption substitution or a wider serialization schema
Refusal and caller repair
The actual public file checks preserve an existing four-byte destination and the caller's metadata and source cache after refusal, then save successfully after the caller explicitly restores valid text
The direct emitter checks all represented text before appending any view fragment, preserving an existing output prefix on these failures
This is a text-validation boundary rather than a transaction guarantee for every workbook operation or every other serializer error
Qualification and retained boundaries
The final complete-source Win64 Delphi 37 qualification passes 188 focused assertions and 4891 independent observations, including eight complete named CFB stream comparisons for legal boundary profiles and ten refusal/retry chains
Legal boundary files normally reopen with complete source caches, and their complete logical streams retain the released baseline bytes
The original 65536-character outputs are retained failure counterexamples; their successful return values do not qualify their schema or native behavior
Imported raw view replay retains its separate contract, while the generated emitter is not a complete OLAP validator and these ordinary measure bounds are not a universal OLAP NULL-caption rule
The existing nil or foreign measure-field skip behavior is retained without qualifying those owner combinations
See page-field selection and complete source ownership for six-byte SXPI item mapping, multi-view span ownership and generated cache-field type domains; counts, coordinates, other metadata families and wider source/model/copy chains remain separate work
No new native application execution, other compiler or platform qualification is claimed
See bounded Pivot line preparation for the separate generated line-memory and count-overflow qualification
Page-field selection and complete source ownership
Version 2.384.377 aligns Classic BIFF8 page-field selection (SXPI, $00B6) and multi-view source ownership across TXLSPivotTable, TXLSPivotField and TXLSWorksheet
Public PageItemIndex continues to report a zero-based cache-item index (0..ItemCount - 1) or xlPageItemAll ($7FFD = 32765), while standard six-byte SXPI entries (isxvi, ifdb, idObj) map between that cache-item index and the unique normal SXVI ($00B2) view-item ordinal
Legacy HotXLS ten-byte SXPI entries with six trailing zero bytes still load and upgrade to the standard six-byte form when rewritten
Unrepresented imported selections retain their original raw view bytes until edited or explicitly normalized through PageItemIndex; reading PageItemIndex on an unrepresented selection raises EXLSPivotQueryUnsupported instead of returning a misleading index, and at most 1370 page fields (8220 record bytes) fit in one BIFF record without continuation splitting
Multi-view source ownership and generated BIFF8 order
Complete imported Classic views bind to their raw worksheet span through an internal FPivotViewIdentity token, owner epoch and exact $00B0 raw-record range (RawViewStartIndex..RawViewEndIndex)
Editing or deleting one Pivot view replaces or removes only its owned span while sibling views on the same worksheet, including views that share the same name, retain their raw bytes or emit edited records independently
Truncated or foreign views never claim raw worksheet spans, and failed saves leave the caller's live Pivot model, selection state and existing four-byte destination sentinel intact for repaired retries
Generated Classic views emit a 20-byte SXVDEx ($0100) record after each field's SXVD ($00B1) item block and write StorePivotViewBlobs before Window2 ($023E); worksheet-generated SXFDB ($00C7) cache fields write SXFDBType = 0 (SQL_TYPE_NULL) and refine item-type flags from actual loaded cache values
Qualification and retained boundaries
Final complete-source Win64 Delphi 37 qualification passes 394 focused assertions across one cold build and seven guarded reuses, 106835 independent grammar and owner checks across 44 packages, 1094 independent review checks and 49 exact complete named-stream bridges
Three complete named-stream bridges bind final outputs to the 42 recorded native Excel checks (two-selected.xls, blank.xls and all.xls) without launching a new Excel session during integration
The default AddPivotTable factory layout remains incompatible with single-measure page-only views unless callers build compatible layout metadata, TXLSWorksheets.AddCopy still excludes PivotTables and native Excel saves normalize view geometry to Excel's own cell dimensions