HotXLS Docs

External relational Pivot provider refresh

Version 2.384.292 adds an explicit provider path for represented external relational Pivot caches whilst 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, materialisation 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 the cache model

Supported cached queries and native materialisation use the represented records without substituting a worksheet source; refresh changes the shared cache records and materialisation remains a separate explicit operation

Provider schema and ownership

The provider receives detached connection and query metadata and keeps ownership of its own implementation; returned ColumnNames must hold 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, whilst column names remain optional for existing QueryTable providers

Refresh keeps 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 turn the operation away

Guarded staging and cancellation

The library takes 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; no rollback of it is performed by the library

The callback contract excludes freeing borrowed objects, dangling references and unsynchronised 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 pre-empted by these callbacks

Embedded model metadata transport

Version 2.384.359 opens genuine Excel data-model workbooks with extended loading connection type100 and keeps 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 mapped neither to ODBC nor to ordinary OLE DB execution

File and caller-stream Open, Save and normal reopen keep 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 keep 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 serialisation preserves the complete expanded XML structure whilst adding the actual connection count and explicit integrated-credential defaults

The genuine native witnesses carry 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 turns OLAP away before calling Fetch

See owned embedded OLAP cellsets for the later finite explicit provider refresh, detached cached query and native numeric materialisation profile; metadata transport alone does not grant execution features, and broader cube expression evaluation remains unfinished

Resource and format boundaries

MaxRows is capped at 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 takes in 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 comes before 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 normalisation behaviour, 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 serialisation

The actual acceptance uses a native external ACE cache shared by two views, explicit source changes from a total of 112 to 712, public materialisation and save/reopen, and an independent native refresh through the retained connection