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
Thanks for the clarification.
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.
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?
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.
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
No, Migration was done around 6 months back.
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.
Have you upgraded recently?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156