SAP Knowledge Base Article - Public

2820386 - Error Message "Error Code 401 during http call: Missing Credentials"

Symptom

User enabled Address Validation in the C4C system and configuration was performed in reference to the Help Center Documentation

But While entering the address into an Account, system throws this error message:

Error Code 401 during http call: Missing Credentials

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Customers work center
  2. Select Accounts view
  3. Create a new Account
  4. Maintain a Address

Cause

Basic authentication which might be used for your user testing is not supported for the C4C usage of the service. Once the communication arrangement is setup in C4C then you will need to export the client certificate and import into your SCP account. Information about doing this can be found at Client Certificate Authentication

possible causes:

  1. Verify that the certificate version of the endpoint is being used. The URL being used would contain “.cert.” in it. [eg: <system>.<Suser>trial.cert.hanatrial.ondemand.com
  2. Verify the issuer of the certificate is in the list of trusted certifying authorities provided at https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/fe957070f9f7447cb886eb65e6a0543e.html

Resolution

Ensure that the URL you are using in the communication arrangement has '.cert' in it.

As present, DQM microservices supports only client certificate is supported when communicating with the DQM Service for Address Validation. Even though a communication arrangement supports storing the credentials for Basic authentication, it is not supported for address validation within C4C.

In order to use the "cert" endpoint, you will need to import the client certificate specified in the communication settings into the consumer account (Susertrial).

Important Documentations:

  1. Information on how to do this can be found in the Data Quality Management microservices help documentation
  2. Information on 


Points to remember:


- Self-signed certificates are not supported.
- An alias name needs to be assigned to the certificate when imported into the keystore and the alias needs to be assigned to the DQMMICRO_POWERUSER role.
- The keystore must be named dqmm.jks

Keywords

dqm, microservices, 401, missing credentials, authorization , KBA , LOD-LE-RC-ADR , Address , EIM-DQM-SVS , Microservices , Problem

Product

SAP Cloud for Customer add-ins 1908 ; SAP Cloud for Customer add-ins 1911 ; SAP Cloud for Customer core applications 1811