Hi.
Environment: NAV 5.0 SP0, Win 2003 server, SQL 2005.
To run a custom NAV import/export, we remote-desktop to the server, run the NAV SQL client, and open the SQL database on that system's SQL server. During testing and now in semi-production, we run into cases where when we exit NAV the log file the export produces is locked open. Looking at task manager we see a finsql.exe process tat shouud not be there. When we kill that process, the log file is released.
This happens fairly regularly - it can be reproduced easly by booting the NAV client, doing an import, and then closing the client. After two or three iterations a zombie process remains.
The import/export is fairly 'clean' - it is reading and writing plain-text files, and appears to be operating correctly - until it runs into the case where the log it writes to is still locked open by the zombie.
Has anyone seen anything like this and maybe suggest what to look for?
Thanks in advance.
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
ERP Consultant (not just Navision) & Navision challenger
As some kind of workaround you could also run a job, periodically "killing" idle processes:
USE AT OWN RISK!
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
idiot: Yes, will check. I had left one out previously, and that caused some havoc. Maybe I've missed another.
This code should look up all sessions from a 'Microsoft Business Solutions-Navision client' application which have execute the "last batch" (the last command/statement/query) 6 hours ago to "kill" those processes.
If you're not familiar with TSQL (or SQL) then maybe you should restrain from using it, as the potential risk of this it, that a session is killed which should not - this kind of "exception handling" needs to be added (if required).
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
But don't worry - I know just enough SQL to leave stuff like this to the gurus.
Thanks though