Announcements
No record found.
Hi guys,
While a debugging its stopped in run method.
below error:
Can you tell me what it says that error ?
Thanks
Additional information : while a importing excel sheet.
issue : The menu item with name mpimportdata could not be opened.
Look at details of the $exception object (in the Locals windows when debugging).
By the way, the exception handling code makes little sense to me. It has no positive effect; it just makes your debugging harder by swallowing important information.
It is a very common error and can happen for many reasons. You probably searched the internet and tested the solutions you saw.
I looked for 5-10 minutes to see if there was a general solution. There are different solutions, from the one that says "refresh" the menuitem in AOT to the one that says I uninstalled and reinstalled the Model.
You need to share the inner exceptions with us so that we can give more specific answers. Where you catch the error, instead of throwing an error again, you need to reach the details with a more meaningful code or as Martin suggested share the details of the exception object with us .
Do something like below, you'll get the details of the exception
https://docs.microsoft.com/en-us/dynamicsax-2012/developer/how-to-catch-exceptions-thrown-from-clr-objects
Leo, there is a simpler way in D365FO:
System.Exception ex; try { ... } catch (ex) { info(ex.ToString()); throw; // Throwing the same exception object (with the same type, stack trace etc.) }
But you normally don't need code like this, because the message is put into infolog automatically.
Hi,
Execute business operations in CIL in your user options and see if that makes a difference (restart your client before debugging).
and then use Visual Studio debugger to see what happens there.
Thanks to all its resolved!
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 616
André Arnaud de Cal... 460 Super User 2026 Season 1
Syed Haris Shah 331 Super User 2026 Season 1