Scenario:
When using the Icon: property on an actionbutton or linkbutton in an MDL script, mxcli accepts references to image collections (e.g. Module.Icons_SVG.cmdFilter24) without any error — both at parse time and during reference validation (--references). However, the Mendix model only
supports icon collections (e.g. Atlas_Core.Atlas_Filled) in the button icon field. Using an image collection reference produces a CE1613 build error at MxBuild time.
Steps to reproduce:
- Create an MDL script with a linkbutton or actionbutton using Icon: pointing to an image collection:
linkbutton lnkFilter (
Caption: 'Filter',
Action: close_page,
Icon: 'DesignSystem.Icons_SVG.cmdFilter24'
)
- Run mxcli check script.mdl -p app.mpr --references → passes with no errors
- Run mxcli exec script.mdl -p app.mpr → executes successfully
- Run mx check app.mpr → fails with CE1613: "The selected custom icon 'DesignSystem.Icons_SVG.cmdFilter24' no longer exists."
Expected behavior:
mxcli check --references should detect that the referenced collection is an image collection, not an icon collection, and report an error — for example:
▎ "'DesignSystem.Icons_SVG' is an image collection; button Icon: requires an icon collection (e.g. Atlas_Core.Atlas_Filled)."
Actual behavior:
mxcli silently accepts the reference and writes it to the model. The error only surfaces at MxBuild time (CE1613), making it hard to diagnose.
Environment:
- mxcli version: (0.19.0)
- Mendix version: 11.12.0
- OS: Windows 11
Scenario:
When using the Icon: property on an actionbutton or linkbutton in an MDL script, mxcli accepts references to image collections (e.g. Module.Icons_SVG.cmdFilter24) without any error — both at parse time and during reference validation (--references). However, the Mendix model only
supports icon collections (e.g. Atlas_Core.Atlas_Filled) in the button icon field. Using an image collection reference produces a CE1613 build error at MxBuild time.
Steps to reproduce:
linkbutton lnkFilter (
Caption: 'Filter',
Action: close_page,
Icon: 'DesignSystem.Icons_SVG.cmdFilter24'
)
Expected behavior:
mxcli check --references should detect that the referenced collection is an image collection, not an icon collection, and report an error — for example:
▎ "'DesignSystem.Icons_SVG' is an image collection; button Icon: requires an icon collection (e.g. Atlas_Core.Atlas_Filled)."
Actual behavior:
mxcli silently accepts the reference and writes it to the model. The error only surfaces at MxBuild time (CE1613), making it hard to diagnose.
Environment: