web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Debug NAS service

(0) ShareShare
ReportReport
Posted on by

Hi , I 've problem with nas service debuging this is my Nas Service settings 
4530.1.png

I set breakpoint in my code unit which is run from job Job Queue Entrie then "Debug Next" in Session List but not stop on breakpoint, of curse my code unit done his job. I try in another way , put MESSAGE('i'm here') or ERROR ('Thi's my error') in code unit but message not appears so I can't see Nas session on session list , I try many ways, maybe is some trick which I missed ???

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Zaid Tariq Profile Picture
    2,274 on at

    Hi,
    Please try as following:
    - Run the debugger and then run you codeunit if it is working without Job Queue.
    - If so, then please use IF GUIALLOWED THEN MESSAGE('abc') or ERROR('abc'). If you are running a job using job queue and you are displaying any message without using GUIALLOWED then the job will not run.
    - If it is also fine then, make sure that you have added the startup codeunit as 450 in the instance configuration using NAV Administration.
    - When the job run, go to event viewer to see if an error occures.

    Let me know in either case. Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans