I have a message that go through for a transform to validate a schema, the problem is although that message is defined into the Contruct Shape, when I generate the solution appear this two errors about this message:
error X2110: Use of Unconstructed Message ‘Mensaje_CR_Out’ error X2180: ‘Mensaje_CR_Out’: the message is not inicializated in the construct instruct
Is the construct under a decide statement, then after the decide statement you are trying to reference it? Think of scope in C#, if you define a variable under an if statement, then that variable is not available outside the if statement.
I have had cases where I have to construct the message in the left side of an Decide shape/rule, then also build a dummy/empty message on the right side of the Decide shape (the else). The compiler doesn’t know which side of the decide shape will execute, and so both side have to construct the message, if you want to use the message after the decide shape.
Hope that helps. If not, please provide more details.