Integration

Get Involved. Join the Conversation.

Topic

    Mohana Gopal Selvam
    TRANSLATION-ERROR-01Answered
    Topic posted September 25, 2019 by Mohana Gopal SelvamSilver Crown: 22,500+ Points, last edited September 25, 2019, tagged Orchestration, REST 
    31 Views, 2 Comments
    Title:
    TRANSLATION-ERROR-01
    Content:

    Hi,

    I have requirement like, I have to invoke two services and the outcome of the services need to combine and send as one response.

    For Ex: Service 1 returns A & B. Service 2 returns X & Y. Expected result is A, B, X & Y

    For that I have done

    1. Define Trigger API and defined the combined response

    2. Invoke Service 1 (Rest)

    3. Invoke Service 2 (Rest)

    4. Map the response of Service 1 & Service 2 in single mapping.

    Now I got the below error:

    {
      "type" : "10.5.3",
      "title" : "exception occurred while translating the response into the accepted media type.",
      "detail" : "oracle.cloud.connector.api.CloudInvocationException: ORABPEL-15236\n\n",
      "o:errorCode" : "TRANSLATION-ERROR-01",
      "o:errorDetails" : [ {
        "type" : "NA",
        "instance" : "NA",
        "title" : "NA",
        "o:errorPath" : "NA",
        "o:errorCode" : "NA"
      } ]
    }
    

     

    1. The above approach is correct?

    2. If the approach is correct, then how to fix the issue?

    Thanks,

    Mohan

     

    Image:

    Best Comment

    Mohana Gopal Selvam

    Hi Hemanth,

    Thanks for your response.

    I just introduced introduced mapping for one service, now it is working. 

    Thanks,

    Mohan

    Comment

     

    • Hemanth Lakkaraju

      The problem statement gives a wrong impression - Actually, You are not combining both responses here, but creating a response with values from both responses.

      This case, looking at the mapping gives an impression that it is a mapping/data issue. The second response (holding_amount) is within a repeating element and you are mapping directly to same field on right side. Assuming it is a non-string element (by the name of the field, on both sides), the value returned to map will be concatenated string of all items within left side (since items is a repeating element) and can lead to a translation error.

      What are the values you have for each element in tracking screen?

    • Mohana Gopal Selvam

      Hi Hemanth,

      Thanks for your response.

      I just introduced introduced mapping for one service, now it is working. 

      Thanks,

      Mohan