Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Error while posting Gen. Posting Type must not be in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='1000'.

Posted on by 155

Hi all

 

I am getting following error when posting a sales order in 6.0sp1 IN version 29626 build

 

Gen. Posting Type must not be   in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='1000'.

 

I wrote message to know what the gl account  as show below

 

Codeunit 11 Gen. Jnl.-Check Line\RunCheck(GenJnlLine,JnlLineDim)

 

 

 

 

  IF "Account No." <> '' THEN BEGIN

 

    CASE "Account Type" OF

 

      "Account Type"::"G/L Account":

 

        BEGIN

 

          IF ("Gen. Bus. Posting Group" <> '') OR ("Gen. Prod. Posting Group" <> '') OR

 

             ("VAT Bus. Posting Group" <> '') OR ("VAT Prod. Posting Group" <> '')

 

          THEN

 

            Message('%1 %2',"Account No.","Gen. Posting Type");

 

            TESTFIELD("Gen. Posting Type");

 

I note that GL account no and checked but I found that  "Gen. Posting type " is not null. I changed to Null also I am getting same error. 

 

   am I missing some thing or is it a bug

*This post is locked for comments

  • Neville Foyn Profile Picture
    Neville Foyn 4,320 on at
    Re: Error while posting Gen. Posting Type must not be in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='1000'.

    Glad you got it sorted :)

  • smshyd Profile Picture
    smshyd 155 on at
    Re: Error while posting Gen. Posting Type must not be in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='1000'.

    Hi Mr.Neville Foyn

            Thanks for reply.   I have changed to  sales ,purchase and empty but it is giving same error. Later I found that it is used in  Freight in structure(indian functionality) For the freight account there should not be any gen.Posting type or gen.prod or business posting groups and vat  bus. and prod posting groups

    when I removed It get posted.

  • Suggested answer
    Neville Foyn Profile Picture
    Neville Foyn 4,320 on at
    Re: Error while posting Gen. Posting Type must not be in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='1000'.

    Hi

    The posting type cannot be blank if you are posting a sale, it needs to be sale

    This could be because the GL account you ave selected is set to blank, Try setting the GL account you are using on the lines to "Sale" and that may sort out the issue

    Also the values are copied onto the sales order when you create it so just updating the GL wont fix the problem, you will need to delete the order and re-create it

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans