|
1 | 1 | --- |
2 | 2 | title: Error when you post or print in Payables Management |
3 | | -description: Provides a solution to an error that occurs when you post or print in Payables Management. |
4 | | -ms.reviewer: |
| 3 | +description: Provides a solution to an error that occurs when you post or print in Payables Management in Microsoft Dynamics GP. |
| 4 | +ms.reviewer: theley |
5 | 5 | ms.topic: troubleshooting |
6 | | -ms.date: 03/31/2021 |
| 6 | +ms.date: 09/04/2023 |
7 | 7 | --- |
8 | | -# "Violation of Primary key" or "DBMS 2627" error messages when you post or print in Payables Management |
| 8 | +# "Violation of Primary key" or "DBMS 2627" error message when you post or print in Payables Management |
9 | 9 |
|
10 | | -This article provides a solution to an error that occurs when you post or print in Payables Management. |
| 10 | +This article provides a solution to an error that occurs when you post or print in Payables Management in Microsoft Dynamics GP. |
11 | 11 |
|
12 | 12 | _Applies to:_ Microsoft Dynamics GP |
13 | 13 | _Original KB number:_ 852808 |
14 | 14 |
|
15 | 15 | ## Symptoms |
16 | 16 |
|
17 | | -When you try to post or you try to print in Payables Management in Microsoft Dynamics GP or in Microsoft Business Solutions - Great Plains, you receive one of the following error messages: |
| 17 | +When you try to post or print in Payables Management in Microsoft Dynamics GP, you receive one of the following error messages: |
18 | 18 |
|
19 | 19 | - Error message 1 |
20 | 20 |
|
21 | | - > Violation of Primary key |
| 21 | + > Violation of Primary key |
| 22 | +
|
22 | 23 | - Error message 2 |
23 | 24 |
|
24 | | - > Error attempting to insert duplicates. |
| 25 | + > Error attempting to insert duplicates. |
25 | 26 |
|
26 | 27 | - Error message 3 |
27 | 28 |
|
28 | | - > DBMS 2627 |
| 29 | + > DBMS 2627 |
29 | 30 |
|
30 | 31 | ## Cause |
31 | 32 |
|
32 | | -These errors occur after some type of posting interruption. Typically, a transaction is written to the history table. However, the interruption occurs before the transaction is removed from the work table or from the open table. Therefore, the transaction exists in both tables and violates the primary key fields of the table. |
| 33 | +These errors occur after some type of posting interruption. Typically, a transaction is written to the history table. However, the interruption occurs before the transaction is removed from the work table or the open table. Therefore, the transaction exists in both tables and violates the primary key fields of the table. |
33 | 34 |
|
34 | 35 | ## Resolution |
35 | 36 |
|
36 | | -To resolve the problem, locate the duplicate records and then remove the appropriate record manually. This article is designed only to assist you in locating the duplicate records. If you need assistance in removing the problem records, you may contact Microsoft Technical Support or your Partner. |
37 | | - |
38 | | -### Automated solution |
39 | | - |
40 | | -Use the automated solution to identify the duplicate records in the Payables Management (PM) tables. |
41 | | - |
42 | | -> [!NOTE] |
43 | | -> Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs. |
| 37 | +> [!IMPORTANT] |
| 38 | +> Before you follow the instructions in this article, make sure that you have a complete backup of the database that you can restore if a problem occurs. |
44 | 39 |
|
45 | | -An Automated Solution script may be available to perform this task. |
| 40 | +To resolve the problem, locate the duplicate records and remove the invalid records manually. If you need assistance removing the invalid records, contact your partner, or create a ticket with [Microsoft Support](https://support.microsoft.com/contactus/). |
46 | 41 |
|
47 | 42 | > [!NOTE] |
48 | 43 | > |
49 | | -> - The Automated Solution will report the duplicate records. |
50 | | -> - You should back up your company database before proceeding. You should also verify that the information in the History tables is correct and complete. |
51 | | -> - If the duplicate records are in history and also either the work or open tables, determine if the records in the history table are valid. If so, then remove the records from the work tables or from the open tables. |
52 | | -> - If the duplicate records are in both the work and open tables only, determine which record is valid and remove the other record. However, when removing the problem record, keep in mind that these tables share a distribution table which also must be modified. |
53 | | -> - If you require further assistance regarding this process, contact Technical Support for Microsoft Dynamics at 1-8888-477-7877 or open a chargeable support case. |
| 44 | +> - You should back up your company database before proceeding. You should also verify that the information in the history tables is correct and complete. |
| 45 | +> - If the duplicate records are in the history table and also either the work table or open table, determine if the records in the history table are valid. If so, remove the records from the work table or the open table. |
| 46 | +> - If the duplicate records are only in the work and open tables, determine which record is valid, and remove the invalid records. When removing the invalid records, note that these tables share a distribution table that must also be modified. |
| 47 | +> - If you need further assistance regarding this process, contact your partner, or create a ticket with [Microsoft Support](https://support.microsoft.com/contactus/). |
0 commit comments