Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Cannot import some objects after merging !

Posted on by 1,392

Hi experts,

I used PowerSheel Cmdlet to update my Application code. when i try to import All-merged.txt file in my database some objects can't be imported i get this error : you are not allowed to create ...... 

but when i import a that object as a FOB it works fine !!

Nb : Knowing that i use my developer licence,

*This post is locked for comments

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,135 Super User 2024 Season 2 on at
    RE: Cannot import some objects after merging !

    Did you update your partner license after September 9th?

    Try with new license.

    markbrummel.wordpress.com/.../grab-your-power-license-create-table-1

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Cannot import some objects after merging !

    For Importing text file object you need to have developer license .Kindly check your license

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Cannot import some objects after merging !

    You cannot you Join-NAVApplicationObjectFiles cmdlet on .fob the source and destination need to be .txt files. Anyhow it looks like you have used powershell cmdlets to merge the application now you have the Result .txt file which you want to import correct ? since the target object has new objects or object fields which are not in the custom range you cannot just import the Result.txt file, since our license will not permit to create those objects.

    What you need to do is, take the target .fob file and import it and using the import worksheet, in the import worksheet filter it for type table then except for Action create all other change entries Action change to Merge: Existing <- New , this will make sure to add the new fields in the tables or create new tables. Once this is done you can use your Result.txt file to import.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Cannot import some objects after merging !

    Hi Medo,

    The error you get is most likely due to standard tables containing new standard fields. That applies to system tables (those in range 2000000000..) that the structure may change when you apply new Cumulative Updates.

    "But when i export one of those object from Standard 2016 as Fob object i can import it in my database with same licence" ==> A fob file contains compiled objects that you can import to NAV even without developer license. This is why you can export/import fobs from standard database.

    So, in order to merge your code; you'll need to have three databases/objects files:

    1. The standards NAV database same as your current database version (for example Cumulative Update 3) ==> Let's name it the "Base",
    2. Backup of your current database ==> Let's name it "Custom Base",
    3. The standard NAV database of the targeted version (for example Cumulative Update 12) ==> Let's name it "New Base"

    Your goal is to create the "New Custom" objects/database. For that, I suggest you to follow the steps described in this video in order to understand the process of merging NAV objects using Powershell.

    I hope this answer will help you.

  • MedInfoTech Profile Picture
    MedInfoTech 1,392 on at
    RE: Cannot import some objects after merging !

    Hi luc,

    But when i export one of those object from Standard 2016 as Fob object i can import it in my database with same licence.

    What i should do right now :

    delete those objects form Txt file and import them later. or what i should do

    Best regards

  • Luc van Vugt Profile Picture
    Luc van Vugt on at
    RE: Cannot import some objects after merging !

    Eventhough you give the file the extension .fob internally it is a .txt file. Importing this pseude .fob file will thus give an import erro on object outside of your license range - typically these are new standard MS objects and fields.

  • MedInfoTech Profile Picture
    MedInfoTech 1,392 on at
    RE: Cannot import some objects after merging !

    Hi Suresh,

    i used this command Join-NAVApplicationObject –Source C:\Upgrade\RESULT\*.txt -Destination C:\Upgrade\all-merged.Fob

    however the problem persists !

    Best regards

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Cannot import some objects after merging !

    You cannot use text, because your license will not permit to create objects or object fields which are not in the custom range. You need to use .fob.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans