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 :
Microsoft Dynamics AX (Archived)

Importing updated Model file from CUS to different layer on Target with same Model name in VAR

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have Model file Named ModelA exported from CUS layer from Source System.

I have to import this ModelA taken from CUS layer to my Target system's VAR Layer, this Target System has the Same Model i.e.Named ModelA in VAR Layer.

Model A file from CUS from Source and Model A in Var in Target seems to have same elements modified, Model A from CUS is more updated version of code.

How can I import Model A file extracted from CUS layer, to my Target Systems VAR layer with already same Model A existing in Var layer without having ID conflicts?

I understand moving models across different layers is not possible with powershell/axutil commands.

What is the best/safest approach in this scenario?

Thanks in advance.

Sabarish

*This post is locked for comments

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Importing updated Model file from CUS to different layer on Target with same Model name in VAR

    You can't change the layer of the model in import. If it existed on cus layer in the source system, it will end up on cus layer in the target system.

    How did this code end up on different layers in the first place? Anyway you will have to harmonize the situation.

    Here's one possible way of doing it:

    1) In the source environment, create a Shared project that contains all elements of ModelA (In development workspace go to Tools - Model management - Create project from model)

    2) Export this model as XPO

    3) Login to the target environment on VAR layer, set ModelA as the current model, and use the xpo import tool to open the xpo file (don't import it yet)

    4) Either compare all imported elements one by one, or if you trust that you want to overwrite the existing code with the code from the xpo, just import it, overwriting all existing elements in the environment. Compile everything, generate CIL, synchronize data dictionary.

    5) Now you have the up to date code on VAR layer in your target environment

    6) Finally, either:

    - Copy the target databases (data + model) to the source environment (I recommend this)

    - Or export ModelA from target environment, delete ModelA from the source environment, and import ModelA to the source environment (could cause some problems)

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,373 Super User 2025 Season 2 on at
    RE: Importing updated Model file from CUS to different layer on Target with same Model name in VAR

    Hi Sabarish,

    This is not possible. You have to import the model in the same layer with the same model name. As alternative, you can move objects to another model within the development environment or use xpo's in this case.

  • Community Member Profile Picture
    on at
    RE: Importing updated Model file from CUS to different layer on Target with same Model name in VAR

    Thanks Nikolaos, the suggestions were helpful. Will follow this.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans