Hi all,
I need to know if I am the only one that from time to time, deletes the records in Object Metadata, and recompile in order to have the Object Metadata "rebuilded" ?
Now working on NAV 2013 R2 this procedure has a catastrofic influence on the data.
Deleting a table record in the Object Metadata table in NAV 2013 R2, results in having all data in that table deleted as well, in all Companies.
I just deleted all records in the Object Metadata table and afterwards I have lost all data in all tables.
This is a warning to you, used to delete data i Object Metadata.
Does anyone knows if this is intended or something that have been changed to suit the Multitenant environment ?
Regards
Tom H
0
Comments
It has been so in all RTC versions. Nothing new here.
If I delete record for Table 18 in Object Metadata, it will also delete all of my customers in table 18 in all Companies.
To my knowledge, it did not do that in versions prior to 2013 R2. (?)
It was not like this before NAV2013R2..
It must be a :bug:
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
A couple of times I had to delete object metadata since some modifications done on a table were not "reflected" by RTC and erasing them was apparently the only way to proceed.
I have done this in response from ms too while an update didn't work. So this deleting of data is new to me too and must be a bug..!
http://msdn.microsoft.com/en-us/library ... 71%29.aspx
I wonder if there are any news regarding this problem. We experience the same problem on some installations of NAV 2013 R2 rollup2. But unfortunatelly the table record deletion does not happen on all databases and we can not idnetify what is causing this behaviour. Any feedback much appreciated.
As you have noticed there was change in architecture in 2013 R2 changes the behavior when deleting records from this table directly (and not by compiling).
Direct removal of records will remove all metadata and all data.
We have added a limitation to address this, users will no longer be able to remove table metadata by deleting them directly from this table. Other metadata will still be removable.
This has been addressed in KB2907588, available on Partner Source
Regarding data loss, we might not have complete overview over the circumstances here, but similar issue was reported regarding system tables.
Upgrading has caused loss of data in system tables in some scenarios. This applies to system tables that would have been part of tenant data in MT scenario, check product documentation for the list:
http://msdn.microsoft.com/en-us/library ... 1(v=nav.71).aspx
This has been addressed in KB2907589, available on Partner Source.
http://msdn.microsoft.com/en-us/library/dn271701(v=nav.71).aspx
and the other disables deletion of table records from object metadata table, seeing this is often used in the channel (also causing data loss).
Please note that the two scenarios above are the only repro steps provided so far, if you know of any other scenarios, please contact support.
https://mbs2.microsoft.com/Knowledgebase/kbdisplay.aspx?WTNTZSMNWUKNTMMYZWLSWZQTLLRPPXLZMZKQRXOOKPXVWZZU
When upgrading to /working with 2013 R2, you should be aware of the following (to avoid schema synchronization issues):
1. Make sure NST has DBO permissions (object change listener might fail otherwise, you'll find records of this in event view log)
2. Make sure you're on later builds (I think that latest build relevant for these issues was 35881, KB 2907589, but if you install KB 2923351 you should be covered
3. Using Import - Replace - SaveAs - Import of the saved fob might result in metadata inconsistency. This is being looked into at the moment, but for the time being, it might be wise not to use it in combination with schema changes.
4. If making schema changes on larger tables that might prompt index rebuild etc.. you might need to increase SQL connection timeout client services parameter. Default value is 30 mins, you might need higher value to complete schema synchronization for larger tables. Should this be the case, you'll find an event similar to this in event view log: Message: A transport-level error has occurred when sending the request to the server. (provider: Session Provider, error: 19 - Physical connection is not usable)
And just to add (though this is really just repeating oneself), in legacy mode schema synchronization will start only at client action (start-up or any action if the client is already running)..