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

I have the same question (0)
  • Verified answer
    nunomaia Profile Picture
    25 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

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 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans