NAV 2009 Flukey Issue

Rob_Hansen
Member Posts: 296
Recently I've been hitting issues with the RTC that have been challenging. Now I've hit one in NAV2009 that occurs in both the RTC and Classic. After 10 years of working with NAV it's frustrating to struggle with things that were simple for me previously...anyway...
I'm hitting an error on a FINDSET that is saying a record in the referenced table already exists. I fail to see what scenario could cause this FINDSET to raise an error (especially considering the variable was CLEARed at the start). Two screenshots are attached. Image01 shows a debugger screenshot where the error occurs - on a FINDSET call. Image02 shows the error message. It's a message you'd expect to encounter on an INSERT with a conflicting record, but I am lost as to why some simple code to filter on a table and do a FINDSET would raise an error about a record already existing.
Any insight would be appreciated.
I'm hitting an error on a FINDSET that is saying a record in the referenced table already exists. I fail to see what scenario could cause this FINDSET to raise an error (especially considering the variable was CLEARed at the start). Two screenshots are attached. Image01 shows a debugger screenshot where the error occurs - on a FINDSET call. Image02 shows the error message. It's a message you'd expect to encounter on an INSERT with a conflicting record, but I am lost as to why some simple code to filter on a table and do a FINDSET would raise an error about a record already existing.
Any insight would be appreciated.
Rob Hansen
http://www.epimatic.com
http://www.epimatic.com
0
Comments
-
You can disregard this post. Through trial and error (commenting out all INSERTs into the referenced table one by one) I pinned down the conflict. The issue was a matter of the debugger not highlighting the problem at the point of the INSERT. I'm still not sure why it was triggering the error on a FINDSET call, and I wasted a lot of time on this, but life goes on...Rob Hansen
http://www.epimatic.com0 -
It is because the "delayed inserts" features, where the inserts are delayed to be "inserted" in batch. And this is at the end of transaction or any FIND/GET command for same table.0
-
I had a similar issue. It drives me crazy. It took me almost all day to figure out the problem. I'm just wondering why the debugger is not able to trigger this 'delayed inserts' issue. The bottle neck is that the debugger stops at the most 'stupid' places in the code what doesn't make any sense. By try and error I finally figured out what the problem was. But is there anyone out there with a suggestion how deal with these kind of issues?
Thanks.Roelof de Jonghttp://www.wye.com0 -
0
-
It seems like a practical solution would be to disable delayed inserts whilst debugging - delayed inserts are not important here since the act of debugging removes the necessity for performance in the debugee connection, it is more important to get ease, accuracy and clarity to aid in debugging itself.
This is good input for the coming NAV debugger.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.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