When trying to work with an invoice in Sage 300 CRE Billing, you get the message "Unable to read invoice - Invalid Key BL 5202".
Error variations
- Error: Unable to read invoice - Invalid Key BL 5202
- Error: Unable to update worksheet entry, Invalid Key BL 5202
- Error: Unable to read invoice - Invalid Key(1) BL5202
- Error: Unable to read invoice - ☜︎❒︎❒︎□︎❒︎🖳︎ ◆︎■︎♋︎♌︎●︎♏︎ ⧫︎□︎ ❒︎♏︎♋︎♎︎ ♓︎■︎❖︎□︎♓︎♍︎♏︎ 📫︎ ♓︎■︎❖︎♋︎●︎♓︎♎︎ 🙵♏︎⍓︎🕿︎📂︎✆︎ ♌︎●︎🗄︎📄︎📁︎📄︎ BL5202
Duplicate key issue in the Unbilled.bli file
Another invoice exists for this customer with the same Generation Date and Generation Sequence, which causes a duplicate key error when updating the invoice.
This can also occur if you changed the customer on a contract without deleting the existing invoice first in Contract-Based Invoices.
Corrupt contract record
You have a corrupted contract.
Duplicate key
Complete the steps below to correct a duplicate key issue. Depending on the cause, you don't have to complete all steps.
Verify the customer on the contract
- In Billing, review the following inquiry. Find the contract and the customer ID that is associated with the contract.
- From the Inquiry menu, select Invoices, All Invoices.
- Select Unbilled and click OK.
- Select Active and click OK.
- Write down the Customer showing for the contract that gets the error.
- In Contracts, from the File menu, select Open Contract.
- Select the affected contract and click OK.
- On each contract item, verify that the Customer matches the customer from step 2.
- If the customer doesn't match, change the Customer to the same one showing in the Billing inquiry
- If the customer matches, exit the contract and proceed to Rename the Unbilled.bli file below
- Exit the contract.
- In Billing, select Contract-Based Invoices.
- Select the affected contract and click OK.
- Click Delete Invoice, click Yes when asked if you're sure you wish to delete, and click Finish.
- Reopen the contract in Contracts.
- Change the Customer for each item back to the correct customer if needed.
Rename the Unbilled.bli file
- Verify which invoices exist in the unbilled.bli. Renaming this file will delete any incomplete invoices.
- From the Inquiry menu, select Invoices, All Invoices.
- Select Unbilled and click OK.
- Select Active and click OK.
- Finish and post all other in-progress invoices that you need to keep.
- From the Tools menu, select File Tools.
- Select Rename and click Next.
- Click Browse, select the unbilled.BLI file, and then click Open.
- Enter a New file name such as unbilled01-01-2006 (file name with the date added on).
- Click Next four times.
- Click Finish.
- You can now reenter the invoice.
Move the renamed file
Move the renamed file to a junk folder. Keeping renamed files in your live data folder can cause issues with SQL Replicator and third-party programs.
Corrupt contract
Delete the contract and recreate it.
- Solution ID
- 222924150017337
- Last Modified Date
- Thu Nov 11 18:15:06 UTC 2021
- Attributes
-
Product Details
Integrated Product: Chatbot
- Views
- 0