We have a customer on AX2012 RTM who experience regular problems with the speed of creating a new purchase order line. This is just the time take for the system to respond and allow them to enter an item number after pressing the ‘Add line’ button, or Ctrl-N or arrow down to new line. Under normal circumstances this takes less than a second, but every few weeks the performance slows dramatically and it can take 20 seconds or more from when they press the button until they can actually start entering any data.
The only solution seems to be to shut down the AOS, restart SQL Server, then restart the AOS. We think it is something to do with the TempDB database, which is cleared out be restarting SQL. Even though it is not particularly large before restarting SQL, this will usually get things working normally again. However, the last time this happened, restarting SQL did not fix the problem, and I had to backup, delete and restore the AX database in order to get it running smoothly again.
I have tried debugging the line entry, and have found that it is at the point where the system calls the super() method in the insert() method of the PurchLine table that the delay is occurring. Strangely though, if I open the PurchLine table via the AOT, I can create a new line and it responds instantly.
Has anyone experienced anything like this? Is there a way to clear the TempDB database without having to restart SQL and AX?
Thanks in advance,
David