# DATA validation error: No stock/expense account on Receive

KB385

### Overview

When processing a Receive, you may receive the following error:

This means that the Receive cannot be processed, because the specified item does not have an allocated Stock / Expense account.

### What causes the error?

This error occurs when attempting to update a Receive and the General Ledger account for the Stock / Expense account of the item on the purchase order line has not been specified.

If you click on the (i) button under the item code on a purchase order:

This will show the Purchase order Line details, and you will see the account here:

This can happen:

- If an Item is added to the Purchase order but, at the time, it did not have a G/L account allocated to it for the selected warehouse,
- If the Stock/expenses G/L account for a line was removed while editing the Purchase Order, or
- If an account has been deleted.

When the Receive transaction is processed, it will look at the corresponding Purchase Order line to determine which G/L account to use for the transaction. If that account is invalid, does not exist, or has been locked for use (e.g., an account lock date or having the account set to “Disallow use”), then the Receive transaction cannot proceed.

### How to fix the error

For a Receive to occur, all Items must be allocated to a Stock/Expense account.

If the Item is non-stock

1. Open and Edit the Purchase Order in question.
2. Open the Purchase Order Line Details by clicking the (i) button under the Item code in question.
3. Allocate the relevant Expense Account.
4. Update the Purchase Order.

You will now be able to create a Receive for this Purchase Order.

If the Item is stock

1. Open and Edit the Inventory record for the Item in question.
2. Go to Warehouses tab > Accounts tab and enter a Stock account.
3. Update the Inventory record.
4. Open and edit the Purchase Order in question.
5. Open the Purchase Order Line Details by clicking the (i) button under the Item code in question.
6. Take note of the value of this line such as the quantity and price fields.
   - These values will be reset when the Item code is re-entered.
7. Re-enter the Item code, and check that the Stock account field is updated with the recent change.
8. Re-enter the quantity, cost price, etc. for the line.
9. Update the Purchase Order

You will now be able to create a Receive for this Purchase Order.

### Did you find this article helpful?

If this article is missing information, ambiguous, or didn’t give you clear instructions, let us know and we will make it better! Please email us and quote the KB# in the top right of this article to let us know why it didn’t help you out and we will point you in the direction of additional information.

Last edit 28/02/24