web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

(0) ShareShare
ReportReport
Posted on by 1,421

Hi all,

I've a Dynamics AX 2012 installation in my enviroment. When I open several forms (like Target Entities in Data Import Export Framework, or CustTrans, or VendTrans) I receive this error: Field "fieldname" in Table "tablename"  has not been explicitly selected in AX 2012.

Can you tell me what can be the cause of this error?

*This post is locked for comments

I have the same question (0)
  • Petr Janík Profile Picture
    975 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    Hi Guiseppe,

    I have seen this error a few times. It can be caused by an illegal data in a table , e.g. it contains NULL value, which is not allowed in AX (except table inheritance). Sometimes it helps me to restart a client or AOS. Of course I assumed that you did full compile without errors and synchronized the database.

  • Giuseppe Caradonna Profile Picture
    1,421 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    Hi Petr,

    Unfortunately I have already compiled and synchronized the application without errors and restarted the AOS...Any other ideas?

  • Martin Dráb Profile Picture
    236,316 Most Valuable Professional on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    It means that the field was read but its value wasn't retrieved from database. See Tutorial: AX 2012 - Invalid field access or Accessing unretrieved fields for more detailed explanation.

  • Petr Janík Profile Picture
    975 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    You are right Martin, but this is true if you select existing record from a table. In this case is evident that the user open the form DMFEntity for the first time. So, the table DMFEntity is empty and the init method of the DMFEntity form wants to populate this table with default mapping and calls the validateWrite method before insert.

  • Giuseppe Caradonna Profile Picture
    1,421 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    Petr, is it a bug?

  • J. Pospisil Profile Picture
    90 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    Hi,

    I have the some problem with AX 2012R2:

    This is the error msg when I run Sales Tax Report:

    Stack trace: Field 'VATNum' in table 'CompanyInfo' has not been explicitly selected.

    Stack trace

    (S)\Classes\TaxReportingDP\insertTaxReportingTmp - line 82

    (S)\Classes\TaxReportingDP\processReport - line 101

    (S)\Classes\SrsReportProviderQueryBuilder\initialize - line 57

    (S)\Jobs\

    Stack trace error appears also - for example - when I export data from the database.

    Can somebody help me, please?

    thx!

  • Gustavo Bagno Profile Picture
    on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    I believe the original "select" is using a Field List, and the field DMFEntity is probably not in the field list, or for some other reason (aggregate functions maybe) the field may be not retrieved.

    There is no problem on calling validateWrite before Insert. It's actually a good practive, but if the validateWrite is overridden in the Form Datasource, then there might be a need for a technical intervention.

    Check that.

  • Giuseppe Caradonna Profile Picture
    1,421 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    I get the same error in other places...CustTrans table --> postLoad() method, VendTrans table --> postLoad() method...What can I do to fix it?

  • Verified answer
    Giuseppe Caradonna Profile Picture
    1,421 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    Hi all,

    I'm receiving this error in some other methods in AX. I am solving by changing the select statements adding the required field.

  • Kim Lee Profile Picture
    5 on at
    RE: Field "fieldname" in Table "tablename" has not been explicitly selected in AX 2012

    What do you mean by "changing the select statements adding the required field"?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans