Import a company from other database

  • Import a company from other database

    Posted by DSC Communities on June 16, 2017 at 7:32 am
    • Imran Khan

      Member

      June 16, 2017 at 7:32 AM

      Versions: NAV 2016

      We have two databases of same version 2016. One is main one which is bespoked. Other one is standard obviously data in it and has few companies. I would like to have those companies from standard one get imported to the main one as additional companies. So lets say main database has companies 1,2 and 3. The standard one has company A. The end result should be 1,2,3 and A in the main database.

      How would you achieve that?

      Thanks.

      ——————————
      I K
      Dynamics Nav Developer
      ——————————

    • Ian Ray

      Member

      June 16, 2017 at 3:00 PM

      Copying companies is simple in NAV 2016+

      Use the NAV powershell.

      Export-NAVData -DatabaseServer ‘Servername’ -DatabaseName ‘DatabaseName’ -CompanyName ‘Company’ -FilePath X:pathtofilefilename.navdata

      Import-NAVData -DatbaseServer ‘Servername’ -DatabaseName ‘OtherDatabaseName’ -CompanyName ‘Company’ -FilePath X:pathtofilefilename.navdata

      Export-NAVData on MSDN

      Import-NAVData on MSDN

      ——————————
      Ian Ray
      Cypress Grove
      Arcata CA
      ——————————
      ——————————————-

    • Imran Khan

      Member

      June 16, 2017 at 3:21 PM

      Thanks Ian

      Is using powershell method any different from using the import/export companies from RTC? I have tried the RTC one , exported the data to navdata and on importing it throws an error as table definitions are different.Ā 

      Does the powershell method also export all ledges and import to other database?

      Please advise.

      ——————————
      I K
      Dynamics Nav Developer
      ——————————
      ——————————————-

    • Ian Ray

      Member

      June 16, 2017 at 3:55 PM

      The cmdlets and the import/export from the RTC are the same as far as I know.

      If the databases are that different, you could try creating a third one and “upgrading” it to be like target with the development environment before exporting.

      There is also this tool, but I have never tried it
      https://mibuso.com/downloads/copy-nav-2013-r2-company

      ——————————
      Ian Ray
      Cypress Grove
      Arcata CA
      ——————————
      ——————————————-

    DSC Communities replied 8 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Import a company from other database’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!