Skip to Main Content

API, CLI, SDK & Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to perform Payroll Rollback using Oracle Fusion HCM REST API – receiving 403 WAF Block, 404 Not Found, or result:false

Malek_Shushari5 days ago

Hello evrybody,

I am trying to perform a Payroll or Quick Pay rollback in Oracle Fusion HCM using the REST API through Postman (and later from Oracle APEX).

Below are the steps I followed and the issues I encountered:

Step 1: Retrieve Flow Instances

I successfully retrieved the Flow Instances using the following REST API:


GET https://<host>/hcmRestApi/resources/11.13.18.05/flowInstances

Example response:

{
 "FlowInstanceId": 300000002526363,
 "FlowName": "Compile All Formulas",
 "Status": "C_ERRORS"
}

The response also includes the action endpoint:

POST /hcmRestApi/resources/11.13.18.05/flowInstances/{FlowInstanceId}/action/performAction

Step 2: Attempt to Perform Rollback

I sent the following POST request:

URL:

https://<host>/hcmRestApi/resources/11.13.18.05/flowInstances/300000002526363/action/performAction
Content-Type: application/vnd.oracle.adf.action+json
Authorization: Basic <username>:<password>

Body:

{
 "actionName": "ORA_BULK_ROLLBACK"
}

Issues Encountered

I am experiencing different responses depending on the FlowInstanceId and environment:

  1. Sometimes I receive:
{
 "result": "false"
}

with HTTP status 200 OK, but the rollback is not performed.

2.Sometimes I receive:

404 Not Found
Requested resource could not be found.

even when using a valid FlowInstanceId retrieved from the API.

3.When using Postman, I often receive:

403 Forbidden
W4S-206: Blocked by WAF4SaaS

Questions:

  • What is the correct way to perform a Payroll or Quick Pay rollback using the Fusion HCM REST API?
  • Is rollback supported for all FlowInstance types, or only specific payroll-related flows?
  • Why does a valid FlowInstanceId sometimes return 404 Not Found?
  • What causes the "result": "false" response even when the request is successful (HTTP 200)?
  • How can I resolve the WAF4SaaS (403 Forbidden) issue when calling the API from Postman?
  • Are there specific roles, privileges, or additional headers required to perform rollback via REST API?
Comments