cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP-Error during C4C / Cloud Platform Portal Integration (Display Service Requests)

0 Kudos

Dear Experts,

in our scenario we want to integrate our C4C-Tenant with a Cloud Platform Portal Site to create and display Service Requests from C4C.

Our first requirement - create a service request from the portal site to c4c - is still working. Our second requirement - display the service requests from c4c in the portal site - makes some problems.

We downloaded the portal site template from the SAP Git Repository (here), deployed it to SAP Cloud Platform and consume the C4C OData Service (as defined in the documentation and the standard application).

1. If we open the Service Request Tab we get following console error message (the server found no resource that is equal with the data-service-URI):

jquery.sap.global-dbg.js:1058 2018-09-20 14:56:07.139199 The following problem occurred: HTTP request failed404,Not Found,<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="de">Der Server hat keine Ressource gefunden, die mit dem Data-Services-Request-URI übereinstimmt</message></error> -


2. In the network tab of F12 we found the non working entity set:

https://flpnwc-<account>.dispatcher.hana.ondemand.com/sap/fiori/servicerequests/destinations/c4c/sap...ServiceRequestCollection/$count?$filter=ReporterEmail%20eq%20%<e-mail>ServiceRequestUserLifeCycleStatusCodeText%20ne%20%27Completed%27

The destination in our Cloud Platform Portal is working, because we can create a service request. The OData in C4C exists and the application code has not changed.

Any ideas why we get this error?

Best Regards,

Tim

Accepted Solutions (0)

Answers (3)

Answers (3)

bernd_wychnanek
Discoverer
0 Kudos

Hi Ido,

thanks for your answer. I can create a ticket via the portal by myself. But as soon as the portal trys to call up my existing request, I get the error message 404 (end user e-mail exists in C4C Account Contacts).

Error Message is (screenshot.png😞

{ "message": "HTTP request failed", "headers": [], "statusCode": 404, "statusText": "", "responseText": "<?xml version=\"1.0\" encoding=\"utf-8\"?><error xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><code/><message xml:lang=\"de\">Der Server hat keine Ressource gefunden, die mit dem Data-Services-Request-URI übereinstimmt</message></error>" }

Do you have an idea how to fix it?

Thank you. Best regards

Bernd

former_member199536
Active Participant
0 Kudos

Hi Tim,

The servicerequests app connects to C4C using a technical user. The app retrieves existing ServiceRequests from C4C into the portal based on the logged-in user's email. This way every user has access only to his service requests.

You need to verify that the email of the end user you're using to login to the portal exists in a C4C Account Contacts.

Regards, Ido

bernd_wychnanek
Discoverer
0 Kudos

Hi Tim,

i have exactly the same problem. Do you have already a solution?

Best regards

Bernd