D365 Finance & Operations and Dynamics AX Forum

 View Only
Expand all | Collapse all

Azure build pipeline error after deleting unused model ('No descriptors could be found for model')

  • 1.  Azure build pipeline error after deleting unused model ('No descriptors could be found for model')

    GOLD CONTRIBUTOR
    Posted Feb 23, 2022 08:07 PM

    We use an Azure pipeline for F&O package builds and we recently deleted a model our MS partner had created because it was not being used. The build pipeline now fails the X++ Compile step with the error:

    D:\a\10\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(19,5): Error : No descriptors could be found for model '[PartnerModel]' in metadata directory 'D:\a\10\s\Metadata

    Does anyone know where we need to remove a reference to this model in the build configuration?
     



    ------------------------------
    Jack Ogle
    DFW Heavy Duty
    Forth Worth TX
    ------------------------------


  • 2.  RE: Azure build pipeline error after deleting unused model ('No descriptors could be found for model')

    SILVER CONTRIBUTOR
    Posted Feb 24, 2022 07:40 AM

    Hi Jack,

     

    I'm not sure what steps you've already taken in this process so some of this might be redundant, but here are the steps I usually take when creating or installing customizations for compilation through the pipeline.  My assumptions for these steps are that you have a source development machine where you do the work in Visual Studio and a destination machine that the pipeline compiles to, with a merge process that determines what the pipeline uses for that compilation.  Here are our applicable steps:

     

    1. Azure DevOps > Repos: Remove the associated model folder

     

    2. Visual Studio (RUN AS ADMINISTRATOR):

        a. Source Control Explorer: Right-click > Get latest version on /Trunk/Main/Metadata (or whatever your path is)

        b. This will apply the deletions

       

    3. Stop 4 services (also stop VS IIS express): 

        WWW Publishing Service

        Microsoft Dynamics 365 Data Import Export Framework

        Microsoft Dynamics 365 Batch Management

        Management Reporter 2012 Service

       

    4. Manually delete any remaining model-associated folders from K:\AosService\PackagesLocalDirectory

        a. DO NOT DELETE ANY MS FOLDERS

        b. You will likely need to close VS to complete this

       

    5. Visual Studio (RUN AS ADMINISTRATOR):

        a. Dynamics 365 > Model Management > Refresh Models

        b. Pending Changes > Check in

        c. /Trunk/Main/Metadata: right-click > Branching and Merging > Merge

            i. Selected changes

            ii. Select all changes related to this deletion

            iii. If prompted for conflicts, take newest version

        d. Dynamics 365 > Synchronize database [you may not absolutely need to do this, but it sometimes has a surprising impact on what ends up in the pipeline]

        e. Pending Changes > Check in [this is where the changes will affect the pipeline]

     

    6. Restart services (see above)

       

    7. Run build pipeline in Azure DevOps

     

    Hopefully something in there will help.

     

    Best,

    Ben

     

    BENMORGAN

    520.293.1488 ext. 7472

     

     






  • 3.  RE: Azure build pipeline error after deleting unused model ('No descriptors could be found for model')

    GOLD CONTRIBUTOR
    Posted Feb 24, 2022 03:51 PM
    Thanks for replying Ben. I was able to resolve the issue by removing a project referencing the model in the solution set in the Build solution step of the pipeline. I updated the solution in Visual Studio, checked it in and that triggered the build. It completed without errors.

    ------------------------------
    Jack Ogle
    DFW Heavy Duty
    Forth Worth TX
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role