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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Menu item with name ma...
Finance forum

Menu item with name mainaccountdetails could not be open

(0) ShareShare
ReportReport
Posted on by

I'm adding custom filter control on the Mainaccounts form by creating extension, build was successful but when I ran the solution it's giving me error Menu item with name mainaccountdetails could not be open and Object reference is not set to on instance of reference. I have not done any changes in other control I just added new group control, wilth new string control and combo box control under navigationlist cotrol 

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,446 Super User 2026 Season 1 on at

    Hi Yogesh,

    Can you tell in detail what data was linked with the new objects? Is it related to new fields? Did you or a colleague also created new data entities? Is this a development box or a production environment? Have you performed a full build and database synchronization?

  • yogesh087017 Profile Picture
    on at

    Thank you for reply. Answer for your reply

    1. Name and Type field of the MainAccounts

    2. I'm not sure since when I click on MainAccount form (General ledger module > Accounts > Main Accounts) its giving me this error

    3. No my colleague not created any new data entries

    4. It's development environment

    5. I have perform database synchronization, I'll try it by performing full build

  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi Yogesh,

    Here's a similar thread :https://community.dynamics.com/ax/f/33/t/274067

    You can also take a look at this:

    Trying to refresh AOT

    Restart IIS

    https://robscode.onl/d365-the-menu-item-with-name-could-not-be-opened/

    I hope it will help you.

  • Sukrut Parab Profile Picture
    71,741 Moderator on at

    Are you sure it is coming after your customization ? was your form working  properly before your customizations? There might be something else which is causing this.

  • Anton Venter Profile Picture
    20,940 Super User 2026 Season 1 on at

    Hi Yogesh,

    Try to debug the code to figure out what is causing the error.

  • Suggested answer
    Community Member Profile Picture
    on at

    also check for all references and sometime build with reference models might help

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    1. Open any D365FO solution in Visual Studio

    2. Debug -> Attach to process (w3wp.exe or iisexpress.exe)

    3. Open the form in browser

    You will see what line of code throws the exception.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans