Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX 4 to 2012R3CU8 upgrade. Reset environment.

Posted on by 2,983

The situation is:

- we have AX4 in single user mode ready for data upgrade.

- We have our final application of AX 2012 R3 with CU8 applied.

Now, what we need to do is create a new instance of our 2012 final app with a blank database, so we can do the data upgrade.

What's the correct way of doing this? What I tried was:

- Create a new database with AX setup. (This creates MyNewDataBase and MyNewDataBase_model)

- I restored a copy of MyFinalDatabase_model into MyNewDataBase_model.

- I started the AOS and started the data upgrade cockpit.

However, I'm getting errors in the upgrade scripts cockpit like "method ... does not exist in class ReleaseUpgradeDB60_..." 

Any ideas on how to fix this?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    You need to perform source to target data upgrade

    I suggest you should follow Dynamics AX 2012 R3 Upgrade guide

    you can download it over here

    www.microsoft.com/.../details.aspx

    please let me know if you need any technical support for this work

  • skaue Profile Picture
    skaue on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    Assuming the x++ compilation went through without errors, you next need to make sure CIL is successfully generated. The upgrade steps all run using the batch framework, and they depend on managed code being generated from the x++ code.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    Thanks for the answer.

    Something is not working, because I'm still getting the same error "method ... does not exist in class ReleaseUpgradeDB60_..."

    This is what I've done:

    1. Created a new database/database_model/databaseBaseline from AX 2012 R3 Setup.

    2. Applied CU8 to the database_model

    3. Applied hotfix 480148_intl_i386_zip to the database_model.

    4. Export-AXModel -Model "VAR Model"  ... (from my existing environment)

    5. Export-AXModel -Model "USR Model"  ... (from my existing environment)

    6. Install-AXModel -createparents -File t:\VAR.axmodel

    7. Install-AXModel -createparents -File t:\USR.axmodel

    8. Create a new AOS from AX 2012 R3 Setup. I choose my new database as target database and check the option for upgrade.

    9. Apply CU8 binary to the new AOS and restart AOS.

    10. Do a full X++ compile

    11. Restart AOS

    12. Now start the checklist. I load my license. Select the license configuration modules and synchronize.

    13. Now when I do the PreSync step in data upgrade, I have the problem.

    CU8 introduces in the SYP layer a few PreSync Jobs like ReleaseUpdateDB60_Ledger.disableGenJourEntryJournalNumLedgerIdx

    However, cockpit returns error: method disableGenJourEntryJournalNumLedgerIdx does not exist in ReleaseUpdateDB60_Ledger.

    It seems like the cockpit is unable to read objects in the SYP layer, only reads the SYS layer.

    Any ideas why???

  • Suggested answer
    skaue Profile Picture
    skaue on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    This will not work!

    When you initiate a new AX2012 system, there will be a portion of the application that will have environment specific IDs. You simply can't copy a model database between two different environments like this. The reason you are getting errors is because the first setup has different element IDs compared to the second one.

    If you have code in your first environment that you want to use for the upgrade, you should rather export this code to xpo or model files and import these to your new environment.  

  • dekaasboer Profile Picture
    dekaasboer 1,530 on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    It matters where your code runs and if your actions require working interfaces\ services.

    Go to your user settings, under development there is a checkbox wether to run business logic in CIL or on X++.

    You will probably run in to problems when you start using DMF I think. Why don't you set up 2 enviroments? One with the new data layout to test data migration but without the faulting business logic? And one enviroment where you can hammer out all your coding problems? It isn't pretty and you need extra testing and validation when merging everything but it isn't unheard of in larger or longer running projects with multiple developing party's.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    Thanks for the answer,

    I need to confirm that a full CIL compile is 100% neccesary, as we have about 400 compile errors in X++ that we need to fix from objects that haven't been upgraded yet.

    We will do upgrade of this objects soon, but we really need to do a data upgrade tests at this stage.

    I understand that the upgrade scripts are standard SYS/SYP layer objects, hence they should work even if custom objects are not fully compiled?

    Is there any way of doing data upgrade at this stage without a full CIL compile? Database is fully synchronized.

  • dekaasboer Profile Picture
    dekaasboer 1,530 on at
    RE: AX 4 to 2012R3CU8 upgrade. Reset environment.

    Whenever you replace a modelstore you need to run a full compile and CIL compile and DB sync.

    Second I presume you are working in a test\ staging enviroment.

    You can do the following with the setup:

    Install a AOS and attach existing databases.

    Create new databases en attach them to a existing AOS.

    Install a secondary AOS and databases.

    Offcourse you can use a customised modelstore with a blank DB from the setup as long as you do the whole compiling and sync routine.

    You can in theory run 99 aos instances from one server if you have the hardware.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans