MxCli version 0.16
Mx version 11.8.0 and 11.12.1
create or modify microflow ExamplesModule.looped_nok ( $OrderList: List of SourceExamplesModule.Order ) returns List of SourceExamplesModule.Order as $OrderList folder 'Input' begin @position(156, 200) $OrderLinesToReturn = create list of ExamplesModule.OrderLine; @position(536, 200) @anchor(from: right, to: left) loop $IteratorOrder in $OrderList begin @position(75, 100) retrieve $OrderLines from $IteratorOrder/ExamplesModule.OrderLine_Order; @position(250, 100) if length($OrderLines) > 0 then @position(425, 100) add $OrderLines to $OrderLinesToReturn; else @position(250, 173) @anchor(to: top) continue; end if; end loop; @position(914, 200) return $OrderList; end; /
When executing mxcli -c with the statement above, the cli returns a success state. However, when opening the project, this fails with the message starting with System.Collections.Generic.KeyNotFoundException: The given key '806fca46-5c4b-46f8-a890-4d24dd29c24f' was not present in the dictionary. The split condition can be replaced but does not change the result. When the split and continue is left out, this behavior does not happen.
This particularly happens with a split and/or continue inside of a loop activity, but I cannot find out exactly when and when not.
I suggest that either the cli provides an error message when executing these command, and that when the cli returns success, my expectation is that the project can be loaded with studio pro.
MxCli version 0.16
Mx version 11.8.0 and 11.12.1
create or modify microflow ExamplesModule.looped_nok ( $OrderList: List of SourceExamplesModule.Order ) returns List of SourceExamplesModule.Order as $OrderList folder 'Input' begin @position(156, 200) $OrderLinesToReturn = create list of ExamplesModule.OrderLine; @position(536, 200) @anchor(from: right, to: left) loop $IteratorOrder in $OrderList begin @position(75, 100) retrieve $OrderLines from $IteratorOrder/ExamplesModule.OrderLine_Order; @position(250, 100) if length($OrderLines) > 0 then @position(425, 100) add $OrderLines to $OrderLinesToReturn; else @position(250, 173) @anchor(to: top) continue; end if; end loop; @position(914, 200) return $OrderList; end; /When executing mxcli -c with the statement above, the cli returns a success state. However, when opening the project, this fails with the message starting with System.Collections.Generic.KeyNotFoundException: The given key '806fca46-5c4b-46f8-a890-4d24dd29c24f' was not present in the dictionary. The split condition can be replaced but does not change the result. When the split and continue is left out, this behavior does not happen.
This particularly happens with a split and/or continue inside of a loop activity, but I cannot find out exactly when and when not.
I suggest that either the cli provides an error message when executing these command, and that when the cli returns success, my expectation is that the project can be loaded with studio pro.