web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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

  • Martin Dráb Profile Picture
    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?

  • Suggested answer
    nmaenpaa Profile Picture
    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.

  • Jan M. Profile Picture
    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.

  • Jan M. Profile Picture
    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?

  • Suggested answer
    nmaenpaa Profile Picture
    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
    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
    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
    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.

  • 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans