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
Glad you got it sorted :)
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156