Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

2 models in Application Platform module after upgrade

Posted on by 705

Hi All,

We have recently migrated our code from AX 2012 to AX 7. After migration we have got 2 models in Application Platform module due to which an error is coming.

Lets consider two models as-

1) Application Platform Model

2) Application Platform ABC Model

Error : "The model 'Application Platform ABC' belongs to 'Application Platform Module' that is hard sealed. You can not have more than one model in this module."

After seeing the error it is sure that we can't have more than one model in Application Platform module but I am not sure how to resolve this error. Any help would be really appreciated.

Regards,

Nishant Srivastava

*This post is locked for comments

  • robertk Profile Picture
    robertk 360 on at
    RE: 2 models in Application Platform module after upgrade

    Thanks for the clarification.

  • Martin Dráb Profile Picture
    Martin Dráb 230,056 Most Valuable Professional on at
    RE: 2 models in Application Platform module after upgrade

    For VSTS, deleting a file is a change as any other - you have to check in your local changes before they're available on server.

    If you want to complete delete a model, delete also its descriptor file.

  • robertk Profile Picture
    robertk 360 on at
    RE: 2 models in Application Platform module after upgrade

    We just finished the code migration from AX 2012 and have the same error. We have removed the modifications so the Application Platform ABC is empty.

    I'm wondering how you have removed this model?

    Do you just delete the folder from the local machine (J:\AosService\PackagesLocalDirectory\ApplicationPlatform if deployed to Azure)? What happens when you synchronize from VSTS?

    Or do you delete the folder from VSTS and synchronize?

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,056 Most Valuable Professional on at
    RE: 2 models in Application Platform module after upgrade

    You can easily put new tables to another package. That's not a problem at all.

    You can add new indexes via table extensions.

    Adding new method is possible via class extensions, although I can't say whether they allow everything you need.

    Yes, you can use extensions and now, you can't overlayer objects in Application Platform.

  • Nishant2408 Profile Picture
    Nishant2408 705 on at
    RE: 2 models in Application Platform module after upgrade

    Hi Martin,

    Thanks for the reply!

    There are some tables where we added some indexes and some classes (i.e. Global, Info etc.) where we added some additional methods. So what exactly I should do?

    Is it possible to keep those customization using Extensions or overlayering?

    Thanks!

    Nishant

  • Nishant2408 Profile Picture
    Nishant2408 705 on at
    RE: 2 models in Application Platform module after upgrade

    No, Migration was done around 6 months back.

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,056 Most Valuable Professional on at
    RE: After migration from AX 2012 to AX 7 getting 2 models in Application Platform module

    Application Platform model doesn't allow customizations anymore. You have to redesign your changes to they don't require customizing the Application Platform model. Maybe you can get rid of some modifications, maybe you can move some logic to higher "logical layer", maybe you can use extensions. If you have an important change that can't be achieved without customizing Application Platform, have a chat with Microsoft - they may add an extension point (such as an event) that will help you to achieve your goal without customizations.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: After migration from AX 2012 to AX 7 getting 2 models in Application Platform module

    Have you upgraded recently?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans