How to see why you are getting CONSISTENCY Error
Comments
-
I've updated this for 2016 that uses events. So no objects are modified.
https://dynamicsuser.net/nav/b/ara3n/posts/consistency-error-in-dynamics-nav
0 -
i have got that error in posting preview and i found that in codeunit transaction-post previewmode was true but when it's posting codeunit gen. jnl. post, previewmode is not passed true. Before posting gen. jnl. post in transaction-post you have to setpreviewmode true and then everything is fixed.
edit: for nav 180 -
I was getting the error saying: "where and how the CONSISTENT function is used in the transaction to find the reason for the error.\\Contact your system administrator.\\Tables can"
It happened whenever I would run my test from Test Toolkit. What I did was to go to my test function and above it added: [TransactionModel(TransactionModel::AutoRollback)]
The error stopped coming.
The entire function signature now looks like this:
[Test]
// Below should always be set else you'll get GLEntry consistency errors
[TransactionModel(TransactionModel::AutoRollback)]
procedure postInvoice_NotRegistered()0 -
I was getting the error saying: "where and how the CONSISTENT function is used in the transaction to find the reason for the error.\\Contact your system administrator.\\Tables can"
It happened whenever I would run my test from Test Toolkit. What I did was to go to my test function and above it added: [TransactionModel(TransactionModel::AutoRollback)]
The error stopped coming.
The entire function signature now looks like this:
[Test]
// Below should always be set else you'll get GLEntry consistency errors
[TransactionModel(TransactionModel::AutoRollback)]
procedure postInvoice_NotRegistered()
The CONSISTENT error is tripped by the commit to the database. With the AutoRollBack setting the commit never happens. Thus no error. Same reason a test post won't trip this error.
There are no bugs - only undocumented features.0 -
I've updated this for 2016 that uses events. So no objects are modified.
https://dynamicsuser.net/nav/b/ara3n/posts/consistency-error-in-dynamics-nav
Hi ara3n
This link is broken, can you help me with to look into this solution? I'm trying to implement it in Business Central.
Thanks a lot!0 -
Hi rafaeru, I've recently wrote a solution for BC 24, that uses pretty much the same concept as ara3n original idea, but applied to BC events.
https://bcrepositories.com/2024/08/09/Check-GL-Inconsistencies/
Rgds.Marcelo Borges
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com0
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