Skip to Content
0

Error UseOneAsMany - Too few values in the first queue

Feb 16 at 10:12 AM

119

avatar image
Former Member

Hello all,

I have been facing one consistent mapping error for a target field as:

MessageMappingException; Runtime exception when processing target-field mapping /ns0:Transmission/ns0:TransmissionBody/ns0:GLogXMLElement/ns0:Release/ns0:ReleaseLine/ns0:Refnum; root message: Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Too few values in the first queue in function useOneAsMany. It must have the same number of contexts as the second queue] in class com.sap.aii.mappingtool.flib7.NodeFunctions method useOneAsMany[[Ljava.lang.String;@70c973d0, [Ljava.lang.String;@4f90b677, [Ljava.lang.String;@11af2452, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@397e89e2, com.sap.aii.mappingtool.tf7.rt.Context@2123aee]

Error says that the context value of first and second fields should be same which is satisfied from the payload i use. The first and second field has one context each, still it shows error

Regarding system details: SAP PI 7.5

Thanks & Regards,

Somesh Mohan

10 |10000 characters needed characters left characters exceeded
Former Member

mapping-img1.jpg

mapping-img2.jpg

Please find attached screenshots.

Also, correction in System details: I am using SAP 7.4

mapping-img1.jpg (16.4 kB)
mapping-img2.jpg (61.5 kB)
0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jan Holakovsky Feb 28 at 11:02 AM
0

Hello,

I think this error happens, when the 3rd argument is missing. Can you check with mapping test or submit the data for which you have the error in XML format as it is in PI?

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Jan,

Thank you for your valuable response. My issue got resolved.

Problem was with the missing field data generated from SAP.

Thanks & Regards,

Somesh

0