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

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

    Posted by DSC Communities on February 23, 2022 at 8:07 pm
    • Jack Ogle

      Member

      February 23, 2022 at 8: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:a10NuGetsMicrosoft.Dynamics.AX.Platform.CompilerPackageDevAlmMicrosoft.Dynamics.Framework.Tools.BuildTasks.targets(19,5): Error : No descriptors could be found for model ‘[PartnerModel]’ in metadata directory ‘D:a10sMetadata

      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
      ——————————

    • Ben Morgan

      Member

      February 24, 2022 at 7: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:AosServicePackagesLocalDirectory

          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

       

       

      ——————————————-

    • Jack Ogle

      Member

      February 24, 2022 at 3: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
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Azure build pipeline error after deleting unused model (‘No descriptors could be found for model’)’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!