web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Mount New Empty Database for New Company

(0) ShareShare
ReportReport
Posted on by 12

We followings step to create a new tenant database in a multitenant deployment.

1) In SQL Server, create a new database. (Empty Database same collation to the same as the application database)

2) Give the Business Central Server service account privileges to the database

New-NAVCompany -ServerInstance BC170 -Tenant XYZ -CompanyName 'XYZ Ltd'

We are getting error The tenant 'XYZ' is not mounted or does not exist.

3) Mount the database as a tenant to the application.

Mount-NAVTenant –ServerInstance BC170 -Id XYZ –DatabaseServer XXXXXX -DatabaseName 'XXXXXX' -OverwriteTenantIdInDatabase -DatabaseCredentials (Get-Credential)

We are getting error  The XXXXXXX database has version 0 which is not supported by this version of
Microsoft Dynamics 365 Business Central Server. Please contact your administrator.

Can you advice please

I have the same question (0)
  • Suggested answer
    raelhefn Profile Picture
    on at

    On the Business Central database, the service account must have the following roles and permissions:

    db_datareader, db_datawriter, and db_ddladmin database roles

    View change tracking permission on the database schema (dbo)

    You can set permissions directly on the database user that you set up for service account. However, we recommend that you create a role that includes the permissions, and then assign the user to the role.

    For more information please refer to : docs.microsoft.com/.../provision-server-account

    before create company : Mount the database as a tenant to the application.

    To mount the tenant, use the Mount-NAVTenant cmdlet. For example:

    Mount-NAVTenant -ServerInstance BC170 -DatabaseName "XXXXXX " -DatabaseServer XXXXXX  -Tenant BCTenant1 -AllowAppDatabaseWrite

    it is recommend that you use the -AllowAppDatabaseWrite parameter. Later, you can dismount and mount the tenant again without the parameter if needed.

    after that Synchronize the tenant.

    Sync-NAVTenant -ServerInstance BC170 -Tenant BCTenant1 -Mode Sync

    for more information please refer to : docs.microsoft.com/.../devenv-create-databases

  • Mohammed Marhoon Profile Picture
    12 on at

    Hi Realhefn

    Thank you so much for your reply and shared information.

    We did all steps above the issue was not related the above steps. basically my team they forget to publish the extensions to the tenant by install / sync them :)) .

    Again thank you for your support.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans