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

Announcements

No record found.

News and Announcements icon
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)

(3) ShareShare
ReportReport
Posted on by 40

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)
  • André Arnaud de Calavon Profile Picture
    303,728 Super User 2026 Season 1 on at
    Hi Mahesh,

    I have seen an error before due to a customization, but can't remember the exact error message. As you mentioned you did take out the customizations, can you check if the build was really successful? In case of a new UDE environment, ensure that you deploy the model to the online environment.
    You can also try a database synchronization, however when it fails at the moment when it tries to read classes with an attribute I doubt if this will work.
     
    Do you have other environments with the same issue?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans