An exception has occurred within MiscellaneousPaymentInterface
Description of Issue
- Receiving the error An exception has occurred within MiscellaneousPaymentInterface.displayMiscellaneousPaymentInterface(). Additional information concerning a status error of -268 [-2601]: [Miscrosoft][SQL Server Native Client 11.0][SQL Server] Cannot insert duplicate key row in object 'AccountsReceivable.Bills' with unique index 'IX_Bills.HasBalanceDue.VoidedVersion.Category.Year.Number'. The duplicate key value is (X, X, 2, YYYY, XXXXXX). System log Id: XXXXXX when entering a Miscellaneous Receipt.
- Cannot insert duplicate key row in object 'AccountsReceivable.Bills' with unique index 'IX_Bills.HasBalanceDue.VoidedVersion.Category.Year.Number'. error in Payment Entry.
Context
- Accounts Receivable
- General Billing
- Payment Entry (arbilinq)
- Miscellaneous Receipts
Cause
A series of actions or settings is causing the program to attempt to create a receipt with the same Year, Category, and Number combination which is not allowed. Known issues that cause this error include:Â
- The Dept Specific settings in the Accounts Receivable Settings program contain receipt ranges for different departments that overlap.Â
Resolution
- Verify if receipt ranges are setup for different departments in the Accounts Receivable Settings program. If they are, verify that the established ranges do not overlap.Â
- To do this, navigate to the Accounts Receivable Settings program either by searching or via the following path: General or Property Revenues > Accounts Receivable > Setup > Accounts Receivable Settings
- Select Dept Specific from the ribbon.
- If there is more than one Department listed, then make sure that there is no overlap between the Start Receipt and End Receipt ranges.Â
- For example, if All Other Departments have a Start Receipt and End Receipt range of 1-999999999 and a specific department, like Treasurers, has a Start Receipt and End Receipt range of 1-999999999, then there is overlap and programs may try to create duplicate receipts.Â
- Non-overlapping ranges for these departments would be 1-500000000 and 500000001-999999999.
- To update the ranges, click into the Start Receipt field for the department.Â
- Enter the desired Start Receipt for the department.Â
- TAB to the End Receipt field.Â
- Enter the desired End Receipt for the department.Â
- TAB to the Next Receipt field.Â
- Enter the desired Next Receipt. (Note: The Next Receipt value must fall within the defined Start-End Receipt range.)
- Repeat steps 5-10 for each department as necessary.Â
- Click Accept to finalize the changes.Â
- Have all users close and re-open Payment Entry before attempting to enter Miscellaneous Receipts again. The error should clear.Â
Additional Information
Additional resources for working in Payment Entry can be found here: Master Article - Payment Entry