Skip to Content
avatar image
Former Member

Reg Mapping error cant produce the target element

Hi gurus,

I have a mapping requirement like

sourceinput

-


||

-


-


record

-


||

-


Tab_id

-


materialno

-


condition type

-


coustomergroup

-


materialpricinggroup

-


datefrom

-


dateto

-


uom

-


amount

in target side

target input

-


||

-


record----


(0-1

-


||

-


coustomergroup(1--unbound) if tab_id is R34

-


||

-


Tab_ID

-


coustomergroup

-


UOM

-


Materialno

-


Materialpricinggroup(1--unbound) if the tab_id R346

-


||

-


tab_id

-


materialpricinggroup

-


datefrom

-


dateto

based on the tab_id i need to create target node i.e if the tab_id is R345 then the fields which are under the node coustomer group

will be populated

if the tab_id is R346 then material pricing group node will populated

i have tried like

tab_id----


}

-


| equalS--


creatif--


coustomergroup

-


|

constant(R345)----


}

this mapping excute successfully if the occurence of the target node coustomergroup is 0---unbound

if is 1----unbound the target gives error mapping exception

my target structure is WSDL there giving as minoccurs=0 but while it is imported to xi it will come as 1---unbound

please help out this

let me know if anything is needed

Edited by: katakoti on May 4, 2011 2:40 PM

Edited by: katakoti on May 4, 2011 2:47 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 04, 2011 at 01:42 PM

    Your requirement seems to be simple ..

    First check whether node occurs or not using exist function. Followed by equals if the tab_id value is R345 do as you need, if the value is not R345 then it should be R346 and do as you want. But initially check whether node exist or not.

    >>my target structure is WSDL there giving as minoccurs=0 but while it is imported to xi it will come as 1---unbound

    please help out this

    Don't understand. If your target structure is WSDL and if you import in PI, it should provide the same definition in message structure. Occurences should not be changed or modified. Please confirm with your target system about message structure. Pi will just replicate what is given in WSDL. It wont change.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi abhishek,

      let me know what i followed is the currect way or am i follow another way

      please give me suggestion how to solve this problem

      Edited by: katakoti on May 6, 2011 3:09 PM

  • avatar image
    Former Member
    Jul 02, 2011 at 07:09 AM

    Hi all,

    Problem resolved by the Third party system(WebMethods) by manually entering the 'min occurs=0'

    Add comment
    10|10000 characters needed characters exceeded