Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

DevOps build problem

(0) ShareShare
ReportReport
Posted on by 3,221

Hi

After updating a module on a local VM, build and sync works fine.

After checking in to DevOps the build step failed. "The field 'xy' on the extension 'xz' already exists. This extension cannot be applied to the base element."

Some extension where renamed, but the deleted elements where also checked in. 

What can be the reason on build server? Do we have to clean up somewhere?

Thanks, Jan

  • Community Member Profile Picture
    on at
    RE: DevOps build problem

    Reliable and scalable infrastructure may require profound DevOps expertise especially when your business operates in highly uncertain environments. An optimal workaround is to choose a DevOps packaged service offering meeting your goal (CI/CD, infrastructure audit, server infrastructure setup etc.). You can find such options following this link.

  • Jan M. Profile Picture
    3,221 on at
    RE: DevOps build problem

    Problem fixed: Codebase was ok. In Packages directory we deleted all non MS models instead of deleting all. Deleting all will restore from K and bring back the wrong code.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: DevOps build problem

    Well, the only two explanations for those files are:
    1) Backup of the PackagesLocalDirectory (can happen if you had them in that directory before first ADO build on the server)

    2) Your current ADO codebase

    Please check those and I'm sure you can solve it.

  • Jan M. Profile Picture
    3,221 on at
    RE: DevOps build problem

    I talk about the build server. After eliminating there double extensions, it runs well.

    Source looks ok, could not find any not propagated objects.

    Thank you.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: DevOps build problem

    Which system are you now talking about? The place which you need to check is the actual code directory in ADO. Seems that your problem might be your current source code (caused by wrong/incomplete check-in from dev system), not your build server.

    Remember, the build server starts from scratch (="vanilla" backup) every time. So if the backup was not bad, then those duplicates indicate that you have wrong stuff in your source control and the build actually works correctly (=fails).

  • Jan M. Profile Picture
    3,221 on at
    RE: DevOps build problem

    Clean up of Packages directory didn't help. Found on K:\AOSService..., in Module Extensions (Forms, Tables) duplicates. Somehow they where not deleted, but correctly marked for deletion on DevOps. What can be the reason? Should they be deleted manually one by one or hole module directory?

  • Jan M. Profile Picture
    3,221 on at
    RE: DevOps build problem

    Hi all

    No, we are using a MS hosted build server. No development was done there. Just compared with the local action on a DEV Box. Build also worked before well on build server. Will try to cleanup Packages directory.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: DevOps build problem

    Here's how the build server works.

    1) When you do a build (from ADO pipeline) for the very first time, the server takes a backup of AOSService/PackagesLocalDirectory

    2) Before each build, this backup is restored, and then the build takes latest code from ADO on top of that, and builds it

    If you have ever done some own development on this server before building via ADO, those objects would be in the backup which is restored before each build. And that would explain your problem. You should use the build servers only for ADO builds, not for development, not for manual Visual Studio builds.

    You should be able to remove the bad backup in J:\DynamicsBackup\Packages . Or, deploy a new build server. Or, start using a hosted build agent.

  • Martin Dráb Profile Picture
    231,852 Most Valuable Professional on at
    RE: DevOps build problem

    Do I understand correctly that you're using a VM as a build server and not a Microsoft-hosted agent? Don't you want to make a switch now?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,027 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans