Data action fails during testing


Note: This article applies to the Adobe, AWS Lambda, Google, Microsoft Dynamics 365, PureCloud, Salesforce, web services, and Zendesk data actions integrations.

When you test data actions for the data actions integrations, the actions can fail due to authentication, processing, or remote endpoint issues. PureCloud returns responses about failures with the following error codes:

  • ACTION.AUTHENTICATION
  • ACTION.PROCESSING
  • ACTION.REMOTE_ENDPOINT

ACTION.AUTHENTICATION

This error code indicates that an error occurred either in PureCloud or in the remote third-party service during authentication to the remote endpoint. 

Example response

{
    "errorCode": "INVALID_CREDENTIALS",
    "status": 400,
    "correlationId": "43436e96-5c19-4c52-b951-4ea05d9a9af7",
    "entityName": "msDynamics",
    "userMessage": "There was an issue validating the credentials.",
    "userParams": [],
    "details": [
        {
            "errorCode": "ACTION.AUTHENTICATION"
        }
    ],
    "errors": [
        {
            "errorCode": "INVALID_CREDENTIALS",
            "status": 400,
            "userMessage": "Request to backend service failed.  Response from web service: {\"error\":\"invalid_grant\",\"error_description\":\"AADSTS50126: Invalid username or password\\r\\nTrace ID: 5a830f2e-1978-47f4-a49c-8bfb208f8100\\r\\nCorrelation ID: 0ac36657-3a9a-43b9-9101-fde463adba2a\\r\\nTimestamp: 2019-02-11 14:17:11Z\",\"error_codes\":[50126],\"timestamp\":\"2019-02-11 14:17:11Z\",\"trace_id\":\"5a830f2e-1978-47f4-a49c-8bfb208f8100\",\"correlation_id\":\"0ac36657-3a9a-43b9-9101-fde463adba2a\"} [53df0750-c233-4434-9d36-6377ededb014]",
            "userParams": [],
            "details": [],
            "errors": []
        }
    ]
}

ACTION.PROCESSING

This error code indicates that an error occurred in PureCloud during the processing of an endpoint.

Example response

{
    "errorCode": "NOT_FOUND",
    "status": 404,
    "correlationId": "a04c66e5-a2ec-46f3-9c7f-d904cd7e46cc",
    "userMessage": "Action with id static_-_Salesforce-GetAccountByPhoneNumber_-_37f5a780-70d7-408c-9cf7-8cd4cc7265fc was not found",
    "userParams": [],
    "details": [
        {
            "errorCode": "ACTION.PROCESSING"
        }
    ]
}

ACTION.REMOTE_ENDPOINT

This error code indicates that an error occurred at the remote endpoint, but not does not involve PureCloud. For example, an action attempts to retrieve a contact based on a phone number, but the contact doesn’t exist in the service that the action is contacting. 

Example response

{
    "userMessage": "The requested resource was not found.",
    "errorCode": "NOT_FOUND",
    "correlationId": "fb9dda21-979f-4718-b772-8ecc3fbb7dac",
    "details.errorCode": [
        "ACTION.REMOTE_ENDPOINT"
    ],
    "status": 404
}

For more information, see Test data actions for integrations.

For more information about the integrations, see About the data actions integrations.