AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.05.2022, 12:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
dynamicsaxinsight: D365: Azure build pipeline failed
Источник: https://dynamicsaxinsight.wordpress....peline-failed/
==============

Purpose:

The purpose of this post is to share how can we resolve Azure build pipeline errors.

Application:

Dynamics 365 Finance and Operations

Problem:

Recently I faced an issue while running build pipeline in Azure DevOps. The pipeline failed with errors like:

The ExtendsOfAttribute specification is invalid. Please specify an existing element to extend.

The class or interface XXX does not exist

The underlying type XXX or its base type for table XXX field XXX does not exist.

The name XXX does not denote a class, a table, or an extended data type.

The XXX argument of the XXX compile-time function does not specify a known table/map/view/data entity.

Solution:

The pattern I noticed was that all of the errors were coming from elements that were in the Application Suite model.

After investigating I found that for versions 10.0.18 onwards, we need to use 4 NuGet packages instead of 3 because of the Microsoft.Dynamics.AX.Application.DevALM.BuildXpp NuGet size is getting near or over the max size which is 500MB and will come as 2 NuGet packages from now on.

Reference:

https://docs.microsoft.com/en-us/dyn...ne-nuget-split

To resolve this issue
  1. Update packages.config file
  2. Add new variable to the pipeline
  3. Add reference to the variable in the build script
1. Update packages.config

The packages.config file will have an additional line for the Application Suite NuGet.


2. Add new variable to the pipeline

Add a new variable to the pipeline variables called AppSuitePackage with the value Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp.

3. Add reference to the variable in the build script

You can get the script from below.

/p:BuildTasksDirectory="$(NugetsPath)\$(ToolsPackage)\DevAlm" /p:MetadataDirectory="$(MetadataPath)" /p:FrameworkDirectory="$(NuGetsPath)\$(ToolsPackage)" /p:ReferenceFolder="$(NuGetsPath)\$(PlatPackage)\ref\net40;$(NuGetsPath)\$(AppPackage)\ref\net40;$(NuGetsPath)\$(AppSuitePackage)\ref\net40;$(MetadataPath);$(Build.BinariesDirectory)" /p:ReferencePath="$(NuGetsPath)\$(ToolsPackage)" /p:OutputDirectory="$(Build.BinariesDirectory)"


Источник: https://dynamicsaxinsight.wordpress....peline-failed/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
patrickmouwen: D365 F&O/Commerce interfacing via Azure API Management: My Best Practices Blog bot DAX Blogs 0 10.03.2022 02:47
Sumit Potbhare: Retail Warehousing | Wrap up | Approach to D365 for Commerce with Adv WH Mgmt Blog bot DAX Blogs 0 28.04.2021 13:12
axinthefield: Build automation through Azure Pipeline using Microsoft hosted Agent Blog bot DAX Blogs 0 27.03.2021 00:41
patrickmouwen: How to Unlock Many Hidden D365 Retail Features! Blog bot DAX Blogs 0 13.05.2020 22:13
patrickmouwen: D365 Retail APIs Part III: How to use the Retail APIs from Power Automate (Flow) and Logic App Blog bot DAX Blogs 0 28.01.2020 02:15
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 20:20.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.