Description
mxcli check script.mdl -p app.mpr --references does not reject an INDEX on a String(unlimited) attribute. However, Mendix/RDBMS cannot create database indexes on TEXT/CLOB columns, so Studio Pro raises a validation error.
Steps to Reproduce
CREATE PERSISTENT ENTITY MyModule.Customer (
Code: String(unlimited) NOT NULL
)
INDEX (Code);
mxcli check script.mdl -p app.mpr --references
# ✓ All references valid ← should fail
Expected Behavior
Reference validation should report an error:
Error: INDEX on attribute 'Code' is not allowed — String(unlimited) maps to TEXT/CLOB which cannot be indexed. Use a fixed length, e.g. String(200).
Actual Behavior
Validation passes silently. The error is only caught later by Studio Pro or mx check.
Impact
AI agents (and human developers) who rely on mxcli check --references as a pre-flight gate will produce invalid models that fail only at the Studio Pro validation stage.
Description
mxcli check script.mdl -p app.mpr --referencesdoes not reject anINDEXon aString(unlimited)attribute. However, Mendix/RDBMS cannot create database indexes on TEXT/CLOB columns, so Studio Pro raises a validation error.Steps to Reproduce
mxcli check script.mdl -p app.mpr --references # ✓ All references valid ← should failExpected Behavior
Reference validation should report an error:
Actual Behavior
Validation passes silently. The error is only caught later by Studio Pro or
mx check.Impact
AI agents (and human developers) who rely on
mxcli check --referencesas a pre-flight gate will produce invalid models that fail only at the Studio Pro validation stage.