Skip to main content

Notifications

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
  • Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    Cannot generate CoC subscription inialization code for 'GeneralJournalEntry'.'update'
    Great! Please don't forget to verify the answer verify the answer.
  • Akbar Pasha Profile Picture
    Akbar Pasha 1,356 on at
    Cannot generate CoC subscription inialization code for 'GeneralJournalEntry'.'update'
    Thank you very much Martin and Mohit, we have performed Build of the model with referenced models and able to compile the customized objects.
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    Cannot generate CoC subscription inialization code for 'GeneralJournalEntry'.'update' - D365FO
    Hi Akbar, Have you tried Building your custom model, if still error then try buildng custom model with its referenced packages.
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    Cannot generate CoC subscription inialization code for 'GeneralJournalEntry'.'update' - D365FO
    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans