My Oracle Support Banner

R12: AP: ZX: When Validating Retainage Release Invoice Tax Errors With "APP-SQLAP-97731: The system cannot generate distributions because tax calculation failed due to the following error: An unexpected error occurred." (Doc ID 3038128.1)

Last updated on AUGUST 01, 2024

Applies to:

Oracle Payables - Version 12.1.1 and later
Oracle E-Business Tax - Version 12.1.1 and later
Information in this document applies to any platform.

Symptoms

While trying to validate a Retainage Release invoice, the following error occurs:

APP-SQLAP-97731: The system cannot generate distributions because tax calculation failed due to the following error:
An unexpected error occurred.
Please contact your system administrator.


The issue can be reproduced at will with the following steps:

  1. Go to Payables Manager responsibility.
  2. Navigate to Invoices > Entry > Invoices.
  3. Query Retainage Release invoice.
  4. Click on Actions > Validate button.
  5. The above error happens.

 The FND Debug Log will show below error:

ZX.PLSQL.ZX_TRD_SERVICES_PUB_PKG.populate_mandatory_columns.BEGIN populate_mandatory_columns(+)
ZX.PLSQL.ZX_TRD_SERVICES_PUB_PKG.populate_mandatory_columns.END ZX_TRD_SERVICES_PUB_PKG.populate_mandatory_columns(-)S
ZX.PLSQL.ZX_TRD_SERVICES_PUB_PKG.DETERMINE_RECOVERY.END ZX_TRD_SERVICES_PUB_PKG.DETERMINE_RECOVERY(-)S
ZX.PLSQL.ZX_SRVC_TYP_PKG.determine_recovery.END ZX_SRVC_TYP_PKG: determine_recovery()- RETURN_STATUS = S
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY Return Status after Recovery Determination : S
ZX.PLSQL.ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors.BEGIN ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors(+)
ZX.PLSQL.ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors g_retained_value is not NULL - Retainage flow
ZX.PLSQL.ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors Flow - retainage release invoice
ZX.PLSQL.ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors -1476: ORA-01476: divisor is equal to zero
ZX.PLSQL.ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors.END ZX_TRD_INTERNAL_SERVICES_PVT.calc_variance_factors(-)
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY After calling calc_variance_factors return_status = U
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY ZX_API_PUB.DETERMINE_RECOVERY(-)
ZX.PLSQL.ZX_API_PUB.DUMP_MSG.BEGIN ZX_API_PUB: DUMP_MSG()+
ZX.PLSQL.ZX_API_PUB.DUMP_MSG.END ZX_API_PUB: DUMP_MSG()-
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Start Time :DD-MM-YYYY HH24:MI:SS
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics End Time :DD-MM-YYYY HH24:MI:SS
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Total Time :0:0:0
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Number of partner calls :0
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Time taken by partner(secs) :0
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Number of records in ZX_TRX_HEADERS_GT :1
ZX.PLSQL.ZX_API_PUB.DETERMINE_RECOVERY.Statistics Number of records in ZX_TRANSACTION_LINES_GT :2
AP.PLSQL.AP_ETAX_SERVICES_PKG.Distribute Handle errors returned by API
AP.PLSQL.AP_ETAX_UTILITY_PKG.Return_Error_Messages Get error message from eTax API
AP.PLSQL.AP_ETAX_UTILITY_PKG.Return_Error_Messages Get error message from stack
AP.PLSQL.AP_ETAX_UTILITY_PKG.Return_Error_Messages An unexpected error has occurred. Please contact your system administrator.
fnd.plsql.APP_EXCEPTION.RAISE_EXCEPTION.dict_auto_log "Unexpected error occurred during Tax Calculation.
Exception: An unexpected error has occurred. Please contact your system administrator.
Please correct the problem or contact your System Administrator."
fnd.src.dict.afdict.afdautolog.auto_log SQLAP?AP_TAX_EXCEPTION?N?ERROR?An unexpected error has occurred. Please contact your system administrator.?

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.