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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Code merge in one layer

(0) ShareShare
ReportReport
Posted on by 92

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,

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

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

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    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.

  • MDeeb Profile Picture
    92 on at

    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
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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
    92 on at

    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,

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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
    92 on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans