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

Community site session details

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

Solved: How to update NAV2018 with exported *.fob using command Import-NAVApplicationObject

(0) ShareShare
ReportReport
Posted on by

I tried update NAV2018 using *.txt files first. But it requires some packages as for development. So i tried update NAV2018 with exported *.fob:

Import-Module "${env:ProgramFiles(x86)}\Microsoft Dynamics NAV\110\RoleTailored Client\NavModelTools.ps1" -WarningAction SilentlyContinue | Out-Null

Import-NAVApplicationObject -Path D:\work\namise.fob -DatabaseName NAV2018 -LogPath D:\work -SynchronizeSchemaChanges force -Confirm:$false


pause

But errors was shown:

thumbnail_5F00_thumbnail_5F00_Outlook_2D00_o1amalrh.png

and command was not processed succesfully. Is command Import-NAVApplicationObject ekvivalent for manual import proces? Can be used for *.fob too?

Open Microsoft Dynamics NAV Development Environment -> Click File -> Click Import -> Select .fob -> Message shown: The objects in D:\work\namise.fob could not be imported because there are objects already in the database with conflicting versions. Choose OK to open the Import Worksheet, or Cancel to stop the import. -> Click OK -> Click Replace All -> Click OK -> Click Synchronize Schema Force (Changed will be synchronized to the database table without validation. Data in table column that are affected by the changes will be deleted) -> Click Synchronizate changes to the corresponding tables in SQL Server Yes -> Use from select All table schema changes were synchronized with force -> Shown table where is Import completed (replaced XY) -> then restart NAV services -> Done

If is command Import-NAVApplicationObject equal to mentioned manual process. What does mean these errors? Are solvable?

Thank you a lot!

Kind regards

Lukas

Solution: Was missing parameter Overwrite for ImportAction.

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    408 on at
    RE: How to update NAV2018 with exported *.fob using command Import-NAVApplicationObject

    Hi, I have also got the same issue related to conflict using fob file. But if I use .txt file for same object having destructive changes Import-NAVApplicationObject works perfectly fine and synchronize schema forcefully. So,  you use txt files if you want to import objects that can result in destructive changes.

    Failed:

    failed.PNG

    Success:

    successful.PNG

  • Suggested answer
    raelhefn Profile Picture
    on at
    RE: How to update NAV2018 with exported *.fob using command Import-NAVApplicationObject

    Hi Lukas,

    Import-NAVApplicationObject MyAppSrc.txt -DatabaseName MyApp

    This command imports all application objects in MyAppSrc.txt (text format ) into the MyApp database.

    Please refer to this doc for more examples how to import multiple files from folder.

    docs.microsoft.com/.../import-navapplicationobject

    another suggestion export those objects to .txt and import using the mentioned command.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to update NAV2018 with exported *.fob using command Import-NAVApplicationObject

    Was missing parameter Overwrite for ImportAction.

    Kind regards

    Lukas

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,330

#2
Sumit Singh Profile Picture

Sumit Singh 2,738

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,546

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans