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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

What is best practice for multiple model import?

(0) ShareShare
ReportReport
Posted on by 506

How do I manage the import process with multiple model files from different sources?

e.g. I have a Partner model file (CUS layer) and an End-User model file (USR layer).

Can I simply import each model file using Install-AXModel and then run the full compile and database synchronise?

Or should I repeat the Install-Compile-Synchronise process for each file?

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    241,635 Most Valuable Professional on at

    You can do it at once. First prepare the modelstore to the state you want and then compile X++ and CIL and synchronize DB.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If they do not change the same objects, importing them one by one,  then compiling/synchring and doing extra steps required (setup, configuration, etc.) as per their documentation from the Partner/ISV are enough just once.

    If same objects are modified on the same layer, conflict model is created. You need to merge the code and resolve the conflicts.

    If you import an object on a higher layer on a model, that will overlayer the previous object and again you need to merge them.

  • _MGP Profile Picture
    506 on at

    Thanks for the reply - I understand your comment on modelstore (also in context of the comment from Vilmos below).

    How does a conflict in the modelstore state show up? After importing a model file? Or when you start the Client? I have not seen evidence of conflicts so far.

    Also, I've been stopping the AOS before I do the model import and only start it when I need to do the CIL compile. Is this acceptable or is there a good reason to keep AOS running during import and X++ compile?

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Conflicts are explained in the model import MSDN documentation, and in the How to resolve article:

    technet.microsoft.com/.../hh352314.aspx

    technet.microsoft.com/.../hh446521.aspx

  • Martin Dráb Profile Picture
    241,635 Most Valuable Professional on at

    It depends on what conflicts you mean. I assumed you're installing compatible models, if not you'll have to look for overlayering and logical conflicts.

    AOS should be down when you're installing models. You would have to start it for X++ compilation if you used the native compiler running inside AX client.

  • _MGP Profile Picture
    506 on at

    Thanks Martin, Vilmos - much appreciated.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans