Skip to content

compileDslApp fails with "Data struct "StoreProductsModel" was not indexed" — struct does not exist anywhere in project schema #7293

Description

@Artistikcreations

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Summary
flutterflow ai run / flutterflow ai validate (compileDslApp task) fails every time with:

Bad state: Data struct "StoreProductsModel" was not indexed.

"StoreProductsModel" does not exist anywhere in this project:

  • Not in lib/flutterflow_project/schemas.dart (the project's full struct list)
  • Not in generated_code/lib/backend/schema/structs/ (the actual exported struct files —
    only WeightChatModel, TaskModel, BannerModel, DietPlanModel, BlogModel, CategoryModel,
    ReminderModel, ProductModel, IntroModel, UserModel, MessageModel exist)
  • Not referenced anywhere in the DSL script being compiled (dsl/edit.dart)

Because compileDslApp indexes the whole app (existing project + new DSL), not just the
edited page, this looks like a stale/orphaned struct reference in the backend's struct
index for this project -- possibly left over from a renamed or deleted custom Data Type
(there is a "ProductModel" struct and an "alternativeProducts" Firestore collection with
similarly-named product fields (product_brand, product_image_url, product_url, safety_win),
suggesting "StoreProductsModel" may be a prior name for one of these that never got
cleaned up in the backend index).

Affected page/script

  • dsl/edit.dart, buildEditFlow, page "FoodDislikesPage" (route /food-dislikes)
  • The page definition itself does not reference any struct -- it's a simple text field +
    save button writing to a string app-state field.

Expected Behavior

Supporting evidence

  • The CLI's own diagnostics tooling (flutterflow ai support case) auto-flagged this as a
    recurring bug pattern across all 3 runs: candidate id isscand_001,
    signature compileDslApp|bad state: data struct "storeproductsmodel" was not indexed.
  • Full support bundle generated locally at:
    .flutterflow/support/cases/case-2026-07-14T00-23-08-118-brs8pg/
    (includes report.html, run trace, archived source, workspace snapshot -- happy to attach
    if useful)

Steps to Reproduce

Reproduction

  1. From this workspace, run: flutterflow ai validate dsl/edit.dart --project-id larissa-copy-whats-reallyinit-jy8cu4
  2. compileDslApp fails immediately (~140ms) with the error above.
  3. Reproduced identically across 3 separate attempts:
    • run 2026-07-14T00-12-35-931-tkri3f
    • run 2026-07-14T00-15-54-424-f710fw
    • run 2026-07-14T00-23-08-118-brs8pg
      All dry-run, all failed the same way, nothing pushed (pushed: false in every case).

Impact
Blocks any push (flutterflow ai run) for this project entirely, since compileDslApp runs
as part of every validate/run regardless of which page/component is being edited.

Workaround
None found yet -- unable to push any DSL change to this project via the AI CLI while this
persists, since the whole-app compile step fails before the specific page/component change
is ever evaluated.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

Reproduction 1. From this workspace, run: flutterflow ai validate dsl/edit.dart --project-id larissa-copy-whats-reallyinit-jy8cu4 2. compileDslApp fails immediately (~140ms) with the error above. 3. Reproduced identically across 3 separate attempts: - run 2026-07-14T00-12-35-931-tkri3f - run 2026-07-14T00-15-54-424-f710fw - run 2026-07-14T00-23-08-118-brs8pg All dry-run, all failed the same way, nothing pushed (pushed: false in every case). Impact Blocks any push (flutterflow ai run) for this project entirely, since compileDslApp runs as part of every validate/run regardless of which page/component is being edited.

Visual documentation

I am using Claude Code Sonnet 5 as my coding agent.

Environment

**Project ID:** larissa-copy-whats-reallyinit-jy8cu4
**FlutterFlow AI CLI version:** 0.0.36
 FlutterFlow Desktop: Windows
OS Name: Microsoft Windows 11 Pro
Brave Browser: v1.92.138

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions