Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Code merge in one layer

Posted on by 1,146

Hi All,

we are upgrading an AX 2012 R3 TO D365FFO, but we need first to merge all our code in usr layer since it is one several layers and models , what is the best practice to do so ? and would it affect the data upgrade ?

Thank you,

  • MDeeb Profile Picture
    MDeeb 1,146 on at
    RE: Code merge in one layer

    thank you, so i shall create a project using the filter option of each model and export it, then import all models in other layers to usr layer.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Code merge in one layer

    You can't export/import a layer. And if you export a model, you can't import it to a different layer. Only with xpo you can import it to a different layer. 

  • MDeeb Profile Picture
    MDeeb 1,146 on at
    RE: AX 2012 R3 code merge in one layer

    Thank you Nikolaos,

    i will do it on separate new development machine, just to facilitate the code upgrade purposes, so i export usr layer, then export var layer, delete var, then delete usr , then import var to usr then import on top of it the usr layer right ? i know it is risky and it might have some minor issues.

    Regards,

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: AX 2012 R3 code merge in one layer

    The layer of the code (or metadata, such as tables) doesn't impact data upgrade.

    But what you just described will break your data in AX2012. All table and field ids would change and your system would not work anymore.

    I'm not sure if/why you would need to move all code to usr. But if you need to do it, the process must be different.

    I think that it should work if you just login to usr, export objects as xpo, then import them back. Now all objects should exist in usr.

    Then you can delete the model from the lower layer. However there might be some issues so I can't guarantee that it will work.

  • MDeeb Profile Picture
    MDeeb 1,146 on at
    RE: AX 2012 R3 code merge in one layer

    Thank you Nikolaos, so i can export all elements from VAR then delete them, and import them to USR layer then do the code upgrade on LCS right ? then will do dataupgrade since all the tables will have same name in D365FFO right ?

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: AX 2012 R3 code merge in one layer

    Hi Mohammed,

    How many layers do you have your customizations in?

    I am not sure how you would merge into a single layer especially if you have created tables in these different layers (Table Ids would have been generated accordingly).  

    I would suggest having a single model per layer you have modified. This way you could lock these models after code upgrade (in D365) and only continue with a single model for future customizations.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: AX 2012 R3 code merge in one layer

    The layer(s) of your code have no impact in data upgrade.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,989 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans