web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

(1) ShareShare
ReportReport
Posted on by 66
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.
 
 
 
I have the same question (0)
  • Suggested answer
    Anthony Blake Profile Picture
    3,154 Super User 2026 Season 1 on at
    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.
  • VK-05090405-0 Profile Picture
    66 on at
    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.
  • Anthony Blake Profile Picture
    3,154 Super User 2026 Season 1 on at
    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 566 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 504 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 429

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans