NAS job queue report

foo_barfoo_bar Member Posts: 91
Hello,

I have a report that is triggered to run by a job queue entry.
This report does posting of some specific sales orders every day.

When I schedule this job queue entry with a job queue that is not started by NAS, the report posts the orders succesfully.

If I schedule this job queue entry with a NAS job queue, then the report runs, but no sales orders are posted.

NAS startup codeunit = 450
NAS startup arguments = JOBQUEUE

I've tried all combinations with 'start on this NAS instance/computer'..

Am I missing something?

Kind regards,

Foo

Best Answer

  • foo_barfoo_bar Member Posts: 91
    Answer ✓
    thx for your help and time guys, I've figured out the problem. Had nothing to do with job queue settings, but with request properties..

Answers

  • zaidtariqzaidtariq Member Posts: 52
    Do not type any thing in the NAS startup arguments as job queue will still works.
    Are you sure that you job is running by NAS service? Please verify from the Job Queue Log Entry page and please also post its screenshot.
    Best Regards:
    Zaid Tariq
    Dynamics NAV/365 BC Developer at Dynamics 360

    please like / agree / verify my answer, if was helpful.
  • zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    edited 2017-02-08
    Hi @foo_bar ,

    Are you following these steps? I guess you have missed Startup Method. Below are the steps make sure you are following these:

    Configuring NAS to use Job Queue
    1) On the Server machine, start the Dynamics NAV Administration Console
    2) Select the server instance and click the Edit button
    3) Go to the NAS Services fast-tab
    4) Set the Startup Codeunit field value to 450

    Alternatively you can change the setup of step 5 to:
    - Set the Startup Codeunit field value to 1
    - Set the Startup Method field value to NASHandler
    - Set the Startup Argument field value to JOBQUEUE
    - Click Save

    Remember to Configuring the Job Queue to use the NAS
    Go to Job Queues list page
    - In the NAS Settings fast-tab, set Start Automatically From NAS field value to TRUE
    - Click the OK button to close the card
    - Starting NAS
    Select the server instance in the Dynamics NAV Administration Console
    - Click Restart from the Action pane

    Wait a few seconds to observe the Status field change to Running

    ================
    Also, make sure that in the Sales & Receivables Setup you have following fields enabled:

    oqepazkhrp18.png


    please like / agree / verify my answer, if it was helpful for you. thanks.
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • foo_barfoo_bar Member Posts: 91
    Answer ✓
    thx for your help and time guys, I've figured out the problem. Had nothing to do with job queue settings, but with request properties..
Sign In or Register to comment.