Some days ago I was with a partner for checking a Dynamics 365 Business Central project. This project has a big usage of Job Queue, with lots of tasks scheduled (business tasks and integration tasks).
Today, I would like to talk about a simple topic, how to automatically delete completely invoiced documents in Business Central.
First of all, the following descriptions are based on invoiced sales orders, and the same goes for other documents.
As you might know, in Business Central, after posting a sales invoice from the sales order page, the system will delete the completely invoiced sales order.
For a few people, this will be a very “current problem”, for other, that have suffered through years of “unstable” NAS and Job Queue for that matter .. this upcoming blogpost might be interesting.
The primary reason for this post is an issue that – after quite some debugging – seemed to be an issue introduced in version 17.4 (and currently also v18.0). But I decided to tackle the issue in a way it’s a bit more generic to deal with “unstable Job Queues” in stead of “just this particular issue
Job queue is one amazing tool that I’ve been using for ages. From NAV 2017 and so on job queue (aka Task Scheduler) has been improved and there are some amazing features.
I’m not going to talk about how it works (people from Microsoft have done a great job on documentation) but I’m going to explain how to be a little more productive and avoid some annoying errors that makes job queue experience not 100% amazing.