Create a Target based on Condition
I have a scenario like, based on a filed value the target node should be created /not created.
if i have a field value(UDF) "true" , target should be created with respective fields mapped to that target.
if i have a field value(UDF) "false" , target should NOT be created.
Above mentioned is my mapping to Target.
Target gets created if the UDF value is "true"
But if value is false, getting error message as target message not created, please check your xsd.
How to achieve this scenario.
Please apply the condition to targer Header node instead of MT node and see if it works.
The mapping fails because MT_T node is mandatory node with 1..1 cardinality so if you don't create this node, mapping will fail.
So please apply the condition to Header node with 0..n cardinality.
Also apply removecontext to tSalutaion source node.