Obscure RMS Error Message: 'Error Parsing Error Message From SQL_LIB.API_MSG' (Doc ID 2047174.1)

Last updated on DECEMBER 18, 2015

Applies to:

Oracle Retail Merchandising System - Version 13.1.2.4 and later
Information in this document applies to any platform.

Symptoms

Error message is generated by the code which is obscure and neither helps business user nor support team.
Message : “Error parsing error message from SQL_LIB.API_MSG”.

A call to SQL_LIB was made from ADDRESS_SQL.GET_PRIMARY_ADDR_TYPE
SQL_LIB.CREATE_MSG('NO_PRIMARY_ADDR_TYPE',NULL, 'ADDRESS_SQL.GET_PRIMARY_ADDR_TYPE', NULL)

Steps to recreate

This issue can be easily replicated by making a call to the function ADDRESS_SQL.GET_PRIMARY_ADDR_TYPE.

Step 1 : Modify add_type_module table such that the following cursor returns no data
 cursor C_ADD_TYPE_MODULE is
  select address_type
  from add_type_module
  where primary_ind = 'Y'
and mandatory_ind = 'Y'
and module = 'SUPP';

Step 2: Call FUNCTION GET_SUPP_PRIMARY_ADDR_TYPE(O_error_message IN OUT RTK_ERRORS.RTK_TEXT%TYPE,
O_primary_addr_type OUT ADD_TYPE_MODULE.ADDRESS_TYPE%TYPE)

Step 3: call SQL_LIB.API_MSG(O_ERROR_TYPE,O_ERROR_MESSAGE);

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms