Skip to main content



No record found.

Business Central forum

Purchase invoice for g/l entries

Posted on by 133


When I want to make a purchase invoice for management fees that need to be paid every month to a certain company, I put in the relevant g/l account numbers in the purchase invoice lines. However, when I want to post these lines I get an error message:

'Gen. Prod. Posting group must have a value in Purchase Line: Document Type=Invoice, Document No. = XXXXXX, Line No.20000. It cannot be zero or empty.'

But because these are G/L account entries, the General Product Posting group does not apply here.

Is there a solution for this issue which makes me able to use purchase invoices for g/l accounts, but not having to couple these g/l accounts to product posting groups.



  • JR61 Profile Picture
    JR61 133 on at
    RE: Purchase invoice for g/l entries

    Alright thanks. I followed your instructions and it worked.

    However, I still think it is stranged why the general product posting group is a required field for these kind of invoices.

  • Verified answer
    JAngle Profile Picture
    JAngle 33,137 on at
    RE: Purchase invoice for g/l entries

    I typically advise for G/L accounts that will be used as expense of revenue on invoices (purchase or sale) at least populate the "General Product Posting Group" and "VAT Product Posting Group" fields. This will prevent errors at the point of posting.

    In the scenario where an expense account is on the line of one of these document types you will notice it places the expense in the selected account instead of the posting setups selection. Posting setup is generally where you cannot go direct, so all other line types.

    Appreciate that if you are using the US localisation then the VAT fields are not relevant. Would suggest support from your Microsoft partner to bypass this. Not something I have experience with and the suggestions I've seen on this forum haven't always panned out.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans