web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Debug business event

(0) ShareShare
ReportReport
Posted on by 4,131

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,

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Yuji,

    Do you want to debug if event is added to the queue? Or you want to debug how events are sent outside?

  • Yuji Profile Picture
    4,131 on at

    Hi Sergei,

    I want to debug how events are sent outside.

    Thanks,

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Yuji,

    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

  • Yuji Profile Picture
    4,131 on at

    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?

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    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!).

  • Suggested answer
    Fangyuan Hou Profile Picture
    on at

    Hi Yuji,

    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

  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at

    seems your debug is two fold

    one inside D365FO and other in the receiving system

    suggest if D365FO debug is all good

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Yuji Profile Picture
    4,131 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans