Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Can't able to save anything in Visual Studio

(1) ShareShare
ReportReport
Posted on by 60
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
  • Verified answer
    Viswanath M Profile Picture
    Viswanath M 60 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
    Kevin Xia 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
    Layan Jwei 7,266 Super User 2024 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
    Viswanath M 60 on at
    Can't able to save anything in Visual Studio
     
     
    I have tried all the steps you're mentioning.  
  • Layan Jwei Profile Picture
    Layan Jwei 7,266 Super User 2024 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans