Table of Contents

Troubleshooting Service-Print

  • Nothing is printed
  • Local printers are not updated
  • The printing process is crashing

Nothing is printed

Here are the steps you can take if your documents are not being printed. The steps listed here apply to the service-print.

Check your printer

Your direct printer must be configured to send print jobs to the print queue. Otherwise, it will not be picked up by the print service.

Check your direct printer and make sure that you have selected the Queue Jobs option.

Queue print jobs option

Check the print queue

If you set the Queue Jobs on your printer, the next print should go to the print queue in Business Central.

Make a new print job and verify it is in the print queue.

Print job on print queue

Disable deletion of finished jobs

Finished print jobs may be removed from the print queue. Go to the direct print settings and turn off the feature that deletes finished jobs. Keeping the finished jobs will help us debug the printing process.

Disable print job deletion

Is the print service running?

If you see the print job on the print queue in Business Central but the status never changes from Ready, your print service is most likely not connected.

Check under Windows Services that the Direct Print Service is running.

Running print service

Is the print service connected?

Open the direct print program from the Start menu and check your environment status. The status should be Waiting and green.

Waiting status

If the status is not waiting, there may be an error message in the status area. Click the link above the message to get help with the message.tg

Open the log file

View the log file for your environment. You should be able to see your print job in the log. Maybe there is an error message that will help debug the problem.

View print service log

You should be able to see the print job in the log file.

If you still have the job in the Business Central print queue with the status Ready, it may be a routing problem.

Pause Windows print queue

If the log for your print service shows that your document is printed, the next step is to follow the print job to the Windows spooler queue.

You can open the printer Windows printer queue in Windows printers or in the Direct Print user interface.

Open print queue

After a print job is sent to the printer, it is removed from the Windows print queue. It may be printed so fast that we cannot see it in the queue. Therefore, you should pause the printer while searching for the print job.

Pause printer

Blocking print dialogs

If the print service has trouble printing or your print job never shows up in the paused printer queue, you can do a simple test with Notepad.

Open Notepad and print a short text to the printer.

Important

The Notepad test must be run on the same machine and as the same user that runs the print service.

Maybe your printer driver will show a dialog that blocks the automated print.

Routing error

Routing print jobs is a powerful feature that helps you distribute them to the intended print service. However, if it is set up incorrectly, your print jobs will not be routed to the correct print service and will remain in the queue.

By default, the routing table is empty, and you should leave it empty unless you run multiple print services with an overlap of local printer names.

If jobs are left in a ready state in the Business Central print queue, you can try to remove all entries from the routing table. This ensures that if a print service has a local printer that matches the print job, the print job is downloaded and printed.

More on routing

Local printers are not updated

You have a lookup list of local printers when you define a direct printer in Business Central. The connected print service maintains a list of connected printers for this purpose. If you cannot see any printers in the lookup, then you should check if your print service is running and connected.

Connected printers

Inspect the print job

From the print queue in Business Central, you can download the document. Try downloading and opening the document to see if the print job content is as expected.

Windows event log

The Windows event log can hold additional information on where the problem is. Here is a link for more details on the logs.

Direct Print Logs

Disable extensions

Printing in Business Central uses events. If other extensions are subscribing to the printing events and interrupting the printing process, you may experience various symptoms. Maybe you don't get a print job in the print queue, or perhaps the document on the print job is empty. If you experience this, try uninstalling other ISV or custom extensions to find the one causing the problem.

Printing process is crashing

If the processing of your printer queue is stuck and you see the printing process keeps restarting, it's most likely crashing.

The only known cause of a printing process crash is bad printer drivers. Printer drivers run in the same memory space as the printing process and can cause it to crash if they corrupt memory or poorly handle exceptions.

You may have entries in the Windows Event Log that look similar to this:

Faulting application name: ForNav.PrintJob.exe, version: 8.0.0.2672, time stamp: 0x689afeab
Faulting module name: ntdll.dll, version: 10.0.20348.4297, time stamp: 0x4cdc53dc
Exception code: 0xc0000374
Fault offset: 0x0000000000103e89
Faulting process id: 0x2948
Faulting application start time: 0x01dc7f362dc56355
Faulting application path: C:\Program Files\Reports ForNAV\ForNav.PrintJob.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: edd3f07e-315f-490e-90dc-fa6e675c8d47

Reasons

In the past, we have observed this in two scenarios.

  1. Corrupt or faulty printer drivers.
  2. Printer driver cannot run in a service context.

The first thing you can try is to update your printer drivers to the latest version. In the log file, you can see the name of the last used printer and start with that one. However, a bad printer driver can corrupt memory over time, causing the error to occur in an otherwise safe location. In other words, you cannot be sure that the last-used printer is the culprit, but it is a reasonable guess.

If updating the printer drivers does not work, then you can check if the user context is the problem. Stop the direct print service, set it to run in the current user context, and see if it changes anything.

Run as logged in user