Skip to main content

MSDYN365BC - Export-NAVApplicationObject '"' is not an option. The Existing options are:No,Yes.

Hi Readers,

Today while working on a project we faced an issue. The issue occurs while using the Powershell cmdlet Export-NAVApplicationObject.

The version that can be replicated in -
  • Microsoft Dynamics 365 Business Central April'19 on-premises.
  • Cumulative Update 10.
  • Application Build 14.11.41204
  • Platform Build 14.11.41143

In this article, we will discuss why this error and How to Solve this issue?

When is the error? 

When you try to use Powershell cmdlet Export-NAVApplicationObject  either using Dynamics NAV Development Shell or using Powershell after loading the Dynamics NAV Module.

What is the error?

'"' is not an option.
The existing options are:
No, Yes



What we tried?
  1. Removed Filter in the cmdlet to see maybe we are applying filter incorrectly. 
  2. Check License Saved in Database.
  3. Check Permission in the Folder where the file is to be written/saved.

Why is the error? 

So after tried all standard processes and solutions when nothing got fixed, this problem was brought to my notice.

Spun up a Microsoft Dynamics 365 Business Central April'19 on-premises CU 09 docker environment and test Export-NAVApplicationObject and everything worked file.

Now thought to compare NAV Modules from CU09 and CU10 to see what was changed. 

What was Changed? - 

I don't know How PowerShell is written but when I did compare I see Microsoft added a New parameter in Function RunNavIdeCommand. 

This Parameter is SuppressElevationCheck as shown below.


So I think Microsoft will fix the issue with this new parameter in the upcoming cumulative Update.

Temporary Fix?

As a temporary fix, you can replace Microsoft.Dynamics.Nav.Ide file from Business Central 14 Cumulative Update 09 to Installed Folder of Cumulative Update 10.

After the Replacing file, all PowerShell cmdlets will run successfully.

Let me know your views as a comment on this article.

Stay connected for more.

Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments

  1. Hi,

    Freddy also blogged about this issue here: https://freddysblog.com/2020/02/22/small-issue-in-bc-2019-wave-1-cu9/
    He also shows how to patch the powershell to fix the issue.

    Best Regards,
    Gert Lynge
    www.dabbler.dk

    ReplyDelete

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.