Rename Item No

mustafaAlsoufi
Member Posts: 66
I created a report to rename the "No." field in the Item Table. Since this field is a primary key I used Rename function as shown below

I know my code is working as I tried it already for another Item No, but for this certain "No." I'm getting the following error

NAV Version

Does anyone know how to resolve this issue?

I know my code is working as I tried it already for another Item No, but for this certain "No." I'm getting the following error

NAV Version

Does anyone know how to resolve this issue?
0
Answers
-
Hello mustafaAlsoufi,
most likely the number is used in an Archived Order, that's why you get that message.
I would enable the debugger and look at which position that error appears.0 -
Hi @mustafaAlsoufi, it seems that you have to modify the No. in the related order lines (remember to grant the proper table permission to your report as is an archived doc) before renaming your record. Make sure that modify code is triggered in order to modify item ledger entries as well in the rename trigger of the table.
Hope this helps!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