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)

2 models in Application Platform module after upgrade

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,024 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?

  • Suggested answer
    Martin Dráb Profile Picture
    236,822 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.

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

    No, Migration was done around 6 months back.

  • Nishant2408 Profile Picture
    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

  • Verified answer
    Martin Dráb Profile Picture
    236,822 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.

  • robertk Profile Picture
    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?

  • Martin Dráb Profile Picture
    236,822 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
    360 on at
    RE: 2 models in Application Platform module after upgrade

    Thanks for the clarification.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans