When creating a microflow with a parameter whose type is an entity from a different module (e.g., FeedbackModule.Feedback in a microflow in MyFirstModule), mxcli fails with a misleading error message.
- mxcli version: Current (as of 2026-01-19)
- Mendix version: 11.6.0
- Platform: macOS (Darwin 25.2.0)
-
Connect to a Mendix project:
./mxcli -p MesDemoApp.mpr
-
Try to create a microflow with a cross-module entity parameter:
CREATE MICROFLOW MyFirstModule.TestMicroflow ( $Feedback: FeedbackModule.Feedback ) RETURNS Boolean AS $IsValid BEGIN DECLARE $IsValid Boolean = true; RETURN $IsValid; END; /
The microflow should be created with:
- Parameter
$Feedbackof typeFeedbackModule.Feedback - Return type
Boolean
The command fails with the error:
Error: entity '.FeedbackModule' not found for parameter 'Feedback'
Additionally, parser warnings are shown:
line 2:27 mismatched input '.' expecting ')'
The error message entity '.FeedbackModule' not found suggests the parser is incorrectly splitting the qualified entity name FeedbackModule.Feedback:
- It appears to interpret
FeedbackModuleas.FeedbackModule(with a leading dot) - The entity name
Feedbackis being parsed separately
The parser seems to expect the parameter type to end at the module name, treating the . as an unexpected token.
$Feedback: FeedbackResult: Microflow is created, but parameter type becomes Void instead of FeedbackModule.Feedback.
./mxcli -p MesDemoApp.mpr -c "CREATE MICROFLOW MyFirstModule.TestParam(\$Feedback: FeedbackModule.Feedback) RETURNS Boolean AS \$IsValid BEGIN DECLARE \$IsValid Boolean = true; RETURN \$IsValid; END; /"Result: Same error - entity '.FeedbackModule' not found
./mxcli -p MesDemoApp.mpr -c "EXECUTE SCRIPT '/tmp/test.mdl'"Result: Same error
The mxcli check command reports syntax as valid:
Checking syntax: /tmp/val_feedback_simple.mdl
✓ Syntax OK (1 statements)
But execution still fails, indicating a disconnect between the syntax checker and the executor.
Creating a microflow without entity parameters works fine:
CREATE MICROFLOW MyFirstModule.TestMicroflow()
RETURNS Boolean AS $IsValid
BEGIN
DECLARE $IsValid Boolean = true;
RETURN $IsValid;
END;
/Result: Created microflow: MyFirstModule.TestMicroflow
This bug prevents using mxcli to create microflows that:
- Accept entity parameters from other modules
- Are common patterns like validation microflows (VAL_*) in custom modules that validate Marketplace module entities
The parameter type parser should correctly handle fully qualified entity names in the format Module.Entity. The . should be recognized as a namespace separator, not treated as an unexpected token.
The skill documentation in .claude/skills/write-microflows.md shows the syntax:
-- Entity types
$Customer: Module.Entity
This confirms the intended syntax supports qualified entity names.