web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

"Gen. Prod. Posting Group must have a value in G/L Account..."

(0) ShareShare
ReportReport
Posted on by 3,518

Hi:

In the Customer Posting Groups window, I'm trying to place an account within the "Service Charge Acct." field.

I have placed a value within the "Gen. Prod. Posting Group" and "Gen Bus. Posting Group" fields within the account itself in the Chart of Accounts.

Also, I have placed this account within the General Posting Setup's "Sales Account" field.

So, why in the world am I still getting the error message "Gen. Prod. Posting Group must have a value in G/L Account..." within the Customer Posting Groups window?  Have I not covered all contingencies?

Thanks!

John

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    Has some specific validation:

    Validate("Service Charge Acc.");

               end;

               trigger OnValidate()

               begin

                   if "View All Accounts on Lookup" then

                       GLAccountCategoryMgt.CheckGLAccountWithoutCategory("Service Charge Acc.", true, true)

                   else

                       GLAccountCategoryMgt.CheckGLAccount(

                         "Service Charge Acc.", true, true, GLAccountCategory."Account Category"::Income, GLAccountCategoryMgt.GetIncomeService);

               end;

    I’d check the account category and turn off the view all accounts lookup feature

  • Suggested answer
    john.ellis Profile Picture
    3,518 on at

    Below is the answer.  I needed to go into the G/L account for the Customer Posting Group and fill in the three fields shown below.

    pastedimage1636667113179v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,033 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,105 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,035 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans