Notifications
Announcements
No record found.
Hi all,
In VS2019 pipeline we received below error :-
Class/HcmPersonEducation_Extension(4,5) - Wrapping method 'modifiedField' marked with attribute Hookable set to 'false' is not supported.
How to resolve this error ?
Hi waytod365,
You haven't mentioned what exactly you have added or changed in this extension. Can you share the details?
Anyway, your answer might be found in an older question on this forum: Hookable attribute in D365FO - Dynamics 365 Finance Forum Community Forum
In case you still need our help, please provide details of your extension.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc#the-hookable-attribute
According to MS docs, methods decorated with [Hookable(false)] cannot be wrapped using COC.
Thanks for your replay andre,
There is no attribute Hookable in my modified field and i just i wrote a CoC only. and as i mentioned build pipeline received
Could you please share your code?
Thnaks for your replay Gunjan,
[ExtensionOf(tableStr(HcmPersonEducation))] final class HcmPersonEducation_Extension { public void modifiedField(FieldId _fieldId) { next modifiedField(_fieldId); if (_fieldId == fieldNum(HcmPersonEducation, EducationDiscipline)) { this.Description = HcmEducationDiscipline::find(this.EducationDiscipline).Description; } } }
As i mentioned above code, the error messages received only build pipeline in VS2019 cloud server.
Note : Is it not on runtime and when I'm perform the build the thing is okay.
Error only faced build pipeline.
I don't see a method modifiedField in HcmPersonEducation table. Did you try a full build of your Dev model and see if you get the same error? Please let us know which version your Dev and build environments are as well.
The thing is full build succeeds. as shown in the picture azure cloud pipeline.
Version :- PU47
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 592 Most Valuable Professional
André Arnaud de Cal... 478 Super User 2025 Season 2
BillurSamdancioglu 305 Most Valuable Professional