Notifications
Announcements
No record found.
Hi,
I am struggling to debug business events. Should I debug batch job or normal process (w3wp.exe) for this case?
What we try to do is we have a custom business event which is triggered when we save record in a master table.
Thanks,
Hi Yuji,
Do you want to debug if event is added to the queue? Or you want to debug how events are sent outside?
Hi Sergei,
I want to debug how events are sent outside.
It depends on how you run business event processing. If you are using batch job processing you need to debug batch, if dedicated capacity I think it's a web server.
Do you have certain issues with event processing? Maybe you can take a look at troubleshooting article first to save your time docs.microsoft.com/.../troubleshooting
I am not sure if this is the problem. The user change the value on the form - this is a normal user session. Then the system trigger the business event (it is under the service account context??), and that is why I could not debug the process?
Could you explain what problem you are trying to troubleshoot? If the business event creation is triggered, then your code works ok. If business events are not working on the system, I don't think that you resolve it by debugging. Since if the sending is not triggered, there's nothing to debug (no process running!).
Please we suggest create ax trace file to have a check how it goes, whether it goes to your customized code and put the breakpoints where you want to debug.
Here is the docs how the system sending a business event.
docs.microsoft.com/.../business-events-dev-doc
After triggered, the business event are processing through batch framework.
docs.microsoft.com/.../home-page
seems your debug is two fold
one inside D365FO and other in the receiving system
suggest if D365FO debug is all good
By the way, do you have 10.0.8/PU32 in your system? There is a bug in PU32 that breaks Business events.
It's hotfixed in 4551192 which should be available last weekend according to Microsoft (I haven't tried it). Please check if there are hotfixes available in LCS.
I resolved this by uncheck "Load Symbols only for items in the solution" and debug the batch process (attache the batch.exe process in VS before debugging).
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 663 Most Valuable Professional
André Arnaud de Cal... 540 Super User 2025 Season 2
Sohaib Cheema 348 User Group Leader