Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Populate ACCTXREF Table

(0) ShareShare
ReportReport
Posted on by 4

We've added several new companies recently.  We are getting an error when attempting to post a JE in one of the new companies stating that the GL account does not exist and the amount is posted to suspense.  There is an article that indicates that this is because the gl account is not in the ACCTXREF table for the company.  It describes how a minor edit of the GL account will populate the ACCTXREF, however I am unable to get this to work.  I can only edit the account number in the master company.  This is the only company that appears in ACCTXREF.  I do not wish to script insert it.  I've walked through the other resolutions available and none solve my problem.  Should I see all companies (master and sub) in the ACCTXREF?

The account number is available for selection when entering the JE.  We have account/subaccount validation turned on.

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Populate ACCTXREF Table

    To further explain,  the acctsub table in the system database is only populated when GL setup is set to validate acct/sub combinations.

    Run the script attached to KB 942095.

    Then make a small change to a description in Chart of Acct Maintenance.

    Sometimes we end up having to do this.

  • Mark E Profile Picture
    6,451 on at
    RE: Populate ACCTXREF Table

    Have you built the Acct/Sub combinations for the company in question?  Check the AcctSub table in the System DB; you should see all the combinations for every company there.  With the AcctXRef and SubXRef tables only store the "master" company data, the acct/sub combos need to be built for each company.

  • Mark Schurmann Profile Picture
    4 on at
    RE: Populate ACCTXREF Table

    The company table looks correct.

  • Mark E Profile Picture
    6,451 on at
    RE: Populate ACCTXREF Table

    You should only see the "Master" CompanyID in the AcctXRef and SubXRef tables in a multicompany, single application database scenario.

    Query the Company table in the System DB, and make sure all the Companies have the "Master" CpnyID in the CpnyCOA and CpnySub fields (and not the CpnyID of the "sub" companies).

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans