Employee Portal: Modify Records in own Tables

Jaana
Member Posts: 28
Hi,
there was already a post 4 years ago. It was closed by "restarting NAS helped"... however. In my case it doesn't help.
The Problem
I created a new table, added the necessary code to the codeunits 6822 and 6824. The table can be displayed in EP but whenever I try to insert a new record or modify an existing one I get the error message
Error during Modify (20): Another user has modified the record for this Object after you retrieved it from the database. Enter your changes again in the Web Part.
I already restarted NAS, IIS, NAV and the Sharepoint Website... nothing helps. What else do I need to change?!? Or is there anything in the setup which can cause this?!?
Cheers, Jaana
there was already a post 4 years ago. It was closed by "restarting NAS helped"... however. In my case it doesn't help.
The Problem
I created a new table, added the necessary code to the codeunits 6822 and 6824. The table can be displayed in EP but whenever I try to insert a new record or modify an existing one I get the error message
Error during Modify (20): Another user has modified the record for this Object after you retrieved it from the database. Enter your changes again in the Web Part.
I already restarted NAS, IIS, NAV and the Sharepoint Website... nothing helps. What else do I need to change?!? Or is there anything in the setup which can cause this?!?
Cheers, Jaana
0
Comments
-
Hello,
I think if you haver not inserted all the Primary Key Fields in the Code while inserting or modifying the data, then this error may come.
Then also,when you are doing any coding in NAV part then, please compile all the objects of NAV and then synchronize all logins and then restart all the necessary services and NAV session as well as browser.
It may solve your problem.0 -
Hi,
thanks for your help!
I tried now all your suggestions (compile, synchroniz, restart all services (I even restarted the whole server). Nothing helped.
The primary key was the first I suspected to cause the problem. And now I finally found the (copy and past - ) error after reviewing my code for the 1000st time... FilterString := STRSUBSTNO( 'WHERE(1=CONST(%1),3=CONST(%2))', DecodeXML.GetValueByFieldIDFromHeadData(XMLDocInHead,EPAccScheduleFilter.FIELDNO("User ID")), DecodeXML.GetValueByFieldIDFromHeadData(XMLDocInHead,EPAccScheduleFilter.FIELDNO("Acc. Schedule Name")));
I copied the Sales Order... in my case the second PK field is not 3 but 2. Changed the code to
'WHERE(1=CONST(%1),2=CONST(%2))',
now it works. Thanks!!!!!!
Jaana0
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