Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Error: Field has not been explicitly selected

(0) ShareShare
ReportReport
Posted on by 1,550

Hi,

When trying to update an employee record (Human resources -- workers -- employees), like updating worker description field, I get this error:

Field 'Gender' in table 'DirPerson' has not been explicitly selected.

This is the code I have

[ExtensionOf(tableStr(DirPerson))]
final class DirPerson_Extension
{
    public void update()
    {
        DirPerson dirPersonOld = this.orig();

        next update();

        if(dirPersonOld.Gender != this.Gender)
        {

        }
    }
}

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,965 Super User 2025 Season 1 on at
    RE: Error: Field has not been explicitly selected

    Hi Junior AX,

    Can you tell what exact business requirement needs to be covered? Can your requirement be covered with help of extending the modifiedField method? Do you need this field from the DirPerson table or do you need to validate a change on the gender field from the HcmPersonPrivateDetails table?

    Can you also tell if this error comes from changing details on the standard form or do you have e.g. custom coding for updating worker records?

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,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans