search cancel

SAP jobs reported as UNKNOWN status by WA Agent

book

Article ID: 254906

calendar_today

Updated On:

Products

Workload Automation Agent CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Business Agents (dSeries)

Issue/Introduction

Users may noticed SAP jobs going in to UNKNOWN state or report back as UNKNOWN status.  The agent and manager logs may report following error(s).

Failed to process an incoming AFM string: 2022XXXX 00001234+0100 
ACE_SCH WA_AGENT 12345.123456_1/WAAE_WF0.1/MAIN STATE UNKNOWN Status(Unknown)
LStatus(SAP_CHAIN_GET_STATUS- JCoException: No more memory available to add rows to an internal table.
Plugin(sap) User(WA_AGENT) Host(jabalpur)

 

Environment

Release : 12 or above

Component: Workload Automation Agent

Cause

The Agent uses SAP JCo (Java Connector) to submit jobs to SAP.   If JCo reports an exception, then there is some issue with SAP application side.

Following error indicates there is a problem with database used by the SAP side.

LStatus(SAP_CHAIN_GET_STATUS- JCoException: No more memory available to add rows to an internal table.)

Resolution

The agent is reporting it is UNKNOWN because SAP is not providing any exit code.  It is just reporting a text error message.  

Applications normally send a numeric error code which most application and WA Agents can report back as FAILED or SUCCESS.   

User(s) will need to check with SAP admin or SAP Support for any database side issues.