G/L - Item Ledger Relation already exists. G/L Entry No.=0, Value Entry No.=1027

yeewoon
Member Posts: 2
Hi. I am referring to NAV 2016. My customer facing a problem whereby when click Preview Posting button in Sales Invoice, error prompt: G/L - Item Ledger Relation already exists. G/L Entry No.=0, Value Entry No.=1027." I have checked the G/L - Item Ledger Relation table & Value Entry, the Entry No. does not exist. However, when I click Post button, no error prompt, the Invoice posted successfully.
I have no idea how is this error prompt, and where else should I check. Kindly advise. Thank you.
I have no idea how is this error prompt, and where else should I check. Kindly advise. Thank you.
0
Best Answer
-
In Codeunit 12 Gen. Jnl.-Post Line
//IF NOT GenJnlPostPreview.IsStarted THEN BEGIN
GLReg."To VAT Entry No." := NextVATEntryNo - 1;
IF GLReg."To Entry No." = 0 THEN BEGIN
GLReg."To Entry No." := GlobalGLEntry."Entry No.";
GLReg.INSERT;
END ELSE BEGIN
GLReg."To Entry No." := GlobalGLEntry."Entry No.";
GLReg.MODIFY;
END;
//END;7
Answers
-
In Codeunit 12 Gen. Jnl.-Post Line
//IF NOT GenJnlPostPreview.IsStarted THEN BEGIN
GLReg."To VAT Entry No." := NextVATEntryNo - 1;
IF GLReg."To Entry No." = 0 THEN BEGIN
GLReg."To Entry No." := GlobalGLEntry."Entry No.";
GLReg.INSERT;
END ELSE BEGIN
GLReg."To Entry No." := GlobalGLEntry."Entry No.";
GLReg.MODIFY;
END;
//END;7 -
Hi vnhack,
Seems like it involves coding part to solve the issue. Is it considered as a standard bug?0 -
Hi, where do I need to put the codes as I do not see where to place the suggested codes in CU120
-
could anyone please help as the client has this issue - I need to know where exactly in CU12 do I put the suggested code?0
-
Hi Yee Woon, Escalate to technical.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions