Skip to Content
avatar image
Former Member

Error UseOneAsMany - Too few values in the first queue

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 28 at 11:02 AM

    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?

    Add comment
    10|10000 characters needed 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