SAP Application Native Job Fails with 401 Unauthorized in AutoSys
search cancel

SAP Application Native Job Fails with 401 Unauthorized in AutoSys

book

Article ID: 439011

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

When attempting to run or enable the new SAP Application native job type (e.g., for Fiori/SAP Integration Suite), the job fails. The spool file or job logs show the following error message:

 Job failure threshold triggered: Request failed: 401 - Unauthorized 

Additional symptoms may include:

  • Plugin Extension is working as expected, but the Native Job type fails.
  • Errors in sap_config.log indicating a failure to connect to SAP despite correct network pathing.

Environment

Product: AutoSys Workload Automation (AE)

Version: 12.1 or above

Component: SAP Application Native Job Type / Plugin Extension

Cause

A configuration discrepancy exists between the Plugin Extension and the Native Job security credentials.

The Native Job requires AE Security profile setup instead of a user@domain.

Resolution

To resolve the 401 - Unauthorized error, ensure that the security profile for the native job matches the credentials used by the working plugin extension.

  • Identify the user account successfully used by the SAP Plugin Extension (if a POJO was used, if not setup profile as per next step).
  • Open the AutoSys Security Profile and add the user associated with the failing SAP Application job.
  • Modify the Username field to match the Plugin Extension user exactly.
    • Note: If the plugin uses a flat username e.g. "SAP_USER", ensure the @domain suffix (e.g., @example) is removed from the security profile.
  • Save the profile changes.
  • Re-run the job to verify the fix.