External relational Pivot provider refresh
Version 2.384.292 adds an explicit provider path for represented external relational Pivot caches while retaining their external source and connection identities
Explicit refresh and cached evaluation
The overload RefreshPivotCache(CacheId, Provider, MaxRows, OnProgress, Budget) accepts a caller-owned TXLSQueryTableProvider and returns 1 after commit, 0 on cancellation and -1 on refusal or failure
The one-argument overload continues to refresh local worksheet sources; Open, cached queries, materialization and Save do not call a provider
A represented cache keeps SourceDataType=xlPivotCacheSourceExternal and a positive SourceConnectionId; ExternalSourceKind (type TXLSPivotExternalSourceKind) uses xlpesRelational, xlpesOlap or xlpesUnknown
Relational classification requires an ordinary imported ODBC, OLE DB or ADO connection without OLAP properties; changing the classification flag does not supply a missing supported connection or complete cache model
Supported cached queries and native materialization use the represented records without substituting a worksheet source; refresh changes the shared cache records and materialization remains a separate explicit operation
Provider schema and ownership
The provider receives detached connection and query metadata and retains ownership of its own implementation; returned ColumnNames must contain a complete nonempty unique schema matching the existing database fields by their case-insensitive names
Columns may arrive in a different order; the built-in Windows database provider supplies actual ADO field names, while column names remain optional for existing QueryTable providers
Refresh preserves the live cache, existing field objects, shared-item objects and borrowed member identities used by multiple views
Provider results are independently copied before later callbacks can change retained array aliases; nonscalar, unsupported Variant storage and nonfinite values refuse the operation
Guarded staging and cancellation
The library holds a read lease, snapshots the bounded cache and metadata, checks them after callbacks, then rechecks generation and ownership under a write guard before committing prepared buffers
A caller's independent change through an unguarded borrowed cache handle causes refusal and remains the caller's change; that separate mutation is not rolled back by the library
The callback contract excludes freeing borrowed objects, dangling references and unsynchronized concurrent mutation; the unchanged local refresh path retains its existing callback semantics
Cancellation and budget requests occur at documented synchronous phase boundaries; a running provider Fetch or staging Prepare call cannot be preempted by these callbacks
Embedded model metadata transport
Version 2.384.359 opens genuine Excel data-model workbooks with extended loading connection type100 and preserves that stored type as xlckUnknown metadata
The loading connection and the model's OLAP connection keep separate identities; the stored type100 is not the native runtime connection enum and is not mapped to ODBC or ordinary OLE DB execution
File and caller-stream Open, Save and normal reopen retain the embedded model and original OLAP view/cache definitions, including caches that intentionally have no fact-records part or relationship
Repeated saves, output failure followed by retry, and reopening a different local or model Workbook retain the correct records-presence state; ordinary local typed caches continue to write their fact records
In the qualified unchanged file-backed cases, connection XML is replayed verbatim; source-free serialization preserves the complete expanded XML structure while adding the actual connection count and explicit integrated-credential defaults
The genuine native witnesses contain Category and Region hierarchies, server All members, an additive measure and a non-additive margin measure; their V1 and V2 server values remain correct through native Open, explicit model/Pivot refresh, SaveAs and normal reopen after library transport
The library does not connect to the model engine during ordinary Open or Save; the existing relational provider overload explicitly refuses OLAP before calling Fetch
See owned embedded OLAP cellsets for the later finite explicit provider refresh, detached cached query and native numeric materialization profile; metadata transport alone does not grant execution features, and broader cube expression evaluation remains unfinished
Resource and format boundaries
MaxRows is limited to 1000000, fields to 16384, staged record cells to 2000000 and individual text values or field names to 32767 code units; staged width includes derived cache fields
A conservative 128 MiB library retention estimate covers supported metadata and staging; memory and work requests are admission estimates, not total process memory or exact instruction counts, and a trusted provider owns its internal allocations and timeouts
The initial budget callback follows bounded snapshot creation and precedes provider I/O; later checks cover detached provider results and staged record construction
The new cache-definition admission checks the represented root, source and field ownership and rejects ambiguous identities; existing cache-record and shared-item readers retain their typed normalization behavior, so this is not a generic original-XML schema validator
OLAP contexts beyond the finite owned cellset profile and broader cube expression evaluation remain separate requirements, along with unrepresented drivers or schemas, cross-Workbook external Pivot copying, legacy BIFF and XLSB Pivot serialization
The actual acceptance uses a native external ACE cache shared by two views, explicit source changes from a total of 112 to 712, public materialization and save/reopen, and an independent native refresh through the retained connection