We expierence the similar/same problem on one of our AX2012 Demo Systems. In our case it happens randomly after a while the system is running.
In our case we could detect this issue several time as following:
In Global Address book List page when you do a double click you open the details for an entry the following error is thrown:
Cannot execute the required database operation.
The SQL database has issued an error.
SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]Cannot find the object "t100111_B174BE2BEF07450D908577EF7BEDF080" because it does not exist or you do not have permissions.
SQL statement: TRUNCATE TABLE tempdb."DBO".t100111_B174BE2BEF07450D908577EF7BEDF080
So far what we could see is that a restart of the AOS solves the issue, but we couldn't establish why this error is thrown. Some users also reported that after closing several times the client also helps.
What I could identify is that if you go under System Administration --> Inquiries --> Database there is a form called "SQL statement trace log".
Here these errors are logged.
In our case here is the stacktrack of the problem with GAB:
(c)\Classes\QueryRun\next
(c)\Classes\FormDataSource\executeQuery
(c)\Forms\DirPartyTable\Data Sources\DirPartyTable\Methods\executeQuery - line 3
(c)\Classes\FormDataSource\linkActive
(c)\Forms\DirPartyTable\Data Sources\DirPartyTable\Method\linkActive - line 11
(c)\Classes\FormRun\run
(c)\Forms\DirPartyTable\Methods\run - line 3
(c)\Classes\FormFunctionButtonControl\Clicked
(c)\Classes\FormRun\task
(c)\Classes\SysSetupFormRun\task - line 20
The problem so far happend about 1 or 2 times a week.
Is there someone who could find the reason for that?