Strange problem Autosplitkey

Christel
Member Posts: 28
Hello,
I've got the weirdest problem at a customer. Working with Nav 5.0 SP1 update 2 (without maintenance so I can't upgrade to a higher version)
When entering sales lines 9 out of 10 times everything works fine, but sometimes it go's like this:
Entering the first line, no problem
Entering the second line, when leaving the line it jumps to the fist line Line no becomes 5000 instead of 20000
Entering the third line, same as second line no becomes 2500
Compiled the database, backed it up and restored it problem stays on the order that went wrong.
](*,) ](*,) ](*,) ](*,)
I'm out of resources :oops:
Christel.
I've got the weirdest problem at a customer. Working with Nav 5.0 SP1 update 2 (without maintenance so I can't upgrade to a higher version)
When entering sales lines 9 out of 10 times everything works fine, but sometimes it go's like this:
Entering the first line, no problem
Entering the second line, when leaving the line it jumps to the fist line Line no becomes 5000 instead of 20000
Entering the third line, same as second line no becomes 2500
Compiled the database, backed it up and restored it problem stays on the order that went wrong.
](*,) ](*,) ](*,) ](*,)
I'm out of resources :oops:
Christel.
0
Comments
-
i think this occurs when you use a different sorting than the primary key in a form with the property autosplitkey enabled, either by design ( dataitemtableview ) or by the user selecting another sorting in the form itself. The fact you are saying that the line moves after inserting only adds to my suspicion. You might want to check that out.0
-
Thanks for your repley, I tought exactly the same. But noby's touching the sorting nor is their anything changed on the forms.
I've copied the database on my laptop, with the same client I get the same behavior.
Backed up the database and restored it with client 5.0 without SP1 and it works. ](*,)0 -
If I use the 5.0 client on the 5.0 SP1 database it works to
Opening the DB with client 5.0 SP1 and it's wrong again :-k
Downgrading the client's will be the answer :-$0 -
What about different zup if you use different version? Try to delete zup in the not-working environment to be sure that it is not in it...0
-
Yep I'm sure it's not the zup. Error happens sometimes on an order when it happens the error stay's with the order. Even if you take a backup and restore it on an other machine error stay's but using the older client helps :-k
The server were the error happens is brand new but already using 11,4 of the 12 gig,
maybe to slow for client 5.0SP1 and not for 5.0??0 -
I am getting the same issue in Nav 6, some forms seem to do autosplit key in the wrong direction, like I am inserting above the record instead of below.
No wacky keys or anything, did you ever find a solution to your issue?0 -
I'm facing the same problem.
When I try to insert a new line on a document form (with AutoSplitKey and DelayedInsert set to TRUE) I've 2 different behaviors:
If I input the line manually --> The 2nd record is correctly inserted with a Line No. of 20000
If I use the lookup to select an Item. No. --> The 2nd line gets a Line No. of 5000 the form is re-sorted.
Here is the code used in the OnLookUp of the "Item No." field:Item No. - OnLookup() PurchLine.SETRANGE("Document Type", PurchLine."Document Type"::Order); PurchLine.SETRANGE("Document No.", "Purchase Order No."); PurchLine.SETRANGE(Type, PurchLine.Type::Item); ItemLookupForm.SETTABLEVIEW(PurchLine); ItemLookupForm.LOOKUPMODE(TRUE); IF ItemLookupForm.RUNMODAL IN [ACTION::OK,ACTION::LookupOK] THEN BEGIN ItemLookupForm.GETRECORD(PurchLine); VALIDATE("Item No.",PurchLine."No."); END;
I've checked the filters and everything is default (sorting on primary key in ascending order)0 -
What code is in the OnValidate of the "Item No." field in the table?Gerry Kistler
KCP Consultores0 -
gerrykistler wrote:What code is in the OnValidate of the "Item No." field in the table?
Item No. - OnValidate() ...Some code... [b]xRec := Rec;[/b] ...Some code...
](*,)
Thanks for your help0 -
Well I don’t know what ..some code.. does, but the problem maybe the xRec := Rec which is causing havoc with the autosplit key.Gerry Kistler
KCP Consultores0 -
Yes this is the piece of code which provoque this error.
Thanks0 -
Yes this is the piece of code which provoques this error.
Thanks0
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