Upgrade to 2013R2-An Attempt to change an old version.

cacilley
Member Posts: 31
I have recently upgraded a company from 2009 R2 to 2013 R2. I was doing some testing trying to make sales orders and post them. I ran into an issue while trying to post the sales order I receive this error message:
"An attempt was made to change an old version of a sales header record. The record should first be reread from the database. This is a programming error.
Identification fields and values."
I was wondering if anyone else has had this issue? I assume it is some of the old modifications causing this, which may lead to no one really being able to point me in the right direction. I turned on debugging and it shows me it's breaking on an end in codeunit 80(sales-post) but it doesn't make since why it is breaking where it is. Any and all help is appreciated.
"An attempt was made to change an old version of a sales header record. The record should first be reread from the database. This is a programming error.
Identification fields and values."
I was wondering if anyone else has had this issue? I assume it is some of the old modifications causing this, which may lead to no one really being able to point me in the right direction. I turned on debugging and it shows me it's breaking on an end in codeunit 80(sales-post) but it doesn't make since why it is breaking where it is. Any and all help is appreciated.
0
Comments
-
This usually happens when you've got code that modifies a record followed by a find operation on that same record without a COMMIT in between. That results in the record being re-read and thus you get the error you see. Hopefully that helps you get a little closer to a resolution.
You're right in that likely this has to do with modifications that were made somewhere along the line and stepping through it is the right way to track that down. Perhaps set a breakpoint in the code further up in the chain and step through the entire process instead of letting it break on error.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