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

Extension error

(0) ShareShare
ReportReport
Posted on by 351

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 ?

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    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. 

  • atajjo Profile Picture
    509 on at

    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. 

  • waytod365 Profile Picture
    351 on at

    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  

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi waytod365,

    Could you please share your code?

  • waytod365 Profile Picture
    351 on at

    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. 

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi waytod365,

    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.

  • waytod365 Profile Picture
    351 on at

    Vs2019.PNG

    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.

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

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans