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 :
Microsoft Dynamics AX (Archived)

Error sql database reported "SELECT COUNT(*) FROM DBO.COMPANYINFO"

(0) ShareShare
ReportReport
Posted on by 30

Hello, I got event log error - Object Server 01:  The database reported (session 2 (-AOS-)): [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'DBO.COMPANYINFO'.. The SQL statement was: "SELECT COUNT(*) FROM DBO.COMPANYINFO"

It registered after 24 hours service ax 2012 started and repeat in everyday  (at the same time in everyday), I tried check all batch jobs in server and disabled all, it still error.

Please advise me to solved this problem. How to find location of this code? 

*This post is locked for comments

I have the same question (0)
  • Panuwat Jungjitdamrong Profile Picture
    30 on at

    Yes, I tired to compile application , CIL and DB synchronized.

    I got this error after service ax started 24 hours and error repeat every 24 hours

    I see error in application Event viewer console  

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    If you're running R2, the code is invalid, because there is no CompanyInfo table in the database. Don't you have a customization running direct SQL queries to get the number of records of all tables (or something like that)? If so, the bug is that it assumes that all tables in AOT have corresponding tables in database. It's not the case with CompanyInfo table, because it's part of an inheritance hierarchy.

  • Panuwat Jungjitdamrong Profile Picture
    30 on at

    Thank, Martin

    I used R2, and I know CompanyInfo it not table in SQL database and I check in sql server it not direct customized.

    I tried finding some code or activity that to make this error.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans