PowerShell: Import/Compile: can't connect to Server Instance

RalfEscher
Member Posts: 2
Hi!
While working with the Compile-NAVApplicationObject & Import-NAVApplicationObject Scripts I am keep getting the same error message on my local machine:
Environment: NAV2016 (Build 44974), but occurs also on other builds.
On my local machine I have many different NAV installations, but we don't encounter the problem on the middle tier server or on the local machine of my collegue (also with multiple installations). We check the registry settings, tried to load the DLL manually, check the verbose output and many more.
Additionally we forced the script to use the correct server instance, server name & management port (without it finds the wrong server instance).
We assume that the problem is the sync tenant function since it is working for all other objects except tables.
Any helpful hints?
Thanks in advance
Ralf
While working with the Compile-NAVApplicationObject & Import-NAVApplicationObject Scripts I am keep getting the same error message on my local machine:
Environment: NAV2016 (Build 44974), but occurs also on other builds.
[0] The Server Instance specified in the Options window is not available for this database. You must choose an instance to use before performing this activity. Do you want to do this now? -- Object: Table 3 Payment Terms
On my local machine I have many different NAV installations, but we don't encounter the problem on the middle tier server or on the local machine of my collegue (also with multiple installations). We check the registry settings, tried to load the DLL manually, check the verbose output and many more.
Additionally we forced the script to use the correct server instance, server name & management port (without it finds the wrong server instance).
We assume that the problem is the sync tenant function since it is working for all other objects except tables.
Any helpful hints?
Thanks in advance
Ralf
0
Answers
-
Make sure the powershell shortcut is executing the ps1 script from the correct build directory. It should be located in the service tier directory. I have about 15 different builds on my system, so I have a shortcut that runs C:\Program Files\Microsoft Dynamics NAV\900 44947\Service\NavAdminTool.ps1 Note that you cannot copy/paste that path - the powershell shortcut has other parameters that make it execute correctly, so copy an existing shortcut and modify that.Kyle Hardin - ArcherPoint0
-
Thanks for the hint (we checked that).
Meanwhile we have found out that the problem only occurs if there is more than one Server Instance assigned to the according database. We have contacted Microsoft Support which are working on that Problem (they could reproduce that error).1 -
Hi RalfEscher,
We have the same problem. Did you get an answer from Microsoft?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