Skip to Content
author's profile photo Former Member
Former Member

Error in response

Hi Experts,

Facing one issue in response side, response has trigged from CRM to a other system.

Error is,

Transmitting the message using connection SOAP_ failed, due to: Error encountered while executing mapping: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MeterJobEnquirySRV_To_MeterJobEnquiryCRM_; Details:; Runtime exception when processing target-field mapping /ns1:MeterJobEnquiryResponse/YT_JOB_DETAIL/item/JOB_REF_NUMBER; root message: Exception:[java.lang.ArrayIndexOutOfBoundsException: while trying to load from index 2 of an object array with length 2, loaded from a local variable at slot 17] in class method readJob[,,,,,,,,,,,,,,]

For perticular node we have used a below mapping and udf,

public void readJob(ResultList job_ref_number, ResultList pointOfDelivery, ResultList meterAccessInfo, ResultList scheduledDate, ResultList srvStatus, ResultList srvException, ResultList srvCancelled, ResultList earliestAppointmentTime, ResultList latestAppointmentTime, ResultList appointmentType, ResultList creationDate, ResultList appointmentNotes, ResultList meterReadingAgent, ResultList appointmentTimeSlot, Container container) throws StreamTransformationException{

int i=0;

String[] temp;


String data=al.get(i)+"";

temp = data.split("\t", -1);





accrording to UDF,as per "al.size()" the program will be exuquted.How works this kind of udf?From where exactly the inputs are put in UDF?



mapping.PNG (48.4 kB)
Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2015 at 11:59 AM

    Hi Arthita,

    The error is on your message mapping, so could you check it by copying the payload and test it on yout message mapping, so you could determine exactly the issue.



    Add comment
    10|10000 characters needed characters exceeded