Skip to content

Mendix 11.15: message definitions are documents (MessageDefinition2); nightly 11.15 job fails #987

Description

@ako

The first nightly run of the new Mendix 11.15.0 job (added by mendixlabs#1293) fails: https://github.com/mendixlabs/mxcli/actions/runs/37265807529/job/111622280565. Every other version passes; only mdl/executor fails, with two tests. Both reproduce locally with mxbuild 11.15.0.

Cause: Mendix 11.15 replaced message-definition collections

Measured by mx convert (11.15.0) of an 11.14 project made with mdl-examples/doctype-tests/40-message-definition-examples.mdl:

  • Collection → folder + documents. A MessageDefinitions$MessageDefinitionCollection unit becomes a Projects$Folder with the same unit ID and the collection's name (MD_Order). Each entry becomes its own MessageDefinitions$MessageDefinition2 document inside it.
  • Document shape. Each document has Name, Documentation, Excluded, ExportLevel and ExposedEntity. The ExposedEntity tree is byte-identical to the old entry, apart from $IDs.
  • Mapping link. An import or export mapping loses the MessageDefinition key entirely. MessageDefinition: "MsgTest.MD_Order.OrderMessage" becomes MessageDefinition2: "MsgTest.OrderMessage", i.e. module plus message name.
  • Blank-app mappings. In a blank 11.15 app (FeedbackModule), mappings have MessageDefinition2: "" and no MessageDefinition key.

Symptoms

  1. TestMappingFixtureRoundTrip. FeedbackModule.EXM_PostFeedback and IMM_PostResponse do not round-trip. The writer always adds "MessageDefinition": "", which the 11.15 document does not have. Per the overlay rule, Studio Pro may refuse a document with an unknown property, so this affects every mapping write on 11.15.
  2. TestMxCheck_DoctypeScripts/40-message-definition-examples.mdl. CE0270 "No root element could be found in the schema" at MsgTest.IMM_Order. The mapping's source is written to MessageDefinition, which 11.15 no longer reads.
  3. Not covered by a test. On a converted (or Studio Pro 11.15) project, show message definition collections finds nothing. describe import mapping MsgTest.IMM_Order prints no with message definition clause, so describe → exec would rebuild the mapping with no source.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions