SAP Analytics - API key error when connecting to AppDynamics Event Service and Analytics

Symptoms

When connecting to the 'Analytics events' account of the customer, the following error message occurs:

Error@5C\QError@ HTTP response body: {"statusCode":401,"code":"NotAuthorized.Account","message":"HTTP 401 Unauthorized","developerMessage":null} @35\QLong text exists@

 

Screenshot from the ticket:

Reason and prerequisites

An API key has not been properly generated; there were insufficient authorizations set during its generating.

Solution

How to generate the API key is described in this guide.

Once the API key is generated, it has to be inserted into /DVD/APPD_CUST and changes have to be saved as well.