Zentriq Agent is live on Microsoft AppSourceInstall it free →Microsoft AppSourceInstall it free →

"Sales Account must have a value in General Posting Setup: Gen. Bus. Posting Group=DOMESTIC, Gen. Prod. Posting Group=RETAIL. It cannot be zero or empty."

Missing G/L account in General Posting Setup

The combination of general business posting group and general product posting group used by the document exists in General Posting Setup, but the account the posting routine needs, here Sales Account, is empty. Business Central will not guess an account, so it stops before writing anything. Fill in the missing G/L account on that setup row, or correct the posting groups on the customer, vendor or item so that the document uses a row that is complete.

Why Business Central raises it

General Posting Setup is the table that says which G/L account to use for each pair of a general business posting group (who you trade with, DOMESTIC in the message) and a general product posting group (what you trade, RETAIL in the message). Each routine reads one specific field of that row: sales lines read Sales Account, purchase lines read Purch. Account, inventory cost postings read COGS Account, line discounts read their own discount account, and so on. The field quoted at the start of the message is the one that is blank. Since a G/L entry cannot exist without an account, the routine stops with a field error instead of posting something incomplete.

  • A new general business or general product posting group was created and its rows in General Posting Setup were left partly empty.
  • The document uses a combination nobody expected, for example a foreign customer given the DOMESTIC group by mistake, or an item whose product posting group was changed after the order was entered.
  • The row is filled for the usual accounts but not for the specific case being posted, such as a discount, invoice rounding or an item charge that reads a field which was never completed.

How to fill the missing account

  1. Search for General Posting Setup (Alt+Q) and open the page.
  2. Find the row where Gen. Bus. Posting Group is DOMESTIC and Gen. Prod. Posting Group is RETAIL, the two values quoted in the message.
  3. Fill the field named at the start of the message, here Sales Account, with the G/L account your chart of accounts uses for that kind of revenue or cost, and review the neighbouring fields on the same row while you are there.
  4. If a similar combination is already complete, use the Copy action on General Posting Setup to bring its accounts into the empty row, then adjust what differs.
  5. Check the account itself in the Chart of Accounts: it must exist, be of type Posting and not be blocked, otherwise posting fails again with a different message.
  6. If the combination is simply wrong for this document, correct Gen. Bus. Posting Group on the customer or vendor card, or Gen. Prod. Posting Group on the item card, then delete and re-enter the affected document line so it picks up the new value.

How to avoid it next time

Treat General Posting Setup as a matrix that has to be complete: every general business posting group that can meet a given general product posting group on a real document needs a filled row. Whenever someone adds a posting group, review the new rows the same day and agree with finance which account belongs where before the first document is entered. Editing this setup and the chart of accounts requires finance setup permissions, so if the fields are read-only for you, the change has to be made by an administrator or by your finance lead.

Frequently asked questions

The message names Purch. Account instead. Is that a different problem?

No. The same check runs for every account field on the row, only the field name changes. Look at the field quoted at the start of the message and fill that one on the row for the two posting groups listed.

Can I point it at a temporary account just to get the document posted?

You can, but the entry then has to be reclassified later, and the setup drives every future document with those posting groups. It is usually faster to agree the correct account once and enter it in General Posting Setup.

Related reading

Other Business Central errors