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

Unable to resolve build error in D365 F&O UDE - 10.0.48

(0) ShareShare
ReportReport
Posted on by 10

 Please help me resolve this issue? The file is not read-only, so I’m not sure why I’m getting this error in the standard model. Kindly suggest what might be causing it?

 

Thanks

Rahul Soni

image (16).png
Categories:
  • Martin Dráb Profile Picture
    241,515 Most Valuable Professional on at

    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.

     

    Please give us more information about the problem, not just an error message without any context.

     

    What did you do before you began getting this error?

     

    It sounds like you inadvertently modified a file in a standard module, which you shouldn't (and aren't allow to) save. 

  • Deepak Agarwal Profile Picture
    9,370 Super User 2026 Season 2 on at

    Hey @RS-24030455-0 have you updated your UDE recently?

  • RS-24030455-0 Profile Picture
    10 on at

    @Martin Dráb &@Deepak Agarwal I have created a UDE environment on version 10.0.48 and moved the custom model from CHE to UDE. I then performed a full build in UDE, but I’m getting the errors that I previously shared during the build process. I have already download finops asset without any errors.

    Both the CHE and UDE environments are running on the same version (10.0.48).

  • Suggested answer
    Assisted by AI
    CU11090943-0 Profile Picture
    4 on at

    Hello, I know that error message is super frustrating. It basically tells you the file is "read-only," but since you've already checked and confirmed it isn't, you're left scratching your head. In Dynamics 365, that specific error is a generic catch-all. It means: "I tried to save my changes to this file, but something got in the way, so I'm just going to blame 'read-only' because I don't know the real reason."

    Since your file isn't actually read-only, here is what is actually happening, ranked from most likely to least likely, and how to fix it.

    1. The "Stale Cache" Problem (Most Likely)
    Visual Studio and D365 keep a hidden "cache" of all the metadata (the descriptions of all your forms, tables, and classes) so the IDE runs faster. Sometimes, this cache gets corrupted or out of sync. When the compiler tries to write to it, it fails and throws that "read-only" error.

    Close Visual Studio completely.
    Open File Explorer and go to your PackagesLocalDirectory (usually K:\AosService\PackagesLocalDirectory or J:\...).
    Find the folder for the model that owns that file (e.g., ApplicationSuite or your custom model).
    Go into the bin folder inside that model.
    Delete the .md files inside that bin folder. (Don't worry, these are just compiled metadata cache files; they will rebuild themselves).
    Also, clear your local VS cache: Go to %localappdata%\Microsoft\VisualStudio\ and delete the XppCache folder.
    Restart Visual Studio and do a Full Build on that specific model.
    2. The "Invisible Lock" Problem
    Even if the file property says "not read-only," a background process might have it "open" in the background. This prevents Visual Studio from writing to it.

    Is GitHub Copilot running? I see it in your screenshot. Sometimes AI extensions scan files in the background and lock them. Try disabling it temporarily.
    Is OneDrive or a backup software running? If your project folder is synced to the cloud, the sync engine might lock the file for a split second, causing the build to fail.

  • Martin Dráb Profile Picture
    241,515 Most Valuable Professional on at

    What did you build? Just the single custom model?

  • RS-24030455-0 Profile Picture
    10 on at

    @Martin Dráb Single custom model

  • Martin Dráb Profile Picture
    241,515 Most Valuable Professional on at

    It's a weird error…

     

    Have you tried restarting Visual Studio?

     

    Does your model have a reference to Application Foundation Form Adaptors?

  • RS-24030455-0 Profile Picture
    10 on at

    @Martin Dráb Yes i tried restarting VS, and i have a reference to Application Foundation Form Adaptors.

    @CU11090943-0 Github copilot and onedrive are not running.

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

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans