Skip to main content

Notifications

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,494

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

  • Suggested answer
    john.ellis Profile Picture
    3,494 on at
    RE: "Gen. Prod. Posting Group must have a value in G/L Account..."

    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

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: "Gen. Prod. Posting Group must have a value in G/L Account..."

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,200

#2
YUN ZHU Profile Picture

YUN ZHU 1,006 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 836

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans