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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

(0) ShareShare
ReportReport
Posted on by 895

Hi,

Currently we are working on AX 2012 R2 CU7. I have a below scenario,

We have got customizations present on 3 layers,

1. VAR (Done by the Vendor)

2. CUS (Done by In-House Team)

3. USR (Done by In-House Team)

Now we are planning to migrate from AX 2012 R2 CU7 to AX 2012 R3 CU11. Vendors will take care of VAR layer.

Now I have to move all the changes present in CUS & USR layer. Now the changes were done by myself + changes were also done by previous employees who are no more associate with us.

My query is, what is the BEST possible way to take care to move ALL the changes done so far on CUS & USR layer and migrate it to AX 2012 R3 CU11 environment as I am not sure what changes were done by the previous employees.

Would appreciate for some guidance.

Sincerely,

Muneeb

*This post is locked for comments

I have the same question (0)
  • skaue Profile Picture
    Moderator on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    My pleasure

  • Muneeb Profile Picture
    895 on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Yes, to be be honest you are right. Never got lost into ID conflict blunders so only am having so many doubts.

    But as read earlier, i was aware of the fact that issues with ID conflicts leads to blunders. So only I was having questions around that, as this upgrade would highly be surrounded by these concepts and wanted to Avoid blunders!

    Tommy, really appreciate for your help and time :-) Thank you so much for your help and the great content and the flow in which you explained things. Lastly your patience to elaborate things to make me understand things.

    Have got fair idea on the task now with fair enough understanding about ID conflicts and for now i don't have any further questions!

    Thanks a lot for your support Tommy :-)

    Sincerely,

    Muneeb

  • Verified answer
    skaue Profile Picture
    Moderator on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    It sounds to me that the missing detail in your reasoning is understanding how element IDs are created or reused. You may have customizations in VAR, CUS, USR which have environment specific and unique element IDs. This is your biggest concern when preparing a R3 ready application based off the R2 application. If you somehow make existing elements get new element IDs, then you may lose data, settings, application stability and so on.  Consider these statements:

    - Import/Copy a modelstore will keep element IDs

    - Import of XPO will only reuse element ID if elements already exists with same Origin GUID.

    - Install of model will only reuse element ID if elements already exists with same Origin GUID.

    - Uninstall modelA and reinstall same model again will generate new element IDs for any elements inside that model. Result is potential data loss.

    (see my previous post with link explaining what Origin GUID is).

    So when you re-import the backup of the modelstore with a mix of standard R3 code + customized R2 code (VAR-USR), the element IDs are kept. When you reimport your R3 ready VAR Model, the element IDs which exist will be reused, and the VAR Model will in addition have R3 compatible changes to customizations. You want the same to be true for the CUS and USR model.

    The main points are 1) get your code R3 compatible/ready, AND make sure no element IDs are unnecessarily changed.

    I hope that makes sense, as I believe this will help you understand why you reimport modelstore and reinstall models for the layers up until USR.

    Good luck! :D

  • Muneeb Profile Picture
    895 on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Hi Tommy,

    Thanks a lot for such a great detailed explanation. As I am new this upgrade task and have not played around with Models/modelstrores for deployments yet. So many of my queries are solved plus you even cleared few unasked questions!

    I would appreciate your time and help. I am sorry Tommy, please don't mind, I still have few queries on the explanation you gave below. I am putting my comments inlined below in your explanation.

    So after the SYS with R3 code is in place, and you have VAR, CUS and USR unprepared, you will have a starting point for the code upgrade phase. Backup this modelstore in case you need to start over. Let's call this the "unfinished modelstore".

    <Comment-1>

    At this point we simply have R3 CU11 ready with standard VAR, CUS and USR layers with standard Microsoft code base without any customization from our previous R2 CU7?

    </Comment-1>

    Next you "uninstall" CUS and USR, and then "install" the "VAR model" from your vendor. Then compile, sync and verify your R3 is in good shape in regards to code. You may already have done this, but I'd make sure to do it at least once to verify your vendor has not made any blunders, like having a dependency pointing further up in CUS/USR - yaikes!

    <Comment-2>

    (a) If my understanding in "Comment-1" is correct, then are we really supposed to uninstall "CUS" and "USR" while starting with the upgrade of respective layer as these are standard code base only?

    (b) The models CUS and USR, I would be exporting would be from AX 2012 R2 CU7. We would be importing these CUS & USR model files from R2 CU7 into this R3 CU11 in the respective layer during the upgrade process one at a time?

    </Comment-2>

    .

    .

    .

    .

    Regarding Q5, about customizations in LIVE. The guide states you need to freeze any code changes in LIVE when you start this upgrade process. I strongly agree. Adding new customizations to the mix while doing an upgrade is recipe for headache and potentially disasters, like data loss. Unless I misunderstodd Q5.

    <Comment-3>

    I think I did not explain it clearly. Let me rephrase it again. Yes you are right, the Code Freeze needs to be done and is already done.

    By Q5 what I actually meant was, are we supposed to export Project OR Models from both CUS &  USR layer, containing all the customizations from LIVE (R2 CU7)  in order to import it on TEST(R3 CU11)?

    The reason I had this query was because I was thinking that the changes from LIVE(R2 CU7) would be imported manually object by object into LIVE(R3 CU11) which I dont think is the case after reading your explanation and bit of research online.?

    </Comment-3>

    Sincerely,

    Muneeb

  • Verified answer
    skaue Profile Picture
    Moderator on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Hi Muneeb

    Let me chip in on this (at your request). :-)

    From your comments I believe you're on the right tract, and can carry on with your plans. But I'd like just to reiterate some of your thoughts, with my own words, and hopefully this will reassure you.

    You're right you will have to repeat the steps for code upgrade for each layer (like Martin also points out).
    So after the SYS with R3 code is in place, and you have VAR, CUS and USR unprepared, you will have a starting point for the code upgrade phase. Backup this modelstore in case you need to start over. Let's call this the "unfinished modelstore".

    Next you "uninstall" CUS and USR, and then "install" the "VAR model" from your vendor. Then compile, sync and verify your R3 is in good shape in regards to code. You may already have done this, but I'd make sure to do it at least once to verify your vendor has not made any blunders, like having a dependency pointing further up in CUS/USR - yaikes!

    When you're ready to do CUS, you'll restore back the "unfinished modelstore" and install VAR Model.

    PS! you only need to use the "replace" if you're replacing a model where the name or publisher has changed. This shouldn't be true for the "VAR Model", or any of the other default models. Overwrite is only necessary if an element for some reason already exists in a different model *in the same layer*. Since you're only using one model for each layer, this should not be the case.

    Further you "uninstall" USR and go ahead with upgrading CUS only. Export the upgraded CUS model after it is ready.

    Restore "unfinished modelstore". Install "VAR Model" and "CUS Model" which now are R3 worthy, and since you're at the top layer, there is no need to uninstall anything. Fix the USR Model so it also becomes R3 worthy, and you're done!

    Regarding IDs, to fully understand what creates new IDs, and what keeps them as they should be, I shall shamelessly plug my own post about it here:

    http://yetanotherdynamicsaxblog.blogspot.no/2013/11/about-your-elements-origin-id-and-handle.html

    The whole reason you upgrade layer by layer, is because when you sit inside the clients development workspace and do the code upgrade, there is a chance some of your changes may end up in the wrong layer, a layer further up. Example, you code upgrade CUS and one of the changes you try to fix is touched in USR. If USR them still is installed, then you run the risk of putting your fix in USR *even if you're doing the change in a CUS-client*. Yes, it's true. You can try with an element where the method exists changed in both CUS and USR, then try change the method while developing in CUS - your change is saved in USR! And this is why we delete the top-most layers and upgrade one layer at the time. Now, when models are deleted, it can happen that IDs used within that model are lost, so this is why you repeat a modelstore restore for each layer you're code upgrading. Restoring the modelstore sets the IDs back as they were, and when you "install" upgraded VAR and CUS models, you keep the IDs inside the modelstore. Sweeet! :-)
    I've also written about the R2 to R3 upgrade story here: http://yetanotherdynamicsaxblog.blogspot.no/2014/04/upgrading-ax2012-r2-to-ax2012-r3.html

    Regarding Q5, about customizations in LIVE. The guide states you need to freeze any code changes in LIVE when you start this upgrade process. I strongly agree. Adding new customizations to the mix while doing an upgrade is recipe for headache and potentially disasters, like data loss. Unless I misunderstodd Q5.

    Hope that helps a bit. Sorry for the wall of text.

  • Muneeb Profile Picture
    895 on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Hi All,

    Can someone please respond to the above queries which I have?

    And if any of my steps have any correction then guide me for the same.

    I have to anyways start with this task shortly once the vendor would be done with VAR layer.

    Would appreciate for some help if provided soon.

    Sincerely,

    Muneeb

  • Muneeb Profile Picture
    895 on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Sure Martin. No issues. Thank you.

    Yes may be you are right. If I would have known things clearly I wouldn't have posted my question here, rather I would have went ahead with my task.

    Sincreley,

    Muneeb

  • Martin Dráb Profile Picture
    235,914 Most Valuable Professional on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Sorry for confusing you. :-) The remark about off-topic refers to the preceding sentence, not the whole reply.

    I already knew that you're talking about default models such as "CUS Model". Unfortunately even your last reply doesn't explain in any way what kind of problem you have with it.

    I'm sorry, if you think that I'm not responding and I'm just making things more complicated, I have no problem spending my time with somebody who appreciate my help more than you.

    But consider if your feeling that I'm making things more complicated isn't caused by the fact that your simple understanding isn't correct. If you ignore advises and requests for information that don't match your understanding or seem complicated, it might explain why you're not making any progress.

  • Muneeb Profile Picture
    895 on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Thank you for your response Martin.

    Here just for reference I have mentioned "CUS Model". I don't think there is anything off topic. And if there is anything off topic, you can provide your feedback rather than confusing more.

    Like earlier you are simply not responding to the queries I am asking and making things more complicated for the task for which I am seeking some help.

    Anyways thank you so much for your time.

    Sincerely,

    Muneeb

  • Martin Dráb Profile Picture
    235,914 Most Valuable Professional on at
    RE: Migrate ALL CUS & USER layer changes from AX 2012 R2 CU7 to AX 2012 R3 CU11

    Looking at the first query, I can only say I don't understand what it means. Can you please elaborate it?

    For reference, here is the original formulation: All the Customizations are stored in the default Model, so no need to push anything into CUS Model or USR Model as that’s the only MODEL present on CUS Layer or USR Model.

    It seems that you're saying that you have all code in default models, but I have no idea why do you mention pushing something somewhere.

    I strongly recommend never using default models for any development - your models should have descriptive and unique names, a version etc. But it's off-topic - the upgrade process doesn't care about names of your models.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans