Skip to content

mdl: GET XLS DATA is never resolved, so the metasd COVID model fails #555

Open

Description

@bpowers

Vensim's GET XLS DATA (and the rest of the GET XLS family) is never resolved, even when a data provider is configured: only GET DIRECT ... calls are read.
The variable is left with an empty equation and the model fails with EmptyEquation.
GET XLS * should be read the way GET DIRECT * is.

Example

From test/metasd/covid19-us-homer/homer v8/Covid19US v8.mdl:

reported dead data := GET XLS DATA('Covid19US data.xlsx', 'Data', 'c', 'd5')

Five *_data variables like this are empty after import, so the model cannot simulate.

Why it matters

Seen in a real model (the metasd COVID model by Homer and Fiddaman).
GET XLS is the older spelling, which may make it common in older models (unverified).
The model's SSTATS multi-output macro imports correctly; the data is the only thing stopping a full run.

Fix

  1. Treat GET XLS DATA/CONSTANTS/LOOKUPS as aliases of the matching GET DIRECT calls in parse_get_direct.
    That the argument lists are identical is unverified; check vensim.com/documentation/fn_get_xls_data.html.
  2. Check in Covid19US data.xlsx.
    test/metasd/covid19-us-homer/PROVENANCE.md says the file was extracted there, but it was never checked in.

Comparing the run against Vensim needs a Vensim reference output too, which #561 covers.

Pointers

  • src/simlin-engine/src/mdl/convert/external_data.rs: is_get_direct_ref, parse_get_direct
  • src/simlin-engine/src/data_provider/excel_provider.rs (behind the ext_data feature)
  • corpus_sstats_multi_output_materializes in tests/integration/simulate.rs

Activity

  1. added
    engine
    compat
    on Jun 8, 2026
  2. changed the title [-]engine: metasd COVID model not simulation-tier-eligible -- unsatisfied GET DIRECT/GET XLS DATA external data blocks full SSTATS reference validation (Phase 7 corpus scope)[/-] [+]mdl: GET XLS DATA is never resolved, so the metasd COVID model fails[/+] on Oct 12, 2026
  3. added
    enhancement
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatengineenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions