The G/L - Item Ledger Relation already exists

avinash
Member Posts: 25
Hi Friends,
I am facing a problem when run the batch of cost post to G/L then shown Error: The G/L - Item Ledger Relation already exists. Identification fields and values: G/L Entry No.='2131452',Value Entry No.='855268'. and when check table Item ledger relation where these entry no. not exist please give me solution for this.
Thanks
I am facing a problem when run the batch of cost post to G/L then shown Error: The G/L - Item Ledger Relation already exists. Identification fields and values: G/L Entry No.='2131452',Value Entry No.='855268'. and when check table Item ledger relation where these entry no. not exist please give me solution for this.
Thanks
0
Comments
-
Hi avinash,
sounds like a posting bug. Could be tricky to debug, though. Do you have additional information, like which NAV version? Do you have a breakpoint where the error occurs?
with best regards
Jens0 -
Please also ensure that nobody deleted some transactions from the database, this could also be the reason for this error.* Daniele Rebussi * | * Rebu NAV Diary *0
-
Thanks for Reply
Jglathe and Geordie
I am using nav 2013 r2 and I am sure that nobody deleted transaction from the database0 -
[Topic moved from 'Navision Financials' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hello, I facing same error in PO with Report Preview Posting.
Did you slove your issue?
NAV 2016.
I'm working with Test Company, so I'm sure nobody deleted any records.
The error comes from Codeunit 5802 Inventory Posting To G/L CreateGLItemLedgRelationEntry.
In Table 5823 is nothing with those Value Entry No.
Thanks
0 -
Hi Astinia,
well, interesting. It would imply that the same relation between G/L entry and value entry is posted twice. Could it be that the preview posting actually posted the entries already? This was a bug in the early releases of NAV2016.
with best regards
Jens0 -
Nav 2016.
Here the same error i got. I am getting this error while posting the Purchase Invoice.
The G/L - Item Ledger Relation already exists. Identification fields and values: G/L Entry No.='0',Value Entry No.='17111'.
For Rectification:
I deleted all the entries in G/L - Item Ledger Relation table but still facing this issue. Yes, while upload the GL opening we deleted some G/L Entries entries.
Causing code is:
Codeunit 5802 Inventory Posting To G/L CreateGLItemLedgRelationEntry.
Please help. Let me know if anyone fixed this issue.
Thanks!!0 -
I figured out the solution, on "Inventory setup" there is the field "Expected cost post to G/L" is True. I just uncheck this tick. Now, I am able to preview posting & as well as I can post the invoice.
This works for me.0 -
HI All, I am facing same error on NAV 2016 when i am trying to post purchase invoices with three or more lines.
I found this change on cumulative update 29 for Codeunit 12.
This change comes from earlier cumulative update.
Before (BEFORE)
Codeunit 12
Function FinishPosting
OnAfterInsertGlobalGLEntry(GlobalGLEntry);
UNTIL TempGLEntryBuf.NEXT = 0;
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;
END;
GlobalGLEntry.CONSISTENT(
After (AFTER)
OnAfterInsertGlobalGLEntry(GlobalGLEntry);
UNTIL TempGLEntryBuf.NEXT = 0;
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;
GlobalGLEntry.CONSISTENT(
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