Item Master getting deleted

nasheer
Member Posts: 78
Dear All
Some strange thing happen to the Item Master table some time. Its getting deleted but no change log entry captured.
I added some code in OnDelete trigger of the table 'Item', but no use.
Any suggestion?
Regards
Nasheer.
Some strange thing happen to the Item Master table some time. Its getting deleted but no change log entry captured.
I added some code in OnDelete trigger of the table 'Item', but no use.
Any suggestion?
Regards
Nasheer.

0
Comments
-
Nasheer
Which version of NAV you have? Suggest create a dummy item, delete it and check change log. If both the entries exist (creation & deletion) in change log then the issue is not with the change log. If not then Change log / user setups need to be checked. Adding code for recording item change is not required as it exists already in base NAV.0 -
Thanks for your reply. The problem happened in Version 5.0 SP1.
As you mentioned, I have already tested create item and delete, the change log captures the entries.
But difficult to trace out how all the items were deleted without no information captured in the Change Log.csntor wrote:Nasheer
Which version of NAV you have? Suggest create a dummy item, delete it and check change log. If both the entries exist (creation & deletion) in change log then the issue is not with the change log. If not then Change log / user setups need to be checked. Adding code for recording item change is not required as it exists already in base NAV.0 -
If the item is deleted through code, then it's not recorded in the change log.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
It looks like you're saying it happens alot, since you added code to catch it.
Is someone using a report to delete mass items?0 -
If ALL items are deleted it is probably a report where someone forgot to enable the temporary property for a record variable.
The name of the variably will probably be TempItem or ItemTemp. Usually the first thing you do with a temporary record is a deletall.
Try using the Developers Toolkit to find all occurences of a record varaible for T27 with the command deleteall and check whether the property Temporary is set correct.Frank Dickschat
FD Consulting1
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