Eventlog error Cannot use FORM in NAS ??

dlauwers
Member Posts: 127
Hi,
We are using NAV 4 with NAS to print documents when picks en ships are finisched using a scanner device.
Most of the time this works OK but sometimes they get the following error:
The description for Event ID ( 20010 ) in Source ( SERVER-CLASSIC ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: You cannot use C/AL variables of type FORM when running the Microsoft Business Solutions-Navision Application Server.
We have checked the code and subroutines that we call from our function to print a waybill (own function) and do not use a FORM, or CONFIRM. When we execute this in the client no form is shown.
But the report parameter ShowPrintStatus was still set to YES, do you know if this could cause an error like this ? We now have set this flag to NO, but we have to wait and see if the problem is solved.
If only Navision reported in what object he encountered the so called FORM, that this problem was probably solved in 2 minutes.
Any other methods for trying to locate where the error comes from.
During testing on the client and NAS we have not seen this problem. If it is the ShowPrintStatus, could it be that it will only show for larger reports ?
Hope you can give me some tips !
Have a great day and some nice Holidays
Danny
We are using NAV 4 with NAS to print documents when picks en ships are finisched using a scanner device.
Most of the time this works OK but sometimes they get the following error:
The description for Event ID ( 20010 ) in Source ( SERVER-CLASSIC ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: You cannot use C/AL variables of type FORM when running the Microsoft Business Solutions-Navision Application Server.
We have checked the code and subroutines that we call from our function to print a waybill (own function) and do not use a FORM, or CONFIRM. When we execute this in the client no form is shown.
But the report parameter ShowPrintStatus was still set to YES, do you know if this could cause an error like this ? We now have set this flag to NO, but we have to wait and see if the problem is solved.
If only Navision reported in what object he encountered the so called FORM, that this problem was probably solved in 2 minutes.
Any other methods for trying to locate where the error comes from.
During testing on the client and NAS we have not seen this problem. If it is the ShowPrintStatus, could it be that it will only show for larger reports ?
Hope you can give me some tips !
Have a great day and some nice Holidays

Danny
0
Comments
-
There can be the Dialog variable used. Look for that in your report. All Dialog commands and all commands using FORM must be conditioned by IF GUIALLOWED THEN...
To find out where is the problem you can enable debugger in NAS.
Just stop the NAS service, run it in command prompt and add parameter DEBUG like this:cd "C:\Program Files\Microsoft Business Solutions-Navision\Application Server" nassql.exe company="MyCompany",database=MyDatabase,servername=MyServer,startupparameter=MyParameter,debug=1
And to be able to debug the system, you need to have developer license in the Application server folder saved as fin.flf. Of course, NAS will be running under the Windows User account you are logged in and you need to set permissions for this account correctly.
After you run the NAS in console, the debugger will start too. You just needs to disable Break on Triggers options and continue. If there is some error, debugger will stop on the problematic code.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions