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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Visual Studio "Mo...
Finance forum

Visual Studio "Model" is grayed out in Build Models Menu after manual import of a deployable package.

(0) ShareShare
ReportReport
Posted on by 3,208 Moderator


I have manually applied a deployable package on a VM following this https://ax.help.dynamics.com/en/wiki/installing-deployable-package-in-ax7/

The package elements were successfully imported and I can see the package model and elements in classic/model view of AOT.

But all elements show up in italic font and in the Build Models menu the related package model is grayed out (check-box to select for build disabled). Can anyone please guide me on what am I missing or what do I need to do next??

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    306,290 Super User 2026 Season 1 on at

    Hi Zain,

    You are not missing any object. They are deployed correctly. The fact that you see them in italic font is because you have deployed the runnable files, not moved the model with source coding.

    The source code is only required on development machines.

  • Verified answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Thank you for the clarification André. You're right.

    My second issue related to this was that I could not see the deployed elements in the environment front end. But as Martin suggested in another post I was missing the license file and importing that resolved that issue.

  • Dynamics 365 for finance and operation Profile Picture
    25 on at

    Hi Zain,

    I have the same issue and I had imported the license as described on the following link:

    docs.microsoft.com/.../isv-licensing

    using the following command:

    C:\AOSService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir c:\packages --bindir c:\packages --sqlserver . --sqldatabase axdbrain --sqluser AOSUser --sqlpwd ******** --licensefilename c:\templicense.txt

    The command runs without errors, but when coming back to Full Build, Packages still grayed. is there any other step that I'm missing?

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You don't have the models / source code in your dev system. Instead you have installed binaries (deployable package) that contains these models. Correct?

    If this is correct, the source code doesn't exist. You need to install models to get source code.

  • Martin Dráb Profile Picture
    240,020 Most Valuable Professional on at

    It's not related to license. Deployable packages generally contain binaries, not source code, therefore you simply don't have any source code installed.

    If you tell us what you're doing, we should be able to suggest a correct procedure.

  • Dynamics 365 for finance and operation Profile Picture
    25 on at

    Ok, this is reasonable, because after the license the added modules appeared at Dynamics Application and I can work with it normally.

    What I'm trying to do is to apply for some new user roles on those customized modules, Do I need to have source code or the binaries are enough?

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You can't add anything to those packages. You can only develop stuff on packages for which you have the source code. So, you need to create your own package and model if you don't already have a custom model that you are working on.

    Where did you get the deployable package? Is it a third party solution? Ir something your company developed? If it's your company's code, you need to get the source code from source control. That's how you share code between developers.

    All your custom code and all ISV solutions (binary or model) should anyway be added to your source control. Then your build process should build one package from all that stuff. Then you deploy this package to test/prod.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Also, if you only want to define new roles, you can do that without development in Security configuration form.

  • Zain Bokhari Profile Picture
    3,208 Moderator on at

    Hi Hassan,

    You can still access the elements for creating new security roles. You can do that from the front end as Nikolas suggested. Or if you want to do this in Visual Studio as a developed solution, you can do it in your own model(create one) and you would be able to access the elements you want in those roles from that other deployed package as long as you add that model (containing the required elements) as a reference in your own model.

    I hope that clears things up for you. Cheers!

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans