Hi,
i'm trying to debug the NAS on a NAV 2013, but the NAS session isn't shown in the Session list. (Session list is shown but empty, NAS is running)
i've already changed the server instance to the NAS instance. Is there any else to note ?
Debugger only shows the sessions with user interface, don't show sessions of NAS or Web Services. If you want to debug this type of sessions you must use this trick.
The Sessions page (~'Debugger' page) shows all active sessions on the server you are connected to. Web services usually live for such a short time, that you never get to see it in the page, whereas the NAS should be there, unless it also just lives for a short time. Does you NAS have a loop? Or does it just do some stuff and then end?
The Sessions page (~'Debugger' page) shows all active sessions on the server you are connected to. Web services usually live for such a short time, that you never get to see it in the page, whereas the NAS should be there, unless it also just lives for a short time. Does you NAS have a loop? Or does it just do some stuff and then end?
yes it's a loop that exports and imports data from different xml ports, time triggered all minute or hour according to setup.
The 'Sessions' page has a filter on it by default that excludes other service tiers and your current session, but this shouldn't exclude the NAS session if you're connected to the correct service tier.
BUT, there is a bug in early hotfixes of V7 that deletes records from the "Active Session" table if the session doesn't do much and you're using more than one service tier against a database, the NAS session often falls into category.
It is possible to manually reinsert the record at the SQL level, but not from inside NAV (presumably because it's used for the user count that makes the "too many users" licensing error).
It's usually easier just to restart the service tier.
Comments
You have to put a breackpoint on the code that NAS will execute, and don't select a session, click on debug next and start NAS.
Regards
Works for me thanks. but why the NAS session isn't shown ?
Microsoft - Dynamics NAV
yes it's a loop that exports and imports data from different xml ports, time triggered all minute or hour according to setup.
BUT, there is a bug in early hotfixes of V7 that deletes records from the "Active Session" table if the session doesn't do much and you're using more than one service tier against a database, the NAS session often falls into category.
It is possible to manually reinsert the record at the SQL level, but not from inside NAV (presumably because it's used for the user count that makes the "too many users" licensing error).
It's usually easier just to restart the service tier.
TVision Technology Ltd