Owned embedded OLAP cellsets
Refresh, query and materialise explicitly
Version 2.384.367 brings a finite provider-authoritative path for an existing embedded model and its native OLAP Pivot view
A caller-owned TXLSPivotOlapProvider supplies the paired model artifact and server cellset through Fetch; the library neither decodes the proprietary model, runs MDX locally nor infers server measures from displayed worksheet totals
- Call
TXLSXWorkbook.RefreshOlapPivotCache(CacheId, Provider, Request, Limits, OnProgress, Budget)to fetch and publish the owned model body and matching cellset together - Call
TXLSPivotCache.QueryOlapCells(Selection, Limits)to obtain a detached selection of the current cached tuple/measure cells without provider I/O or local reaggregation - Call
TXLSXWorkbook.MaterializeOlapPivot(Table, Limits, OnProgress, Budget)to write current authoritative values into the original native view's represented numeric coordinates
Refresh leaves existing worksheet results unchanged until explicit materialisation; ordinary Open, Save and cached queries never fetch from the provider
Successful refresh or materialisation returns 1 and cancellation returns 0; unsupported identities or stale state and exceeded budgets use the existing Pivot query exception categories
The caller frees the returned TXLSPivotOlapCellset; its detached values remain valid after the workbook is released
Admitted native view
The current profile demands one existing embedded model body, one external OLAP cache and one native view with one row hierarchy, one column hierarchy, a column data axis, two server measures, nine complete tuples and eighteen existing numeric result cells
Schema-returned dimension, hierarchy, level, All, leaf and measure unique names act as identities; each leaf also has a complete checked SourceItemIndex into its actual native shared-item projection, with -1 reserved for All
Captions are a source sanity check and never invent unique names; incomplete maps, extra axes, grouped or filtered layouts and ambiguous native ownership refuse admission
The qualified genuine view keeps its original A3:G8 layout and writes the eighteen numeric results in B6:G8, preserving headers, styles and unrelated cells
The server's nonadditive grand margin remains the ratio returned for its All tuple, rather than a sum or an average of the displayed member margins
Provider contract and selection
TXLSPivotOlapRequest carries the requested unique-name maps, explicit tuples and source identities; the library binds the actual cache, connection, model part, layout digest and source generation ahead of the call
The provider echoes RequestIdentity and returns SemanticRevision, ModelBody, its SHA-256 ModelDigest, and cells with exact tuple/measure coordinates
The published TXLSPivotOlapCellset exposes its detached domain through HierarchyCount, MemberCount, MeasureCount, TupleCount and CellCount, the retained KPI set through KPICount and KPIs[Index], the digest of its retained native member order through NativeOrderDigest, and single result values through CellValue(TupleOrdinal, MeasureUniqueName), which resolves one cell by tuple ordinal and measure unique name
Each element of the domain also reads back as a typed record through indexed properties: Hierarchies[Index] gives a TXLSPivotOlapHierarchy (unique names for the hierarchy, the dimension, the level and the All member, plus the caption), Members[Index] a TXLSPivotOlapMember (hierarchy and source-item indices, the unique, level and parent names, the caption, and the All and calculated flags), Measures[Index] a TXLSPivotOlapMeasure (unique name, caption, number format), Tuples[Index] a TXLSPivotOlapTuple (ordinal and member indices), and Cells[Index] a TXLSPivotOlapCell (tuple ordinal, measure index, the value kind, and the number, text, Boolean or error-code value); KPIs[Index] answers a TXLSPivotOlapKPI (unique name, caption, properties)
The provider is responsible for the semantic truth of that model-body and server-cell pairing; the digest verifies owned artifact bytes and proves neither semantic equivalence nor a decoding of the model contents
TXLSPivotOlapSelection selects tuple ordinals and measure unique names, with empty selection arrays keeping the complete domain; returned tuple ordinals preserve their original identity
The DTO and cached-query model distinguishes empty, null, number, string, Boolean and represented Excel error values; the actual native worksheet materialisation qualified here uses numeric server cells, so arbitrary nonnumeric native materialisation is not claimed
Atomic ownership and resource limits
Requests, response arrays and model bytes are detached before later callbacks can mutate retained aliases; the published cellset holds no provider or workbook reference
All allocations, dependency checks, callbacks and source revalidation precede model/cellset publication; final source generation, owner, model digest and complete cache plans are rechecked ahead of the nonallocating swaps
Materialisation stages every value and checks existing output cell ownership before publishing any cell; formula, legacy array-member, dynamic-array, merge and rich-value metadata owners remain explicit refusal boundaries
Cancellation or refusal publishes no partial library-owned model, cellset or grid state; a callback's own direct user mutations remain the caller's changes and no silent rollback is applied to them
XLSDefaultPivotOlapLimits supplies the finite defaults of 16 MiB preparation bytes, 1 Mi UTF-16 metadata characters, 16 Mi work units, 1024 members, 65536 tuples and 131072 cells; the admitted native view sits below those DTO ceilings
These limits cover admitted library preparation and selected-result cloning, whilst provider temporary allocations, timeouts and external access remain caller responsibilities
Persistence and native model revisions
Retained transitional OOXML saves an owned snapshot with a unique relationship from its actual cache-definition part and an explicit content type, alongside the exact model digest and the native layout binding
Normal library reopen grants cached query access only after strict snapshot schema, namespace, identity, source ownership and model-byte checks; unknown or stale snapshots remain raw transport with no semantic query qualification
Actual Excel SaveAs can retain the snapshot whilst rewriting the model body, even when server results remain equivalent; that new artifact digest invalidates the old byte-bound snapshot until the next explicit qualified refresh
Strict OOXML, XLSB and discard-unsupported-parts output inherit no part of this snapshot profile
Native item projection and public persistence
Version 2.384.389 resolves each ordinary native row or column item index through the corresponding Pivot field's item list before it looks up the raw shared-item member
Represented data items may be reordered without the requested member identities changing; an omitted x/@v takes its specified zero default, whilst explicitly empty, negative or out-of-range ordinary indices are refused
Every requested member, an unused extra member included, must hold a valid source projection before the provider is called; duplicate raw mappings and incomplete, foreign or inconsistent axis owners are refused without publishing a new model or snapshot
The row and column hierarchies must partition the represented source uniquely, and the final column measure axis must agree with its stored data-item identities
The original native profile of two hierarchies, two measures and nine tuples keeps all of its strict admission checks and additionally runs the common layout decoder, comparing the eighteen resulting coordinates in the production path
Actual public qualification covers RefreshOlapPivotCache, detached QueryOlapCells, eighteen-cell MaterializeOlapPivot, snapshot save, source release, normal reopen, another materialisation and stream reopen
The untouched historical native input and a separately disclosed, semantically equivalent reordered-item derivative both complete that lifecycle, keeping provider-authoritative non-additive values plus the original view and connection parts
Final Win64 qualification passes 272 focused and 1057 independent checks; eight complete candidate-to-final output packages retain all 248 named entries without exceptions
This increment adds no native application execution and does not qualify every hierarchy/measure combination, active subtotal/filter item type, multiple-cache dependency graph or the relational-copy refresh lifecycle
Multiple owned cache persistence and legacy migration
Version 2.384.392 preserves the qualified two-cache, two-worksheet-view OLAP lifecycle over the same retained embedded model, independent provider refresh included, with eighteen-cell query and materialization for each owner, save, source release, normal or stream reopen and another explicit refresh
Published in-memory snapshots reserve their own package part names ahead of the first save, whilst each cache definition keeps its own local relationship identity
The unique validated internal workbook model relationship uses its semantic owner, relationship type, normalised target and mode for source identity, so ordinary writer renumbering does not invalidate an otherwise identical model
Model bytes, digest, content type, the unique incoming relationship and dependency checks stay mandatory, and other relationship identities keep their exact checks
Existing valid snapshots may match the exact former binding computed from their current actual graph during restore; the complete request and layout must still validate ahead of publication, and the restored owner then uses the current canonical binding
Stale snapshots, changed model bytes, source-hash tampering and model aliases stay unqualified; when one model revision changes, another cache becomes unavailable until its caller explicitly refreshes that cache
Already detectable stale owned snapshots are refused before ordinary OOXML output creates a ZIP on the caller stream, which preserves the qualified stream bytes and cursor or the existing file destination and allows a healthy refresh retry
This early refusal promises no rollback after arbitrary IO failure and adds no general transactional save contract
Final complete-source qualification passes 427 focused and 507 independent checks; five complete candidate/final output packages retain all 173 named entries without exceptions
Original and reordered snapshots from version 2.384.389 restore without a provider and migrate through source-free reopen; a separate 2.384.391 baseline control confirms that two scalar decimal reserialisation changes are existing behaviour within the original native coordinate tolerance
The two-cache fixture is a fully disclosed offline derivative of a genuine native source, with unchanged retained model and connection bytes; this increment adds no native multi-cache application execution and no additional hierarchy, measure, dependent-view or multiple-model qualification
Remaining external and cube work
This finite profile adds no local cube expression engine, arbitrary cube transport, external endpoint authentication, new database drivers or fresh platform qualification
Additional model/cache/view dependencies, CUBE formulas, unclassified formula tokens, opaque dependency parts, broader server schemas, arbitrary layouts and cross-workbook external Pivot copying remain outstanding
See external relational provider refresh and embedded model metadata transport for the separate existing contracts
Version 2.384.405 increment
See the qualified expanded lifecycle and its remaining boundaries for the newer finite contract