Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Modifying a model's version

Posted on by Microsoft Employee

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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modifying a model's version

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modifying a model's version

    Any one faced this?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modifying a model's version

    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.

  • Klaas Deforche Profile Picture
    Klaas Deforche 2,431 on at
    RE: Modifying a model's version

    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.

  • WPAK Profile Picture
    WPAK on at
    RE: Modifying a model's version

    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

  • Martin Dráb Profile Picture
    Martin Dráb 225,588 Super User on at
    RE: Modifying a model's version

    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?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modifying a model's version

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Modifying a model's version

    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".

  • Umesh Pandit Profile Picture
    Umesh Pandit 9,102 User Group Leader on at
    RE: Modifying a model's version

    Hi Ryanpete,

    Please check this technet article

    technet.microsoft.com/.../hh433512.aspx

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans