Search Results eam_error_message_pvt
Overview
EAM_ERROR_MESSAGE_PVT is a private PL/SQL package body in the APPS schema that provides the centralized error handling and diagnostic messaging infrastructure for the Enterprise Asset Management (EAM) module in Oracle E-Business Suite 12.1.1 and 12.2.2. Its primary business function is to capture, translate, store, retrieve, and expose error and informational messages generated by EAM business logic, particularly the work order processing APIs (EAM_PROCESS_WO_PUB and EAM_PROCESS_WO_PVT). The package acts as an EAM-specific layer built on top of the Oracle Application Object Library messaging framework (FND_MSG_PUB and FND_MESSAGE), allowing EAM transactions to register errors against a business object, attach tokens for contextual substitution, and later retrieve a consolidated message list for display in Forms, concurrent program logs, or OAF pages. Because it is classified as a PVT (private) package, it is not intended as a public integration API but rather as an internal service consumed by EAM processing routines.
Key Procedures and Functions
The documented ETRM metadata exposes 21 procedures and functions organized around message lifecycle management and debug tracing:
- INITIALIZE and RESET — establish or clear the package-level message stack and session state before a processing run.
- ADD_MESSAGE and DELETE_MESSAGE — insert and remove individual messages from the internal message collection.
- TRANSLATE_AND_INSERT_MESSAGES — converts stored message tokens into language-specific text using FND_MESSAGE and inserts the result into the message list.
- ADD_ERROR_TOKEN — attaches a token name/value pair to the current error context for later substitution.
- LOG_ERROR — records an error to the message framework and, in debug mode, to a file via UTL_FILE.
- GET_MESSAGE_LIST, GET_MESSAGE, GET_MESSAGE_COUNT, and GET_ENTITY_MESSAGE — retrieval functions returning the accumulated messages, an individual message, the total count, or messages scoped to a specific entity.
- DUMP_MESSAGE_LIST — writes the entire current message list for diagnostic purposes.
- OPEN_DEBUG_SESSION, CLOSE_DEBUG_SESSION, and WRITE_DEBUG — manage a lightweight debugging session and emit trace output.
- SET_BO_IDENTIFIER and GET_BO_IDENTIFIER — set and retrieve the business object identifier so messages can be correlated to a specific EAM entity such as a work order.
Tables Accessed
The metadata lists three referenced objects, all accessed through APPS synonyms rather than base tables: UTL_FILE, PLITBLM, and V$PARAMETER.
- UTL_FILE — used by LOG_ERROR and WRITE_DEBUG to write diagnostic output to server-side files when a debug session is active.
- PLITBLM — supplies the PL/SQL character-mapping facility supporting token substitution and text handling.
- V$PARAMETER — typically queried to determine database parameters such as the user_dump_dest or background_dump_dest location used for debug file output.
Messages themselves are not persisted in EAM tables; they reside in the FND_MSG_PUB global message stack and in the package’s internal PL/SQL collections.
Usage Notes
EAM_ERROR_MESSAGE_PVT is invoked indirectly. The ETRM metadata records that it is referenced by 79 other database objects, and it is directly referenced by EAM_PROCESS_WO_PUB, EAM_PROCESS_WO_PVT, and ERROR_HANDLER. Typical call paths include work order and asset maintenance concurrent programs, EAM Forms, and service/OAF flows that call the EAM work order processing APIs. A caller normally executes INITIALIZE, invokes EAM business logic, then calls GET_MESSAGE_LIST or GET_ENTITY_MESSAGE to surface errors to the user or to the concurrent manager log. During troubleshooting, developers enable OPEN_DEBUG_SESSION so that LOG_ERROR and WRITE_DEBUG emit trace output to a UTL_FILE destination identified from V$PARAMETER. The package is not documented as being referenced by external applications, so custom code should prefer the public EAM APIs rather than calling EAM_ERROR_MESSAGE_PVT directly, as its signature is private and subject to change across patch levels.
-
PACKAGE BODY: APPS.EAM_ERROR_MESSAGE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_ERROR_MESSAGE_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_ERROR_MESSAGE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_ERROR_MESSAGE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_COMP_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_COMP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_DIRECT_ITEMS_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_DIRECT_ITEMS_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_COMP_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_COMP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_REQUEST_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_REQUEST_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_QUA_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_QUA_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_DIRECT_ITEMS_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_DIRECT_ITEMS_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_USAGE_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_USAGE_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_NETWORK_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_NETWORK_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_COMP_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_COMP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_SUB_RESOURCE_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_SUB_RESOURCE_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_ISOLATION_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_ISOLATION_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_INST_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_INST_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_PROCESS_ISOLATION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_PROCESS_ISOLATION_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_SUB_RESOURCE_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_SUB_RESOURCE_DEFAULT_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_ISOLATION_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_ISOLATION_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_INST_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_INST_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_USAGE_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_USAGE_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_NETWORK_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_NETWORK_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_DIRECT_ITEMS_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_DIRECT_ITEMS_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_INST_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_INST_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_QUA_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_QUA_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_METERREADING_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_METERREADING_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_COMP_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_COMP_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_REQUEST_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_REQUEST_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_NETWORK_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_NETWORK_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_RES_USAGE_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_RES_USAGE_VALIDATE_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_OP_COMP_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_OP_COMP_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_UTILITY_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_REQUEST_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_REQUEST_DEFAULT_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_OP_COMP_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_OP_COMP_VALIDATE_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_RES_USAGE_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_RES_USAGE_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_MAT_REQ_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_MAT_REQ_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_PERMIT_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_PERMIT_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_NETWORK_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_NETWORK_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_SUB_RESOURCE_DEFAULT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_SUB_RESOURCE_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_OP_COMP_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_OP_COMP_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_SUB_RESOURCE_VALIDATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_SUB_RESOURCE_VALIDATE_PVT, status:VALID,
-
PACKAGE: APPS.EAM_SAFETY_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_SAFETY_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_ESTABLISHMENT_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EAM_ESTABLISHMENT_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_WO_DEFAULT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_WO_DEFAULT_PVT, status:VALID,
-
PACKAGE: APPS.EAM_REQUEST_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_REQUEST_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.EAM_DIRECT_ITEMS_VALIDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_DIRECT_ITEMS_VALIDATE_PVT, status:VALID,