SAP Knowledge Base Article - Public

2959054 - Second OData Call Failed With 404 Error When Session Reuse is Enabled in CPI

Symptom

You have an integration flow in CPI with two OData service as below:

  • Service 1: https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi (where XXXXXX is the tenant URL)
  • Service 2: https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/analytics/ds/Fndclmb.svc

Session reuse is enabled in CPI. The sessions are cached in CPI for a domain. In this case both services are from the same domain https://myXXXXXX.crm.ondemand.com/. The session received from Service 1 is used in Service 2 and the service responds with 404 Not Found.

Without session reuse (without cookies) the service 2 works fine. If the cookies are not valid for Service 2, then the service should return 401. But here it returns 404.

Environment

SAP Cloud for Customer

Reproducing the Issue

To reproduce the error within Postman and configured HTTP-Session-Reuse = IFlow:

https://XXXXXX.hana.ondemand.com/gw/odata/RS/RS_CPI_ECA_ODATAAPI;v=1/isSalesDataValid (where XXXXXX is the tenant URL)

accept:application/json

Cause

It depends on the users that are involved here.

Resolution

  • If you use a business user and this means that you use the same users for both services, we need to find out why you get an error message and why it is not working. Please create an incident. 
  • If you use technical user and this means that you use different users for both services, it won't work.

Keywords

Iflow, two different OData get calls, different basic credentials for authentication, activated HTTP session reuse, second OData call fails, , KBA , AP-RC-ODF , OData framework (C4C Only) , LOD-HCI-PI-CON-OD , OData Adapters , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions