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

Cannot generate CoC subscription inialization code for 'GeneralJournalEntry'.'update'

(0) ShareShare
ReportReport
Posted on by
Hi All,
 
We have created extension class for /*****_GeneralJournalEntry/ table , and deleted this class due to some reason.
 
but when we are building/compiling the other extended classes getting the below error:
 
/*****__GeneralJournalEntry/ is not there in the AOT as we have already deleted this class.
 
Please advice how we can resolve this issue.
 
Severity    Code    Description    Project    File    Line    Suppression State
Error        Cannot generate chain of command subscription inialization code for 'GeneralJournalEntry'.'update'.  Exception: 'Value cannot be null.
Parameter name: No extension class type found for CoC subscription ******_GeneralJournalEntry_Extension.update' 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).        GeneralJournalEntry    0    
 
Regards,
Akbar
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    Deleting it from AOT means that you don't have source code for it anymore, but you still have binaries generated from your old code. You need to build the model to update binaries.
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi Akbar, Have you tried Building your custom model, if still error then try buildng custom model with its referenced packages.
  • Akbar Pasha Profile Picture
    1,505 on at
    Thank you very much Martin and Mohit, we have performed Build of the model with referenced models and able to compile the customized objects.
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    Great! Please don't forget to verify the answer verify the answer.

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans