SAP Knowledge Base Article - Public

3522858 - "Error occurred when transitioning the workflow" error message and responseCode 400 displayed after Post approveWfRequest

Symptom

"Error occurred when transitioning the workflow" error message and responseCode 400 displayed after Post approveWfRequest

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors HCM Suite

  • approveWfRequest Odata API entity

Reproducing the Issue

POST https://customer_host_test/odata/v2/approveWfRequest?$format=json&wfRequestId=1000L

Response:
{
    "error": {
        "code": "COE_GENERAL_BAD_REQUEST",
        "message": {
            "lang": "en-US",
            "value": "[COE0018]Error occurred when transitioning the workflow."
        }
    }
}

Cause

Incorrect request headers lead to unrecognized hosts by the background program.

Resolution

Please remove the host and x-forwarded-host headers when sending SF Odata API requests. We do not need to configure x-forwarded-host.

Keywords

x-forwarded-host, host, COE_GENERAL_BAD_REQUEST, approveWfRequest, Job Info Workflow approve, EmpJob Approve, incorrect host, incorrect end-point, incorrect API end point, incorrect domain. , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HCM Core 2405

Attachments

Pasted image.png
Pasted image.png
Pasted image.png