Problem on SQL option navision

iqbalmad
Member Posts: 180
hi
i just moved my database on MS SQL 2005
on one particular custom made program, i am getting this problem
"Another user has modified the record for this Payroll MasterFile after you retrieved it from the database.
Enter your changes again in the updated window, or start the interrupted activity again.
Identification fields and values : No.='139513'"
the program breaks on a MODIFY command.
Can anyone help please.
thankx
i just moved my database on MS SQL 2005
on one particular custom made program, i am getting this problem
"Another user has modified the record for this Payroll MasterFile after you retrieved it from the database.
Enter your changes again in the updated window, or start the interrupted activity again.
Identification fields and values : No.='139513'"
the program breaks on a MODIFY command.
Can anyone help please.
thankx
0
Comments
-
You need to do a get in your code for the variable before the modify.
Somewhere in your code you are calling a function that goes and modifies the record (if you find it, then make sure you pass by reference the current variable).0 -
iqbalmad wrote:hi
i just moved my database on MS SQL 2005
on one particular custom made program, i am getting this problem
"Another user has modified the record for this Payroll MasterFile after you retrieved it from the database.
Enter your changes again in the updated window, or start the interrupted activity again.
Identification fields and values : No.='139513'"
the program breaks on a MODIFY command.
Can anyone help please.
thankx
The reason why you can get this error is that timestamp of the current record is less than timestamp of the record on the server.
Sample code:
OBJECT Codeunit 70000 cu
{
OBJECT-PROPERTIES
{
Date=23-05-08;
Time=13:33:17;
Modified=Yes;
Version List=;
}
PROPERTIES
{
OnRun=BEGIN
rec.FIND('-');
rec2 := rec;
rec.MODIFY;
rec := rec2;
rec.MODIFY;
END;
}
CODE
{
VAR
rec@1102601000 : Record 70000;
rec2@1102601001 : Record 70000;
BEGIN
END.
}
}SOFTWARE DEVELOPMENT ENGINEER
NAV Sustained Eng
“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