Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 692 Most Valuable Professional
André Arnaud de Cal... 558 Super User 2025 Season 2
Sohaib Cheema 364 User Group Leader