When you print the SOP Posting Journal report or the Sales Edit List report in Microsoft Dynamics GP or in Microsoft Business Solutions - Great Plains, you receive the following error message:
One or more line items contain warnings or errors.
This problem occurs even if the following conditions are true:
Valid posting accounts exist in the Sales Line Distribution Entry window for the cost of goods sold account and for the inventory account.
The Reconcile Sales Documents procedure has been performed.
The Inventory Reconcile Quantities procedure has been performed.
The Check Links procedure has been performed.
You have transferred the transactions in the batch to a new batch.
You have performed the steps in the following Microsoft Knowledge Base articles:
865877 Error message when you try to post invoices for noninventory items in Microsoft Dynamics GP: "One or more line items contain warnings or errors"
850972 Error message when you try to post a document in Sales Order Processing in Microsoft Dynamics GP: "One or more line items contain warnings or errors. Line accounts are missing or invalid"
This problem occurs when invalid values exist in one or more fields in the SOP10200 table.
To resolve this problem, follow these steps.
Note 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.
Start the Support Administrator Console, Microsoft SQL Query Analyzer, or SQL Server Management Studio. To do this, use one of the following methods depending on the program that you are using.
Method 1: For SQL Server Desktop Engine If you are using SQL Server Desktop Engine (also known as MSDE 2000), start the Support Administrator Console. To do this, click Start, point to All Programs, point to Microsoft Administrator Console, and then click Support Administrator Console.
Method 2: For SQL Server 2000 If you are using SQL Server 2000, start SQL Query Analyzer. To do this, click Start, point to All Programs, point to Microsoft SQL Server, and then click Query Analyzer.
Method 3: For SQL Server 2005 If you are using SQL Server 2005, start SQL Server Management Studio. To do this, click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Management Studio.
Run the appropriate statement against the company database. For one transaction, run the following statement:
SELECT SOPLNERR, * FROM SOP10200 where SOPNUMBE = ‘<xxx>’
For a range of transactions, run the following statement:
SELECT SOPLNERR, * FROM SOP10200 where SOPNUMBE BETWEEN ‘<xxx>’ and ‘<xxx>’
Note In each statement, replace the <xxx> placeholder with a document number.
Note the value in the SOPLNERR field, and then compare it to the following values.
The master record for the item does not exist.
The site record for the item does not exist.
The serial numbers and the extended quantity of the item do not balance.
The lot quantities and the extended quantity of an item do not balance.
The serial number already exists for this item in the serial number file.
The serial number is missing for the item and for the site in the serial number file.
The lot number is missing for this item and for this site in the lot number file.
The line accounts are missing or invalid.
The returned quantities were not distributed correctly.
The lot number already exists for the item in the lot number file.
The intrastate information is missing or invalid.
The line quantity is zero.
A severe error occurred while the program was adjusting the inventory. Revert to a backup if you can do this.
The line quantity is not completely distributed.
A part of the line quantity is backordered.
The line quantity is not correctly allocated.
The line quantity is not correctly fulfilled.
Determine whether the errors are valid. Make corrections as appropriate. For example, if the value in the SOPLNERR field is 2, follow these steps:
On the Cards menu, point to Inventory, and then click Quantities/Sites.
In the Item Number list, click an item.
In the Site Lookup area, click All.
In the Sites area, click Site ID.
In the Sites list, click a site.