cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve metadata failed because the OData server returned HTTP code, 401

Luis1001
Explorer
0 Kudos
886

Dear Experts,

Could you help me?
When accessing the cockpit of the Mobile Service and navigating to "Mobile Connectivity," it is returning:

"An error occurred while communicating with the OData server to retrieve the result of request 'https:/xxx/DEST_SAM2205_ONLINE_PPROP/$metadata'.
Error caused by: [-100010] Retrieve metadata failed because the OData server returned HTTP code, 401, with message: Anmeldung fehlgeschlagen."

However, when performing the connection tests with SAP Gateway/OData via the SAP Gateway Client (/N/IWFND/GW_CLIENT) and using the GW user provided by the client, it returns a 200 connection status, as shown in the image.

Luis1001_1-1737374948511.png

Luis1001_3-1737375281654.png

When using the same GW user in the Mobile Service for the connection, it fails to authenticate, returning a 401 error: "Authorization Denied."

Luis1001_2-1737375082982.png

The GET request to the backend http://xxx/sap/opu/odata/MERP/SAP_ONLINE_LOOKUP_EXT_2205 was completed in 158 minutes. The backend's HTTP status is 401.

Thank you in advance!

 

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I suspect the issue is in the SAP Cloud Connector trust to the on-premise system.  This is done through the use of short lived certificates and requires setup both in SCC and the on-premise system through CERTRULE and possibly STRUST if using self-signed certificates from the SCC.  I would start by verifying your SCC configuration to the host and associated settings.

Rakesh4
Explorer
0 Kudos

Hi, Pls check the RZ11 parameters and certificates.