cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issue : Reg

former_member593220
Participant
0 Kudos

Hi Gurus,

In production environment messages are getting failed due to mapping issue, when I am trying to check the issue by taking the error payload it not getting executed in Test tab to check the sortByKey queues. And below is the error message am getting.

mapping /ns0:Messages/ns0:Message1/ns2:MT_LEGACY_PO_EAM/PurchasingOrder/PurchasingDocumentItem/ItemDeliveryDate. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Queues have different lengths in function sortByKey] in class com.sap.aii.mappingtool.flib3.NodeFunctions
Please help me resolving this issue..
Thanks in Advance..!
--
Regards
Raj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Raj,

For ShortByKey Node Function the Two queues Should have same number of Context. For Reference refer the below link

SAPTechnical.COM - Implementation of Node functions

Also, Attach your requirement. So that we can help whether we can Use Shortbykey or we can handle other Node functions for the requirement.

Regard's

Preethi.

iaki_vila
Active Contributor
0 Kudos

Hi Raj,

Amit is right is not so complicated to check the problem. If you read the documentation Standard Functions (SAP Library - SAP Exchange Infrastructure), you will notice that SortByKey needs the same number of elements in the two queues, why?, because  the second queue decide the order of the first one giving the position, for example:

Queue 1:  7 3 8

Queue 2: C B A

Result: : 8 3 7

May be you can use the function Sort?,

Regards.

Former Member
0 Kudos

Hello,

>>Queues have different lengths in function sortByKey]

What more description u want? It's clearly indicating that the arguments in SortByKey function are not having same number of values for field ItemDeliveryDate. So check the same.

Thanks

Amit Srivastava