| Case Number | 00081079 |
| Oracle Module | Oracle Payments (IBY) / Accounts Payable (AP) |
| EBS Version | R12 (12.1.3) |
| Functional Area | Credit Card / IBY_CREDITCARD / Party Address |
| Related Patches | None |
IBY_CREDITCARD have a NULL ADDRESSID (also referred to as address_id).Active credit card instrument records in IBY_CREDITCARD were created or migrated without populating the ADDRESSID column. The correct billing address reference should be the PARTY_SITE_USE_ID from HZ_PARTY_SITE_USES for the card owner's active BILL_TO site. A data migration, import, or program error left this column NULL for a subset of active credit cards.
Run data_fix.sql. The script creates:
rsi_iby_creditcard_81079) capturing INSTRID and CARD_OWNER_ID for processed records.RSI_DATAFIX_81079_ERRORS) to capture credit cards that could not be updated (e.g., card owner has multiple BILL_TO addresses requiring manual resolution).The script iterates through active credit cards with a NULL address_id (limited to a configurable batch size). For each card, it updates IBY_CREDITCARD.ADDRESSID by looking up the PARTY_SITE_USE_ID for the card owner's active BILL_TO site from HZ_PARTY_SITE_USES, HZ_PARTY_SITES, HZ_LOCATIONS, and HZ_PARTIES.
If a card owner has more than one active BILL_TO address, the update raises a TOO_MANY_ROWS exception. These records are logged to the error table with an appropriate message. They must be manually resolved by selecting the correct BILL_TO address for the credit card.
The script commits after each successfully processed card. After completion, it prints a summary of successful and failed records and queries the error table. Review the error table and manually correct any remaining records with multiple BILL_TO addresses.
last_updated_by = -9999 for audit identification.
| File | Description |
|---|---|
| data_fix.sql | PL/SQL script to populate missing ADDRESSID on IBY_CREDITCARD by joining to HZ_PARTY_SITE_USES for the card owner's BILL_TO site. Creates backup and error tables. Handles TOO_MANY_ROWS for cards with multiple billing addresses. Produces spooled output with success/failure counts. |
| Table | Action |
|---|---|
| IBY_CREDITCARD | Update ADDRESSID from HZ_PARTY_SITE_USES for card owner's BILL_TO site |
| HZ_PARTY_SITE_USES | Read only — source for PARTY_SITE_USE_ID lookup |
| HZ_PARTY_SITES | Read only — party site join |
| HZ_PARTIES | Read only — party join for card owner |