Skip to Content
avatar image
Former Member

Create a Target based on Condition

Hi Experts,

I have a scenario like, based on a filed value the target node should be created /not created.

ex:

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.

Thanks,

Baskar

img1.png (23.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2013 at 07:59 AM

    Hi,

    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.

    Regards,

    Beena.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2013 at 08:17 AM

    Additional Info:Error message popup

            Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD

    See error logs for details    

    Add comment
    10|10000 characters needed characters exceeded