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, ...
Answered

X++ Project Fails to Load and Open in visual studio after migration between two environments !

(3) ShareShare
ReportReport
Posted on by 542
Hello,
I recently copied a Visual Studio solution containing a Finance & Operations customization project originally created in Visual Studio 2019 on another development environment to my local environment which uses Visual Studio 2022 I successfully imported the model (DEVTest10) using ModelUtil.exe as in this Microsoft documentation https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/models-export-import
when I try to open the project in my new local environment I encounter the following error message:

 
An error occurred in 'Miscellaneous Files' while attempting to open 'BranchMasterEntity.xml'
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Modeling.Shell.DocData.LoadDocData(String fileName)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame .< LoadDocumentFramelnternalAsync>d_77.MoveNext(

File path: C:\AOSService\PackagesLocalDirectory\DEVTest10\DEVTest10\AxDataEntityView\BranchMasterEntity.xml
Frame GUID: 7dcb09ff-3066-475f-9286-662c3c505513
Frame mode: VSFM_MdiChild
Error code: 0x80004003


Does anyone know the best practice for migrating a legacy project to a new development environment?

Thanks 


 
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,828 Super User 2026 Season 1 on at
    Hi,
     
    Try to remove the 'BranchMasterEntity.xml' from rnrproj file.
     
    and when you open the projet add them from AOT.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • D365FO Junior-Dev Profile Picture
    542 on at
    @Mohamed Amine Mahmoudi

    Did you mean I should remove this section at the project ?
     
     <Content Include="AxDataEntityView\BranchMasterEntity">
       <SubType>Content</SubType>
       <Name>BranchMasterEntity</Name>
       <Link>Data Entities\BranchMasterEntity</Link>
     </Content>
    How can I add a new one from AOT into the project ?
     
    Thanks 
  • Mohamed Amine Mahmoudi Profile Picture
    26,828 Super User 2026 Season 1 on at
    Hi
     
    yes that's it !
     
    BR
    Mohamed Amine MAHMOUDI

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 264 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 164 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans