← Back to Cases
AP Invoice Lines and Distributions Zeroed with ZX Determining Factor Correction
Case Number00039350
Oracle ModuleAccounts Payable (AP) / eBusiness Tax (ZX)
EBS VersionR12
Functional AreaInvoice Processing / Tax Calculation
Related PatchesNone

Symptoms

Root Cause

The invoice line amounts, distribution amounts, and the corresponding ZX tax determining factor line amount contain stale non-zero values that should be zero. This can occur when a cancellation, adjustment, or correction process did not complete cleanly, leaving residual amounts in the AP and ZX tables.

Resolution

Step 1 – Create backup tables

Run data_fix.sql. Backup tables are created for:

Step 2 – Zero invoice line amounts

Update AP_INVOICE_LINES_ALL to set amount = 0 for all lines on the affected invoice.

Step 3 – Zero invoice distribution amounts

Update AP_INVOICE_DISTRIBUTIONS_ALL to set amount = 0 and total_dist_amount = 0 for all distributions on the affected invoice.

Step 4 – Zero ZX determining factor line amount

Update ZX_LINES_DET_FACTORS to set line_amt = 0 for the affected invoice's AP_INVOICES entity records.

Step 5 – Commit and validate

Issue COMMIT. Re-validate the invoice to confirm it passes with zero amounts.


Script Inventory

FileDescription
data_fix.sqlCreates backups; sets AP_INVOICE_LINES_ALL amounts to 0; sets AP_INVOICE_DISTRIBUTIONS_ALL amount and total_dist_amount to 0; sets ZX_LINES_DET_FACTORS line_amt to 0.

Key Tables Affected

TableAction
AP_INVOICE_LINES_ALLUpdate amount to 0
AP_INVOICE_DISTRIBUTIONS_ALLUpdate amount, total_dist_amount to 0
ZX_LINES_DET_FACTORSUpdate line_amt to 0