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

Notifications

Announcements

No record found.

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 128
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)
  • Layan Jwei Profile Picture
    8,118 Super User 2025 Season 2 on at
    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
  • Viswanath M Profile Picture
    128 on at
     
     
    I have tried all the steps you're mentioning.  
  • Layan Jwei Profile Picture
    8,118 Super User 2025 Season 2 on at
    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
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    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
  • Verified answer
    Viswanath M Profile Picture
    128 on at
    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans