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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Can't able to save anything in Visual Studio

(1) ShareShare
ReportReport
Posted on by 116
I have my custom tables and form in d365fo dev environment. while saving any new changes it stops me from saving changes and throws object reference not set to an instance error
I have the same question (0)
  • Verified answer
    Viswanath M Profile Picture
    116 on at
    Can't able to save anything in Visual Studio
    I solve this issue by deleting and re-installing the Finance and operation(D365) extensions and then I remove the cache memory of the visual studio.
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Can't able to save anything in Visual Studio
    Hi,
    Here are a few steps you can try:
    • Make sure all the required projects and references are properly loaded in Visual Studio.
    • Double-check that the necessary dependencies, such as DLLs or packages, are correctly referenced and available.
    • Clean and rebuild your solution to ensure that all the code and dependencies are compiled properly.
    • Check if there are any missing or incomplete configurations in your project or solution, such as connection strings or environment settings.
    • Verify that you have the necessary permissions and access rights to modify and save objects in the development environment.
    Best regards,
    Kevin
  • Layan Jwei Profile Picture
    7,997 Super User 2025 Season 2 on at
    Can't able to save anything in Visual Studio
    Hi Viswanth,

    The screenshot you shared is about a class and not tables/forms. So is this class is created by you?
    how about you delete this class or at least delete the changes you made on it if it was checked in before, then build your project, close VS and create it again or add your new changes again?
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Viswanath M Profile Picture
    116 on at
    Can't able to save anything in Visual Studio
     
     
    I have tried all the steps you're mentioning.  
  • Layan Jwei Profile Picture
    7,997 Super User 2025 Season 2 on at
    Can't able to save anything in Visual Studio
    Hi Viswanath,
     
    Does the error appear at a certain line of code? If so review the code and ensure that u fix anything u find wrong
     
    If the error is appearing when saving changes to a form, review the form design and that you didn't miss anything
     
    Maybe take a screenshot and show us?
     
    Also make sure you are opening VS as an admin. Also maybe try to close VS and open it again.

    Another thing you can try is building the project or your module.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 708 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 589 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans