
Recently while running a tenant synchronization in Microsoft Dynamics 365 Business Central (on-prem), I encountered an error during the Sync-NAVTenant process:
This error typically occurs during tenant synchronization and can halt your deployment or upgrade process. The issue stems from corrupted or incomplete metadata in the app schema snapshot table, specifically related to table extensions.
The error indicates that the $ndo$navappschemasnapshot system table contains table extension records that are missing the required appid field. This can happen due to:
The fix involves cleaning up the corrupted table extension metadata from the schema snapshot table. Here’s the SQL query that resolves the issue:
USE [YourDatabaseName]
GO
DELETE FROM [$ndo$navappschemasnapshot]
WHERE (istableextension = 1)
GO
4. Start the Service and Sync
Restart the service and perform the tenant sync:
Use Powershell
Start-NAVServerInstance -ServerInstance YourInstanceName
Sync-NAVTenant -ServerInstance YourInstanceName -Mode Sync
The “Missing appid on table extension metadata” error can be frustrating, but it’s usually straightforward to resolve with the SQL cleanup approach. Remember to always backup your database before making direct SQL modifications and test the solution in a non-production environment first.
If you face a similar issue during tenant sync or app upgrade, this SQL cleanup should help you recover quickly.
Original Post https://ammolhsaallvi.blog/2025/11/03/š§©fixing-missing-appid-on-table-extension-metadata-error-in-business-central/






