SAP Knowledge Base Article - Public

3600297 - Task Chains failed with the Status "Failed (Forbidden)"

Symptom

  • The task chains were working fine and suddenly failed with the status "Failed (Forbidden)". The error message indicates that "The assigned user does not have the privileges necessary to execute this task" or "User does not have permission to run the task."

Environment

SAP Datasphere

Reproducing the Issue

  1. In SAP Datasphere, go to Data Integration Monitor
  2. Select the Task Chain
  3. Task Chain failed with the status "Failed (Forbidden)"
  4. Click on "View Details"
  5. The error message "The assigned user does not have the privileges necessary to execute this task." is shown. 

Cause

Sometimes the issue occurs sporadically and resolves on its own after a short time, after that task chains resume normal operation.
When the system is very busy, the chain takes longer than the usual few minutes, and the following scheduled occurrence is triggered. The second run fails with a "LOCKED" sub-status. As the system is very busy, the "LOCKED" Run takes too long to register, and a "re-try" is initiated a few minutes after the "LOCKED" one. The error is logged as "FORBIDDEN" because it occurred outside the scheduled execution window. 

Alternatively, due to changes on roles of owner of schedule, the same could be lacking Data Integration privileges required for replication. That would be "Update" (for one-off actions) or "Execute" (for scheduled runs). The "Execute" privilege for Data Integration is also required for taking over the scheduled task with another user. 


Resolution

For the time being, the "FORBIDDEN" Runs after the "LOCKED" ones can be disregarded.

See Also

KBA 3536298 - Usage of SAP BW Bridge Process Chains in SAP Datasphere Task Chains
KBA 3299707 - Task Chains are not running or locked
KBA 3496323 - You Have Not Authorized SAP to Run Task Chains or Schedule Data Integration Tasks on Your Behalf
Help page - Privileges and Permissions

Keywords

Task Chains, Failed (Forbidden), Forbidden  , KBA , DS-DI-SCH , Scheduling and Task Chains , Problem

Product

SAP Datasphere all versions