Skip to content

regenerating JSON import introduces model error #1734

Closed

Description

@mkrouwel

mxcli v0.29
mx v11.12.4

I have this microflow:
mdl 1; create or modify microflow ExamplesModule.ACT_import () begin @start(85, 200) @position(225, 200) declare $Variable String = ''; @position(449, 200) $Root = import from mapping ExamplesModule.Import_mapping_2($Variable); @position(700, 200) return; end;

When I re-execute this, with a minor change - e.g. position, or rename $Root to $Root2 (otherwise no change is carried out), I get the modeler error CE0243 - The mapping used to return a value of type 'List of ExamplesModule.Root', but now returns a value of type 'ExamplesModule.Root'. Open the action and click OK if this was intended.

After clicking OK the error is gone. However, the error is strange as in the original flow the mapping also returned a value of type ExamplesModule.Root

For completeness the import mapping: mdl 1; create or modify import mapping ExamplesModule.Import_mapping_2 folder 'Resources' with json structure ExamplesModule.JSON_structure_2 { create ExamplesModule.Root { create ExamplesModule.JsonObject_Root/ExamplesModule.JsonObject = JsonObject { CurveNumber = curveNumber, PointNumber = pointNumber, PointIndex = pointIndex, X = x, Y = y } } };

and the JSON structure: mdl 1; create or modify json structure ExamplesModule.JSON_structure_2 folder 'Resources' sample $$[ { "curveNumber": 3, "pointNumber": 5, "pointIndex": 5, "x": "2024-04-15", "y": 1 } ]$$;

Activity

  1. added a commit that references this issue on Nov 5, 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