Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Build error - Failed t...
Finance forum
Suggested answer

Build error - Failed to restore metadata from J:\DynamicsBackup\Package

Posted on by 58
Hi experts,
 
I am getting following build error :
I found one blog where suggested - Remove the custom code from J:\DynamicsBackup\Package.
But not sure from which folder do I need to remove customization.
 
Can you please help on this and suggest solution.
 
 
 
  • Anthony Blake Profile Picture
    Anthony Blake 2,071 Super User 2024 Season 2 on at
    Build error - Failed to restore metadata from J:\DynamicsBackup\Package
    Hi,
     
    Yes - delete all D365FO from J:\DynamicsBackup. What we are looking to achieve is for the first run of the pipeline after the backup deletion to recreate you backups as Vanilla D365  from your K:\AOSService\PackagesLocalDirectory.
     
    It worth noting, you should also take these steps after applying service updates to build environments, to ensure you are building and synchronising against the correct version of the product.
     
    Anthony
  • VK-05090405-0 Profile Picture
    VK-05090405-0 58 on at
    Build error - Failed to restore metadata from J:\DynamicsBackup\Package
    Thank you Anthony for your prompt response.
     
    I have checked build server, I can see custom model under "K:\AOSService\PackagesLocalDirectory".
     
    I have validated other lower environment build server there also I can see custom model under "K:\AOSService\PackagesLocalDirectory" but there build pass without any issue.
     
    As per your suggestion I will delete custom model from build server "K:\AOSService\PackagesLocalDirectory" location and will delete backup file from "J:\DynamicsBackup\Package".
     
    I can see custom model under "J:\DynamicsBackup\Package", do I need take care anything there as well.
     
    Thanks.
  • Suggested answer
    Anthony Blake Profile Picture
    Anthony Blake 2,071 Super User 2024 Season 2 on at
    Build error - Failed to restore metadata from J:\DynamicsBackup\Package
    Hi,  
     
    Based on the error, I'm making an assumption that you are using a cloud hosted build environment.
     
    The build process creates a backup of Vanilla D365 on the build environment to ensure that each build is running on a "clean" version of D365, plus your source controlled model(s).
     
    This backup is only created if it doesn't already exist.
     
    Delete the backups from the J drive.
     
    Ensure that the K:\AOSService\PackagesLocalDirectory doesnt contain any custom models or ISVs. If it does, delete them.
     
    The next build will take longer than usual, because the backup of Vanilla D365 will kick in and create a new backup on J because it doesn't already exist. This is expected.
     
    See how you get on.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans