I've run into this error with a client trying to post a payment journal. The Ledger Entry Dimension already exists. Table ID = 17, Entry No=377261, Dimension Code='COST CENTER'.
There are 123 lines in the payment batch. Since the last G/L Entry is 377220 it looks to me like it's duplicating a Ledger Entry Dimension that is created earlier in the posting. When i debug, it craps out in CU 13 on COMMIT, 13 lines from the bottom of the Code() trigger. The record that is assigned to all the GenJnlLine variables is the last record in the batch.
Any suggestions how to find the problem or where to start looking next would be appreciated.
If guns cause crime mine must be defective.
0
Comments
There is a brilliant trick to see what was going on during failed transaction described here
http://www.mibuso.com/forum/viewtopic.php?t=22748
and here
http://gotcal.com/index.php/2010/10/what-is-in-your-dynamics-nav-toolbelt-find-inconsistency-in-gl-entries-when-posting/
Try to play with it.
Good luck
Senior SDE - Dynamics Nav Application - Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks to Stan for posting a suggestion.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for the explanation - this answers a lot but this functionality makes debugging and tracing the error a nightmare as unsure when the insert statement was actually executed. Navision didn't use to work this way - is there a way to switch it off when debugging or is this a SQL option!
With thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for the explanation - Guess its gonna keep me in a job for years to come ](*,) !
At least they fixed this issue in terms of batch jobs in R2 \:D/ !
With thanks