Another User Modified Error when I modify Customer Card

siribala
Member Posts: 6
Hi All,
I am having problem with the customer card. When I change any information in customer card I send all record to one table (Update Customer) using Codeunit. I run stored procedure every 5 min to pick up all the records in Update Customers table and stored procedure inserts all records in to another database. At the time the stored procedure runs if any user modify any field in customer card they are getting the following error message.
"Another user has modified the record for this customer after you retrieved it from the database"
Please help me on this how to resolve this issue.
Thanks,
I am having problem with the customer card. When I change any information in customer card I send all record to one table (Update Customer) using Codeunit. I run stored procedure every 5 min to pick up all the records in Update Customers table and stored procedure inserts all records in to another database. At the time the stored procedure runs if any user modify any field in customer card they are getting the following error message.
"Another user has modified the record for this customer after you retrieved it from the database"
Please help me on this how to resolve this issue.
Thanks,
0
Comments
-
Seems like your stored procedure is changing the original record. You should avoid it.
But I didn't understand if it the error is on the customer table or a table in where you store that the customer-record has been changed.
In the latter case, probably you do a get of the record without locking it, than you change it and want to write it back, but it is blocked until the stored procedure frees it and then you get the error because the stored procedure has changed it. Putting a LOCKTABLE just before the GET (or FINDx) of the record probably will fix it.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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