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
Thanks Martin, Vilmos - much appreciated.
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.
Conflicts are explained in the model import MSDN documentation, and in the How to resolve article:
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?
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.
You can do it at once. First prepare the modelstore to the state you want and then compile X++ and CIL and synchronize DB.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156