Confused and irritated with the error: "Exception: Cannot create a record in Alerts - event inbox data (EventInboxData)"? There is an easy hack.

I guess many of us have faced the issue of the below workflow error, while processing D365 FinOps Workflows:
"Stopped (error): X++ Exception: Cannot create a record in Alerts - event inbox data (EventInboxData). Inbox ID: 5637144724"

For this you need to clear the dirty data, as outlined in the process below:

select * from EVENTINBOXDATA where not exists (select top 1 * from EVENTINBOX where EVENTINBOX.INBOXID = EVENTINBOXDATA.INBOXID)
Suggestion:

  1. backup EVENTINBOXDATA or backup database
  2. run below script to clean up the junk data:

delete from EVENTINBOXDATA where not exists (select top 1 * from EVENTINBOX where EVENTINBOX.INBOXID = EVENTINBOXDATA.INBOXID)

 


Comments

Popular posts from this blog

Step by step: prepare Azure Synapse link for D365F&O, along with fixing some known issues

Modifying a DMF data entity query dynamically, from another query, for filteration in D365FO

Talk to D365 F&O using Custom Copilot Studio entities in interactive topics and agents