Create Job Queue and settings to run job Queue

Hi;

I have created a codeunit which insert data into the table. Now I want to create schedule batch job to run that code unit.
To run the batch Job I have created a Job Queue using Job Queue form.

I have set start time and end time to run the job.

But, My job is not running and its not giving any error in “Job Queue Log Entries”. my “Job Queue Log Entries” is also empty. also between start time and end time of job its not showing in “Job Queue Processes”.

I have installed Microsoft Dynamics Nav 2009. Please any one help me how can I solve this problem.

Do I need to chage the settings ?

Hi Mahek,

Weclome to the Dynamics User Group !

Have you installed the NAS (Nav application Server) - this is the mechanism to run the Job Queue

Hi DaveT,

Yes I have installed NAS server and its also its status is started.

Hi,

You need to use the startup parameter JOBQUEUE for the Job Queue to start

Hi,

I have assigned “JOBQUEUE” as Parameter but still its not working. still its not showing any error or in Job Progerss list.
Should I need to restart the NAS after changing any job settings.
Do I need to change anything in Code Unit.
I havewritten simple code to insert data into table.

Hi Mahek,

Have you restarted the NAS service?

To check the setup manually, run Codeunit 448 Job Queue Dispacher from a normal client and see if it generates an error.

Other things to check are permissions and that the granule is on your license.

Yes now my job Queue is started but its giving me error “The codeunit was called with a Job Queue Entry record. It has no parameters.”.

Hi Mahek,

I suspect you have scheduled a codeunit which has no parameters - you need to add the Job Queue Entry in the TableNo property of the codeunit (even if you do not want to use the record)

Hi Mahek,

Here’s an excellent blog on the Job Queue

http://dynamicsuser.net/blogs/navsustatined/archive/2007/12/19/job-queue-in-microsoft-dynamics-nav-5-0.aspx

follow the sub-links as well

Yes, It’s working fine now…

Thanks a lot DaveT. [:)]

Glad to help [:D]