Hi,
I am working custom extension on Business central for Cloud. In visual studio after all the objects are created and an app created with Cntl Shift B. it working fine but when I press Control F5, it is giving error
'Failure while emitting method. Object:'Page "XXX-Sales Invoices"' Method:'OnAction()''
Hi
The error message displayed suggests that there may be a problem with the code of the OnAction() method of the 'XXX-Sales Invoices' page object in the extension.
I will list some suggestions
Check the code of the OnAction() method in Visual Studio for syntax errors or other problems. You can do this by opening the page object and navigating to the code of the OnAction() method.
Try rebuilding the extension by pressing Ctrl + Shift + B again to check for compilation errors or warnings in the code.
If the problem persists, try setting a breakpoint in the OnAction() method to see if you can locate where the error occurs.
Make sure that all the dependencies of the extension are set up and configured correctly, including the necessary libraries or packages.
If problems persist, you can try debugging the extension with the Visual Studio debugger to see if you can get more information on the cause of the error.
I hope this helps! Let me know if you have any further questions.
Daniele
Hello - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
I will open this up to the community in case they have something to add.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156