InsertlogEntry

siyak
Member Posts: 66
Hi Pips!!
I've created a Table and is looking to the other table and they are working fine,the problem is when i'm inserting a new record and fill the fields and when i want to go to the next line it gives an error saying the record already exists.
The debugger stops at the change log when trying to insert the Entry on codeunit 423(InsertLogEntry(FldRef,FldRef,RecRef,0);).
Is this have something to do with the Keys of the tables.
I've created a Table and is looking to the other table and they are working fine,the problem is when i'm inserting a new record and fill the fields and when i want to go to the next line it gives an error saying the record already exists.
The debugger stops at the change log when trying to insert the Entry on codeunit 423(InsertLogEntry(FldRef,FldRef,RecRef,0);).
Is this have something to do with the Keys of the tables.
0
Comments
-
It sounds like you've got duplicate values in the primary key field(s). Either make sure that you don't have duplicate values in the primary key field(s) or add another field to the primary key so that you won't get duplicate values.
If you've got a typical "lines" table, like Sales Line and Purchase Line, etc, you could add the field Line No. with data type integer to the primary key. Then set the AutoSplitKey property in the form to Yes.0 -
Thanks for the reply,but the autosplit key is used when the primary is Decimal,biginteger,integer,GUID.My key is a code0
-
Try setting the DelayedInsert property of the form to Yes. Make sure that the primary key fields are not identical before inserting the record.0
-
siyak wrote:Hi Pips!!
I've created a Table and is looking to the other table and they are working fine,the problem is when i'm inserting a new record and fill the fields and when i want to go to the next line it gives an error saying the record already exists.
The debugger stops at the change log when trying to insert the Entry on codeunit 423(InsertLogEntry(FldRef,FldRef,RecRef,0);).
Is this have something to do with the Keys of the tables.
What version of NAV is this. It was a known bug in (I think) 3.70ADavid Singleton0 -
Its giving me error message saying the record already exist,Please help ](*,)0
-
I'm using Nav50
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