Eventlog error Cannot use FORM in NAS ??

dlauwersdlauwers Member Posts: 127
edited 2007-12-21 in Navision Attain
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 :D
Danny

Comments

  • kinekine Member Posts: 12,562
    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.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.