cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping - assign value of duplicate items

tharaka_fernando
Contributor
0 Kudos

Dear All,

below is my requirement and the structure I have defined in Message Mapping.

Logic

If Order Item - J_3APOSNR is "Blank" then item_key = "some value".

I defined my mapping as below

this is working fine as long as I pass "J_3APOSNR" value blank ..

But If I set some values to "J_3APOSNR" and repeat "order item" header node more than one , showing an error that item_key cannot be created.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can use "map with Default" function after remove context.

Regards,

Souvik

Former Member
0 Kudos

Map the field just with SplitByValue, could run.

former_member182412
Active Contributor
0 Kudos

Hi Fernando,

Remove the function removeContexts after IfThenElse function, IfThenElse output directly map to ItemKey. (You removing the contexts so it will only create one ItemKey in the output)

Regards,

Praveen.

Harish
Active Contributor
0 Kudos

Hi Fernando,

If ItemKey is mand field then you need to apply the rule and node level as well.

regards,

Harish

tharaka_fernando
Contributor
0 Kudos

Hi Harish,

Item key is not mand field.