Question Status

Suggested Answer
lispyj asked a question on 8 Nov 2013 10:29 AM

I have an exported Model Store from AX2012 R2 CU6 that would now like to import just the Var Model into AX2012 R2 CU7.  What steps do I take to do this?

Reply
Suggested Answer
Tommy Skaue responded on 8 Nov 2013 11:31 AM

You can use "Install-AXmodel" to install the exported axmodel:

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

Notice that the default behavior is model will be installed in the same application layer it was exported from.

Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

Reply
Suggested Answer
André Arnaud de Calavon responded on 8 Nov 2013 11:34 AM

Hi,

The model store contains all elements for all layers and models with the installation specific ID's. It is not possible to import just the VAR model from this model store.

Is is possible to export the VAR model (not the complete store) and import this in a CU7 installation. If you want to keep the installation specific ID's you need to upgrade the CU6 VAR installation.

kind regards,

André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.

Reply
Tommy Skaue responded on 8 Nov 2013 11:36 AM

Andre's answer is correct. I misread the question. :-)

Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

Reply
lispyj responded on 8 Nov 2013 2:09 PM

I was afraid of that.  I should start by saying that this is a test upgrade.  I exported the model store thinking I could restore it after creating a new database, and avoid 6 hours of compiling. I tried, but the import of the store wouldn't get past the ID conflict prompt. Then I discovered cu7! 30 minute compiles! I reinstalled all components and am to the pont of creating the var model. I also created an xpo of the var layer, so that I could fall back to the familiar, but I wanted to get familiar with using the models.  can I restore a full model store to a fresh cu6 installation?

Reply
Suggested Answer
Tommy Skaue responded on 10 Nov 2013 4:02 AM

You should really read through the upgrade guide carefully, escpecially the code upgrade part, to familiarize yourself with the steps when upgrading layers by layers AND making sure your Element IDs and Element Handles remains unchanged. You do not want loss of data.

technet.microsoft.com/.../jj733502.aspx

Also feel free to read my blogpost about element IDs and element Handles - hopefully it gives some additional insight.

yetanotherdynamicsaxblog.blogspot.no/.../about-your-elements-origin-id-and-handle.html

A code upgrade done right is not something to be taken lightly. :-)

Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

Reply
Suggested Answer
Tommy Skaue responded on 8 Nov 2013 11:31 AM

You can use "Install-AXmodel" to install the exported axmodel:

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

Notice that the default behavior is model will be installed in the same application layer it was exported from.

Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

Reply
Suggested Answer
André Arnaud de Calavon responded on 8 Nov 2013 11:34 AM

Hi,

The model store contains all elements for all layers and models with the installation specific ID's. It is not possible to import just the VAR model from this model store.

Is is possible to export the VAR model (not the complete store) and import this in a CU7 installation. If you want to keep the installation specific ID's you need to upgrade the CU6 VAR installation.

kind regards,

André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.

Reply
Suggested Answer
Tommy Skaue responded on 10 Nov 2013 4:02 AM

You should really read through the upgrade guide carefully, escpecially the code upgrade part, to familiarize yourself with the steps when upgrading layers by layers AND making sure your Element IDs and Element Handles remains unchanged. You do not want loss of data.

technet.microsoft.com/.../jj733502.aspx

Also feel free to read my blogpost about element IDs and element Handles - hopefully it gives some additional insight.

yetanotherdynamicsaxblog.blogspot.no/.../about-your-elements-origin-id-and-handle.html

A code upgrade done right is not something to be taken lightly. :-)

Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

Reply