DIALOG variable error when posting with NAS a service order

Hello all,

Using a NAS service I try to post a Service Order, but I still got the following error:
You cannot use C/AL variables of type DIALOG when running the Microsoft Dynamics NAV Application Server.

I tried to add IF GUIALLOWED on each DIALOG or CONFIRM sequence of code from CU 5980, but the error still appear..

Can you give me a hint, pretty please?

Thx

Answers

  • SilverXSilverX Member Posts: 134
    Hi,

    if you placed IF GUIALLOWED before each dialog, you should be fine. Make sure you do not use phrases like "IF GUIALLOWED AND DIALOG/CONFIRM" as NAV evaluates both expressions even if the first is FALSE.

    If this Issue persists, please use debugger to find the statement.
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
Sign In or Register to comment.