When I modify my model's current version (via powershell or axutil) the value shown in the "Installed models" form flips back to the original value. I've tried setting the version -> Restart AOS with no luck.
CMDs I've tried:
AxUtil.exe edit /model:MyModel /manifest:Version=1.2.3.4
as well as
Edit-AXModelManifest -Model MyModel -ManifestProperty "Version=1.2.3.4"
If I run either of those commands and then follow with the corresponding "get" for the same property/modelmanifest I can see that the value has been updated in the ModelStore. If I then launch the ax client and open the "Models installed" form then the value flips back to the original value. This occurs even if the aos has been restarted.
*This post is locked for comments
As other say, I only see this for TFS/VSO
If the client that you run is a "dev machine", connected to TFS/VSO, it will revert to the model number stored in the model.xml file. This happens in SysVersionControModelFile.fromFile()
I guess the idea is to restore the dev machine to the version that was updated using the original PS script for builds. I don't think this makes a lot sense as a dev box model will have an "in between build versions" state. The code base of a dev box is only as of a certain build if no changes are made to it.
Any one faced this?
Hello,
I am facing this problem. Has anyone got solution?
I ran axbuild command to change the version of Model and it shows that it updated it correctly. but after AOS restart, it just gets to the original version again. Not sure why this is happening. I have also modified Model.xml file in TFS version control. it's not synchronizing with Model automatically. Am I missing any steps here?
Thanks.
Are you using TFS for version control? If so, you have to edit the Model.xml file in VC.
Open Visual Studio, then Team Explorer and open the Source Control node for you project. In you branch, select the folder for the model you want to update. You will see a Model.xml file in there, it will contain the build number of your model. Right click it, then Check out for edit. Then edit the file with you new build number. Then right click it again and click Check in pending changes... When that's done, in AX synchronize your model with TFS and the build number will be updated.
Hi there,
one thing to try is to add the -Server <SQL Server> -Database <Database> to the Edit-AXModelManifest command. This should make sure that you are connecting to the correct Sever/DB. To see if that makes any difference
Side note: if you are on R2 or higher be sure to use the <database>_model database when trying to update the model manifest
I'm unable to reproduce your problem. My version of AX is 2012 R3. What's yours? Are you able to reproduce it with a trivial new model?
We'd been originally using a template database during our build procedure which already had an empty "myModel" inserted, this was mainly just to avoid having to create one on the fly. I becomes necessary using this approach to update the version of the model during the build.
I've punted on this issue and have updated our build procedures to now create the model, setting the appropriate version in the model manifest prior to issuing the "create" call.
I am aware of this article, in fact I'm almost positive I referenced it when investigating how to get this change accomplished. The issue here is that the command/value doesn't "stick".
Mohamed Amine Mahmoudi
100
Super User 2025 Season 1
Community Member
48
Zain Mehmood
6
Moderator