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.
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.
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.
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.
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.
Comments
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.
NAV & Web Orders Solution Specialists
itmgr@compusoftnet.ca
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.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Is someone using a report to delete mass items?
http://www.BiloBeauty.com
http://www.autismspeaks.org
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.
FD Consulting