Setting up job queues

Continia Document Capture uses the standard Microsoft Dynamics 365 Business Central job queue functionality to optimize business processes and automate repetitive tasks. Through the job queue, you can view, create, and modify jobs that execute specific codeunits or reports in the background.

You can schedule these jobs to run either once or on a recurring basis. For information on how to work with job queues, see Use job queues to schedule tasks (Microsoft article).

Important

To set up job queues, users need a full permission set and must not have security filter limitations.

Job queues in Document Capture

In Document Capture, job queues can be set up for the following recurring activities.

Tip

To prevent system degradation, allow for a gap between the end of an activity and the beginning of another.


ActivityDescriptionRecommended frequency
Importing documentsAutomatically import documents on a regular basis.

To do this using a job queue, follow the Microsoft guide, using codeunit 6085669 CDC Run Doc. Importer from JQ.
every 30-60 minutes, depending on volume
Batch-registering documentsRegister 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 Microsoft guide, using report 6085580 CDC Batch Register Documents.
every 60 minutes
Automatic document matchingAutomatically match documents in bulk on a recurring basis.

To do this using a job queue, follow the Microsoft guide, using codeunit 6086022 CDC Batch Match Documents.
every 20 minutes
Sending status emails to approversSend reminder emails to users who need to approve one or more documents.

To send such emails to approvers using a job queue, follow the Microsoft guide, using codeunit 6085712 CDC Purch. Approval E-Mail.
once per day at 2:10 PM
Batch-posting purchase invoicesPost all purchase invoices with the status Released in bulk.

To post purchase invoices using a job queue in Microsoft Dynamics NAV 2018 or later, follow the Microsoft guide, using report 497 Batch Post Purchase Invoices. For older versions, run report 6085585 CDC Batch Post Purch. Invoices.
once per day, at the end of the day
Batch-posting purchase credit memosPost all purchase credit memos with the status Released in bulk.

To post credit memos using a job queue in Microsoft Dynamics NAV 2018 or later, follow the Microsoft guide, using report 498 Batch Post Purch. Credit Memos. For older versions, run report 6085586 CDC Batch Post Purch. CMs.
once per day, at the end of the day
Sending status emails to document assigneesSend reminder emails to users who have been assigned one or more documents.

To send such emails using a job queue, follow the Microsoft guide, using codeunit 6086020 CDC Send Delegation Email.
once per day at 11:00 AM
Batch-assigning documentsAssign documents to users in bulk.

To do this using a job queue, follow the Microsoft guide, using codeunit 6086021 CDC Batch Delegate Documents.
-
Sending status emails to contract approversSend reminder emails to users who need to approve one or more purchase contracts.

To send such emails using a job queue, follow the Microsoft guide, using codeunit 6225182 CDC Review E-mail.
once per day at 2:20 PM
Sending status emails to category managersSend status emails to admins who need to register one or more open documents.

To send such emails using a job queue, follow the Microsoft guide, using report 6085589 CDC Send Status Email to Category Managers.
once per day at 2:40 PM
Data maintenancePerform data maintenance on a regular basis.

To do this using a job queue, follow the Microsoft guide, using codeunit 6086081 CDC Data Maintenance Mgt.
once per week

Job queues in Continia eDocuments

In Continia eDocuments, job queues can be set up for the following recurring activities:

ActivityDescriptionRecommended frequency
Update metadataSynchronize information owned by Continia Delivery Network Online – such as ID types, networks, and network profiles – with Business Central.

To do this using a job queue, follow the Microsoft guide, using codeunit 6086293 CTS-CDN Metadata Update Job.
once per day
Update document statusRefresh the status of eDocuments in Business Central, including responses from recipients.

To do this using a job queue, follow the Microsoft guide, using codeunit 6086294 CTS-CDN Document Update Job.
every 5-15 minutes
Update document receiving capabilitiesRefresh the eDocument receiving capabilities of customers, vendors, or both. E.g.: a customer with a new network profile.

To do this using a job queue, follow the Microsoft guide, using codeunit 6225523 CTS-CDN Upd. eDoc. Rec. Capab.
every 1-2 weeks

Important

For document import, don't run document import queues too often because the process is I/O- and CPU-intensive. Therefore, running it excessively is likely to result in locking issues and a general decline in the 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 – clogging up the system and blocking it for other users and processes when the queue is finally run. If you receive large quantities of documents, 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, including your incoming document volume. Fill out No. of Minutes between Runs on the Recurrence FastTab with a value that reflects your particular environment (e.g.: 60 minutes).

Note

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, fill out the fields Maximum No. of Attempts to Run and Rerun Delay (sec.) on the General FastTab.

For example, if you use Continia Cloud OCR for document import, network resources may be unavailable from time to time. To mitigate this, set Maximum No. of Attempts to Run to ten times.