cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem

Former Member
0 Kudos

Hello all,

I have a mapping issue, I have mapping like the following:

Item 1

- Productname

- Extra Info

Item 2

- Productname

- Extra Info

Item 3

- Productname

- Extra Info

And going to map it. When alle fields are filled in Productname and Extra Info then there is no problem. If for example the field "extra Info" for Item 2 is missing and Extra Info for Item 3 is not missing then I still do not get my Extra Info on Item 3...

Does anyone have an idea???

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I constructed a test scenario with the information you give us:

I used the following DT

item cardinality: 1..unbounded

ProductName cardinality: 1..1

ProductInfo cardinality: 0..1

both for source and target MT and I simply created a direct map between the field:

MT_TEST 1..1 -


> MT_TEST 1..1

MT_TEST/item 1..unbounded -


> MT_TEST/item 1..unbounded

MT_TEST/item/ProductName 1..1 -


> MT_TEST/item/ProductName 1..1

MT_TEST/item/ProductInfo 0..1 -


> MT_TEST/item/ProductInfo 0..1

I hope this will help you. For me works well.

Regards,

Salvatore

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Koopmann

The only thing u missed is you have not mapped root level node to the target. I mean one level up to "Item". Just map root of the Item in source to root of the Item in the target

******Rewrds point if helpfull

Former Member
0 Kudos

Hi Koopman,

I don't see any issue, just keep the occurrence same as that of source data type...and test..if your source and target structures are same...

Regards,

Former Member
0 Kudos

Hi,

Have u done the mapping test,Take the payload and test the mapping and check the error is coming or not.

Regards,

phani

Former Member
0 Kudos

When you are talking about mapping I think it is a good idea to explain well which is the data type of the source message and the data type of the target message.

I can only try to infer it.

If I understand well your source DT Type (DT) should be:

Item 1..unbounded (or 1..3)

Productname 1..1

Extra Info 0..1

Could you give us your target DT ?

After you'll give us it we can give you more help.

Salvatore

Former Member
0 Kudos

That's the fun part the Data Types for source and target are the same... that's why I don't get it...

Former Member
0 Kudos

Hi

If your source and target are same . what is the problem in mapping.where the values are missiing.

Former Member
0 Kudos

When I miss a value and the next item does contain a value, a lose the next value, that is the problem...

Former Member
0 Kudos

Are you trying to merge extra Info fields?

Otherwise its one to one mapping. Also mention currently you mapped your message types?

Former Member
0 Kudos

Mapped my MT and did a 1 on 1 mapping...