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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Rebuild Business Events Catalog fails in D365 Finance & Operations (10.0.45 / PU69)

(0) ShareShare
ReportReport
Posted on by 32

I'm encountering an issue when trying to rebuild the Business Events Catalog in Dynamics 365 Finance & Operations. When we click Rebuild Business Event Catalog, the system will refresh and reflect the latest code changes in the Business Events Catalog form. However, the rebuild fails with the following error:
 

{
   "ExceptionDetails":"System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at Microsoft.Dynamics.Ax.Xpp.DictClass.Getattributedclasses(String attrName) at Dynamics.AX.Application.BusinessEventsCatalogHelper.`addCodeBusinessEvents() in xppSource://Source/ApplicationFoundation\AxClass_BusinessEventsCatalogHelper.xpp:line 120 at Dynamics.AX.Application.BusinessEventsCatalogHelper.addCodeBusinessEvents() at Dynamics.AX.Application.BusinessEventsCatalogHelper.buildBusinessEventsCatalogInternal(Boolean _throwOnException) in xppSource://Source/ApplicationFoundation\AxClass_BusinessEventsCatalogHelper.xpp:line 44",
   "TypeLoaderExceptions": [
       "System.Threading.LockRecursionException: Recursive write lock acquisitions not allowed in this mode. at System.Threading.ReaderWriterLockSlim.TryEnterWriteLockCore(TimeoutTracker timeout) at System.Threading.ReaderWriterLockSlim.TryEnterWriteLock(TimeoutTracker timeout) at Microsoft.Dynamics.Ax.Xpp.TypeLoading.XppTypeLoader2.OnAssemblyResolve(Object sender, ResolveEventArgs args) at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)"
   ]} 


 
Actions taken:
  1. Duplicated the existing custom Business Events (already in use) with a different name
  2. Removed the related customizations completely and tried to rebuild the Business Events Catalog again
    Issue still persists even after removing our custom code
anyone else experienced this ReflectionTypeLoadException when rebuilding the Business Events Catalog ?

While debugging, it fails at the line where the system attempts to retrieve the list of classes with the business events attribute:

Array codeBusinessEvents = DictClass::getAttributedClasses(classStr(BusinessEventsAttribute));

Any guidance or troubleshooting suggestions would be greatly appreciated!

Note: It's a Power platform enabled - Cloud Hosted environment managed via LCS, I've also ran the PowerShell script to refresh the integration of Dataverse via PowerShell in remote desktop in the cloud-hosted environemnt.


Thanks!

I have the same question (0)

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 320 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans