Hello everyone,
I am making some research on NAS and I have the following problem:
First of all I am using the SQL Server part of the NAS.
I have made a custom parameter (TEST) and run a specific codeunit.
I have build a navision timer (interval=1 sec) and added some code at the OnTimer that locktable(TRUE) and add a rec in a table (every second).
All works fine...
I made a codeunit (to test) that locktable(TRUE) the same record, adds a record and then waits for 20 seconds (waits by using repeat until and time check).
The NAS waits for a little and then creates an event in the application Event Viewer that says:
".... The test NAS table cannot be changed because it is locked by another user."
After that another event:
"....The server will attempt to initialize every 30 seconds until this is successful." which is known...
And (here is the problem) after that every 30 secs creates an event that says:
"..... The Breakpoint already exists.
Identification fields and values:
Object ID='5801',Object Type='Codeunit',Trigger Line='2',Code No='1'
."
I have checked that cu and it has a breakpoit at that place, I remove it and after a while it appears again.
I am not very familiar with the use of NAS, if someone could give me some directions or corrections I would really appreciate it...
0
Answers
If you want, you can change this timeout through new C/AL command TIMEOUT. If you set it to 0, Navision will wait infinitely (like in previous versions).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I searched the TIMEOUT C/AL routine but didn't found something (and the compiler doesn't recognized it) and the version of the exe is:
Version GR 4.0 SP1 (4.0 SP1)
I tried the: in the start of the NAS code and NAS waits infinitely. This covers me, but have you any ideas about the events that where raised? (The breakpoint event).
[/code]
Arhontis
https://forum.mibuso.com/search
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
To be exact, the file is named "NavBP.xml" and it is in the "Documents and Settings\<USERID>\Application Data".
I deleted it and I didn't use any LOCKTIMEOUT and NAS informed me in the event viewer that he can't do something right now because the table is locked, but he tries again after a few seconds secs and he reconnects and all goes well... I even made a 60 secs locktable (outside the NAS) and Nas tried 3 times to do the same job and all is well...
Thanks alot Kine...
Just tell me the year, and I will send you the wine...
Arhontis
https://forum.mibuso.com/search
Thanks for the offer of the wine, I know that Greek wines are very good, but I am not drinking wine (I am abstainer). But my grandpa has vineyard... :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.