cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory node in target left unmapped

Former Member
0 Kudos

Hi Gurus,

IF below mentioned is the target structure

XYZ 0...unbounded

A 1

B 1

C 1

Will this mapping work...If element " C "is not mapped.

Note: red circle appears next to "C" if not mapped

Accepted Solutions (0)

Answers (3)

Answers (3)

dharamveer_gaur2
Active Contributor
0 Kudos

hi faria

If XYZ is parent node of A,B,C then no need to map. because occurence of Node XYZ is 0...unbounded.

Former Member
0 Kudos

Hi

As the occurence is 0...unbounded...so if you even don't map the fields it will run .

but if your occurence is 1 then it should be mapped ..

otherwise it will give some mapping Error.

Regard's

Chetan Ahuja

Former Member
0 Kudos

HI,

occurence of XYZ is 0...unbounded

"C" is the child node of XYZ , itz occurence is "1" and itz not mapped..

As per my knowledge this mapping shouldnt work..

But strangely ... itz working..

Can any body justify

Former Member
0 Kudos

Hi.

your XYZ..occurance is 0 to unbounded. and your not mapped this XYZ segment with anyfiled..so it is assuming the occurance is 0 so that why C filed is not giving any error.

If u map XYZ segment with constant and check it out..you will get error like leaf node with minOccurs>0 and without mapping..

regards

Ramesh Varanganti

dharamveer_gaur2
Active Contributor
0 Kudos

0 to unbounded means that it is possible the XML received has 0 occurence (no data for that field) to any number of data (unbounded means Maximum occurence not defined).

1 to Unbounded means that the XML received must have atleast 1 occurence (must be present in message) and it could have any number of maximum occurence

Former Member
0 Kudos

Hi,

If the Occurence of the C1 field is Required(i.e occurence =1) means that shld be mapped.

Otherwise it wont work

Regards

Seshagiri