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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

attachments in Dev environment

(2) ShareShare
ReportReport
Posted on by 35
Hi everyone,
 
I restored the database in the dev environment using a BACPAC file, but I’m unable to view or open any previously uploaded attachments in the dev. can someone please advise whether attachments are included in a BACPAC export, and if not, what is the recommended way to make them available in the dev environment?
 
 
Thanks in advance 
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,740 Most Valuable Professional on at
    Attachments are not normally stored in database, therefore a DB backup doesn't include them. They're stored in Azure blob storage by default, or they can go to SharePoint.
     
    For attachments of some tables, there are data entities that you can use for export and import. I've also noticed for downloading attachments from the source environment when needed.
  • CU04051112-0 Profile Picture
    35 on at
     
    Thank you for your answer, unfortunately the method mentioned in the article won't work as I need all the attachments to be added in the dev, is there a way I can get all the attachment directly from Azure blob storage?
  • Martin Dráb Profile Picture
    238,740 Most Valuable Professional on at
    Why it wouldn't work in DEV?
     
    No, you can't get all the attachment directly from Azure blob storage.
  • André Arnaud de Calavon Profile Picture
    303,093 Super User 2026 Season 1 on at
    As Martin mentioned, there is no option out of the box to export all attachments. You are mentioning that this is a DEV environment. Are you sure you need all attachments or are you interested in specific ones to support a development cycle?
  • CU04051112-0 Profile Picture
    35 on at
     
    The idea to move all the attachment to dev is keep them as a reference, since we are doing some changes and these attachment won't be available on the production.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,093 Super User 2026 Season 1 on at
    Hi,
     
    I don't understand what exactly you mean by "these attachment won't be available on the production". They are currently on the production environment, right?

    Anyway, in case you need all attachments, you will need to build custom export option(s). This could be data entities per attachment table, or another custom script that can be used for export and import purposes. I still doubt if this is worth the time and money.
  • Suggested answer
    Navneeth Nagrajan Profile Picture
    2,495 Super User 2026 Season 1 on at
    Hi @CU04051112-0,
     
    bacpac file doesn't have reference to attachments. In most of the implementation projects, you can have a test instance of an azure blob storage/sharepoint site collection pointing to the development or a tier-2 UAT D365 environment. Secondly, would recommend having a copy of the attachments hosted on a test SharePoint Site/Azure blob storage.
     
    To add to what Martin and Andre rightly mentioned in the initial response, the attachments are hosted in an Azure blob storage and the metadata about attachments are hosted in tables across DocuRef and DocuValue. The actual file content for attachments stored in the Azure blob storage is not included in .bacpac files. On restoration of a copy of the database in the lower environments, the system tries to retrieve the file from the source environment's blob storage, hence having a test instance and having scripts written to have those configuration settings setup in a test instance would be recommended. This way we focus more on testing the functionality rather than trying to fix up the attachment links. 
     
    Hope this helps. Happy to answer questions, if any.
  • CU04051112-0 Profile Picture
    35 on at
     
    The point of having all the attachments in the dev environment is because we will treat this environment as backup that include everything we had on pervious customization that won't be accessible in the production anymore.
  • André Arnaud de Calavon Profile Picture
    303,093 Super User 2026 Season 1 on at
    Thanks for the clarification. As mentioned above, it is not supported out of the box and you will need to built customizations or a script.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans