Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Debug NAS service

Posted on by Microsoft Employee

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

  • Suggested answer
    Zaid Tariq Profile Picture
    Zaid Tariq 2,266 on at
    RE: Debug NAS service

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans