NAV2015: PowerShell Import-NAVData tenant error

paurola
Member Posts: 43
Hi.
I am trying to import a full "backup" from a .navdata file into an empty NAV database, but I get an error:
Import-NAVData : Tenant default in database NAV_2015 is not operational
. The tenant can be brought to operational state by a call to Sync-NavTenant.
At line:1 char:1
+ Import-NAVData -ServerInstance NAV_2015 -IncludeApplicationdata -ALLC
omp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
What is this? I do not have any tenants, this is an empty NAV2015 database with a service that has the "tenant" check box empty. The PowerShell command I am using is as follows (I am not sure if this is correct, because I cant get pass of this tenant error):
PS C:\Windows\system32> Import-NAVData -AllCompanies -IncludeApplicationdata -IncludeGlobalData -ServerInstance NAV_2015 -FilePath C:\temp\NAV_CRONUS_2015.navdata
How difficult would it have been to integrate this PowerShell Cmdlet in GUI of the Admin tool or the Development Environment...
I am trying to import a full "backup" from a .navdata file into an empty NAV database, but I get an error:
Import-NAVData : Tenant default in database NAV_2015 is not operational
. The tenant can be brought to operational state by a call to Sync-NavTenant.
At line:1 char:1
+ Import-NAVData -ServerInstance NAV_2015 -IncludeApplicationdata -ALLC
omp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
What is this? I do not have any tenants, this is an empty NAV2015 database with a service that has the "tenant" check box empty. The PowerShell command I am using is as follows (I am not sure if this is correct, because I cant get pass of this tenant error):
PS C:\Windows\system32> Import-NAVData -AllCompanies -IncludeApplicationdata -IncludeGlobalData -ServerInstance NAV_2015 -FilePath C:\temp\NAV_CRONUS_2015.navdata
How difficult would it have been to integrate this PowerShell Cmdlet in GUI of the Admin tool or the Development Environment...
0
Comments
-
Did you try to "Sync. Schema for All Tables" with Validation under Tools of development Environment?0
-
mohana_cse06 wrote:Did you try to "Sync. Schema for All Tables" with Validation under Tools of development Environment?
I would really like to know what is going on here, but in the meantime I can tell you my workaround. Instead of using the parameter ServerInstance I used parameters ApplicationDatabaseName and ApplicationDatabaseServer. After the sript was run there was still nothing in the database even though the script did not show any errors. I then imported all objects from a fob-file and ran the script again, this time without the IncludeApplicationdata and I finally had a new working db with the data from the navdata file.0
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