Skip to content

CREATE EXTERNAL ENTITY accepts non-existent OData client without validation #417

Description

@retran

Description

CREATE EXTERNAL ENTITY does not validate that the referenced OData client exists. An entity can be created pointing to a non-existent client.

Reproduction

CREATE EXTERNAL ENTITY MyModule.FakeEntity (
  Name: String(200)
) FROM MyModule.NonExistentODataClient ENTITY_SET 'Products';

Expected: Error "OData client not found".
Actual: Entity created successfully with no validation.

Environment

  • mxcli: v0.7.0-257-ga07e7e0

Related

Activity

  1. github-actions commented on Apr 30, 2026

    @github-actions

    Issue Triage

    Summary:
    The issue reports that CREATE EXTERNAL ENTITY does not validate the existence of the referenced OData client, allowing creation of entities that point to a non‑existent client.

    Checklist (bug report)

    Required info Present? Details
    mxcli version ✅ v0.7.0-257-ga07e7e0
    Mendix version ❌ Not mentioned
    Scenario (what was tried) ✅ MDL CREATE EXTERNAL ENTITY statement
    Expected output ✅ Error “OData client not found”
    Experienced output ✅ Entity created successfully, no validation
    AI bug report (mxcli diag --bundle or session log) ❌ Not provided

    Missing information:

    • The Mendix version of the project you’re working with (e.g., 10.x, 9.x).
    • A diagnostic bundle or session log from mxcli diag --bundle (or at least the relevant log excerpt) to help reproduce the issue.

    Could you please add those details? Thanks for the report!


    Automated triage via OpenRouter — workflow source

  2. retran commented on Apr 30, 2026

    @retran
    ContributorAuthor

    Reproducing test cases: integration-test-cases.md §17.3

  3. added 2 commits that reference this issue on Sep 8, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions