I have a situation with wrong Amount calculated on GL Entry for "G/L Account No.,Posting Date" key. If I sum all amounts in GL entry for specified account, the result is not the same as calculated Amount field on that same account. I found a difference between tables $17$0 and G_L Entry for a specific date and account (for all bucket levels from day to year). It seems that SQL Server did not execute SIFT trigger on G_L Entry in a right way. If I recreate that key, things get correct.
Is anyone familiar with this problem?
0
Answers
RIS Plus, LLC
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
There is no problem to fix it but to identify such a situation:
It seems only 1 entry out of about 250000 GL entries missed to be registered by SIFT trigger; I didn't checked other accounts or even other tables and sumindexfields because it is a lot of processing and manual work to get all tables data on all keys for all SIFT levels using SQL queries and compare it with precalculated SIFT tables).
By the way,I discovered this bug accidentally while checking something else.
Thanks for the replies!
We found the cause of the problem. We used DTS (SQL server Export/Import wizard) to import data in the table and DTS doesn't fire a trigger on insert by default.
(We had to import a few GL entries because they were deleted by accident and it seemed much easier to do it using DTS than dataports or entering it manually).
RIS Plus, LLC
Yes, we were able to rebuild SIFT tables by remove/adding keys (that made keys to rebuild it selfs automatically