Setting up Job Queues
Carrying out complicated and laborious tasks on a regular basis, such as importing large numbers of documents and recognizing fields in all of them, may be a time-consuming process. Job queues enable you to automate such processes, as they can run automatically in the background. Setting up automatic job queues doesn't preclude you from carrying out related tasks manually at the same time. For example, when you set up a job queue for document import, you can still import documents manually as well, if necessary.
In Continia Document Capture, job queues can be set up for the following recurring activities:
|Importing documents||You can have documents imported automatically on a regular basis. |
To do this using a job queue, follow the guide below, using codeunit 6085669 CDC Run Doc. Importer from JQ.
|Batch-registering documents||It's possible to register all documents in the document journal that are OK and for which there are no warnings or errors. |
To batch-register documents using a job queue, follow the guide below, using report 6085580 CDC Batch Register Documents.
|Automatic document matching||Documents can be matched automatically in bulk on a recurring basis. |
To do this using a job queue, follow the guide below, using codeunit 6086022 CDC Batch Match Documents
|Sending status emails to approvers||Document Capture can send reminder emails to users who need to approve one or more documents. |
To send such emails to approvers using a job queue, follow the guide below, using codeunit 6085712 CDC Purch. Approval E-Mail.
|Batch-posting purchase invoices||You can have all purchase invoices with the status Released posted in bulk. |
To post purchase invoices using a job queue in Microsoft Dynamics NAV 2018 or later, follow the guide below, using report 497 Batch Post Purchase Invoices. For older versions, run report 6085585 CDC Batch Post Purch. Invoices.
|Batch-posting purchase credit memos||Similarly to the above, Document Capture can automatically post all purchase credit memos with the status Released in bulk. |
To post purchase invoices using a job queue in Microsoft Dynamics NAV 2018 or later, follow the guide below, using report 498 Batch Post Purch. Credit Memos. For older versions, run report 6085586 CDC Batch Post Purch. CMs.
|Sending status emails to document assignees||Document Capture can send reminder emails to users who have been assigned any number of documents. |
To send such emails using a job queue, follow the guide below, using codeunit 6086020 CDC Send Delegation Email.
|Batch-assigning documents||Document Capture can be set up to assign documents to users in bulk. |
To do this using a job queue, follow the guide below, using codeunit 6086021 CDC Batch Delegate Documents.
|Sending status emails to reviewers||You can set up Document Capture to send reminder emails to users who need to review one or more purchase contracts. |
To send such emails using a job queue, follow the guide below, using codeunit 6225182 CDC Review E-mail.
As indicated above, you can use job queues to schedule and run many different tasks and processes. The setup procedure is always the same – only the codeunits/reports are different.
To set up a job queue, follow these steps:
- Choose the icon, enter Job Queue Entries, and then choose the related link.
- In the action bar, select New to open the Job Queue Entry Card.
- On the General FastTab, go to Object Type to Run and select the relevant type, depending on whether you're running a codeunit or a report.
- In the field Object ID to Run, enter the relevant codeunit/report (see the table above).
- In Earliest Start Date/Time, specify the earliest date and time to start running the job queue.
- When you've picked or entered a date, the Earliest Start Date/Time field is autofilled with the default time of day, but you can change this if necessary.
- On the Recurrence FastTab, specify the recurrence rate of the job queue (if any) by enabling the recurrence toggle for each of the days you want it to run.
- Fill out the remaining fields on the Recurrence FastTab as needed.
- In the action bar, select Set Status to Ready to start the job queue.
Specifically for document import: Note that you shouldn't run document import queues too often. The process is I/O- and CPU-intensive, and running it too often is likely to result in locking issues and a general decline in the NAV Service Tier performance, especially when many documents are imported at the same time.
Conversely, running document import queues too rarely may result in the accumulation of very large numbers of documents that take a long time to import, thereby clogging up the system and blocking it for other users and processes when the queue is finally run. This applies in particular if you generally receive large quantities of documents. If that's the case for you, you may want to schedule document import to take place outside of business hours.
The optimal interval between queue runs depends entirely on your specific business setup, not least in terms of incoming document volume. We recommend filling in No. of Minutes between Runs on the Recurrence FastTab with a value that reflects your particular environment. As a rule of thumb, we recommend setting it to 60 minutes, but this is only a guideline.
Job queues sometimes fail, for example due to interrupted communication with an essential external resource that's become unresponsive, eventually resulting in an error status. To avoid this, you should fill in the fields Maximum No. of Attempts to Run and Rerun Delay (sec.), which are located on the General FastTab. Note that you may have to select Show more for these fields to become visible.
For example, if you use Continia Cloud OCR for document import, network resources may be unavailable from time to time. In order to mitigate this, we recommend setting Maximum No. of Attempts to Run to 10 times.