HI,
My client told me about a strange problem they faced last week. They were in middle of posting some journals when the system just went restarted (dont know why!- prob some Vista thing :evil: ). When they restarted the PC and posted journals again, there are duplicate entries created in ledgers!! I know it sounds weird :?
Can you please help me what would be the best way to solve it, should I reverse all the transactions? They are on Nav 5.0.
Thanks,
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We are using SQL server.
Thanks,
Yeap you are right, that developer has written a 'Commit' at some point. What should I now do to re-do my transactions? There are double G/L entries, cust ledger etc. entries created in the system. And the worst part is we dont have a backup prior to this occurence of problem.
Thanks,
Next get your developer to remove those Commits and recode the process (as needed) to handle possible system failures, which is a standard requirement of any multi-user database system.
Explicit Commits should be used only when absolutely required. As you see they can have disasterous results when placed in the wrong spot.
You should find the developer and slap him with a trout, and then fire him.
The first thing that you are told about Navision programming is to never use COMMIT.
And the only time you use them is if you are writting your own posting routine or batch process job.
Yeah, will try to clean up the data and get rid of the Commits.
Thank you very much,
Ashima
You should find the developer and slap him with a trout, and then fire him.
The first thing that you are told about Navision programming is to never use COMMIT.
And the only time you use them is if you are writting your own posting routine or batch process job.[/quote]
Thanks for your help.
Regards,
Ashima
You will find a number of places where COMMITs are used in the base code. Take a look at CodeUnits 80 and 90.
RIS Plus, LLC
Thank you all for your views. The problem has been solved, luckily I got hold on a backup of the system prior to making the postings. But will surely take care of the Commit statement. A commit has been marked in between the transactions, thats why the system didnt roll back to the beginning.
Thanks again,
Regards,
Ashima