Skip to main content

Notifications

Announcements

No record found.

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 

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Menu item with name mainaccountdetails could not be open

    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.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Menu item with name mainaccountdetails could not be open

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

  • Anton Venter Profile Picture
    Anton Venter 18,788 Super User 2024 Season 2 on at
    RE: Menu item with name mainaccountdetails could not be open

    Hi Yogesh,

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

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,656 Moderator on at
    RE: Menu item with name mainaccountdetails could not be open

    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.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Menu item with name mainaccountdetails could not be open

    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.

  • yogesh087017 Profile Picture
    yogesh087017 on at
    RE: Menu item with name mainaccountdetails could not be open

    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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,391 Super User 2024 Season 2 on at
    RE: Menu item with name mainaccountdetails could not be open

    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?

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans