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, ...
Answered

Cannot generate chain of command subscription inialization code - Compile error on deleted extension code.

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I am running into an issue compiling/building my current project.

I created a CoC extension class, InventNonConformanceOrigin_MFS_Extension, and added methods for insert() and delete(). I've since deleted the class. When rebuilding the project/solution I receive the following error:

"Severity Code Description Project File Line Suppression State
Error Cannot generate chain of command subscription inialization code for 'InventNonConformanceOrigin'.'delete'. Exception: 'Value cannot be null.
Parameter name: No extension class type found for CoC subscription InventNonConformanceOrigin_MFS_Extension.delete' at: at Microsoft.Dynamics.AX.Metadata.XppCompiler.AssertHelper.Panic[T](String failDescription, Object[] args)
at Microsoft.Dynamics.AX.Framework.Xlnt.ILGenerator.ILGeneratorPass3Worker.TrackAndThrowExceptionIfTypeNull(Type type, String extensionClassName, String extensionTargetElementName, String extensionTargetElementTypeName, String methodName, String exceptionMessage)
at Microsoft.Dynamics.AX.Framework.Xlnt.ILGenerator.ILGeneratorPass3Worker.EmitChainOfCommandSubscriptionsCode(Parameters parameters, IXppcMetadataProvider metadataProvider, NetModuleNameByTypeName netModules, FileRollbackHandler fileRollbackHandler, IDiagnosticSink diagnosticsHandler). InventNonConformanceOrigin 0"

The extension class is no longer in the AOT so it was deleted. Based on the following post here, I tried rebuilding the model for InventNonConformanceOrigin which is Application Suite, but it did not resolve the issue.

   

I have not been able to find any other references to this error online. Any help is greatly appreciated.

  • Verified answer
    nunomaia Profile Picture
    27 Moderator on at

    Did you tried to rebuild the model where InventNonConformanceOrigin_MFS_Extension was created ? not Application Suite

  • Cody M Profile Picture
    55 on at

    Hi Nuno,

    That worked! I thought I had tried rebuilding that model earlier, but I guess not. Thank you for the help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans