Print Scheduler Service error: Could not start an interactive BarTender due to no logged on users to the system. Follow

Avatar

BarTender Content Team


Symptoms

You may be encountering the following problematic behavior when printing from Integration.

  • Integration intermittently stops.
  • Labels do not print from Integration intermittently.
  • "Access is \ was denied" error messages occur when printing from Integration.

In the Print Scheduler service logs (C:\ProgramData\Seagull\Services\Integrations\Service) the follow error message is logged:

|ERROR|Could not start an interactive BarTender due to no logged on users to the system.

2022-01-14_13-22-46.png

 

The most common error messages that occur alongside the above message are:

  • "Access to 'x' was denied" \ "Access is denied."
    2022-01-14_13-19-06.png
  • "Thread was being aborted."
    2022-01-14_13-16-24.png

Environment 

BarTender 2016 and later.

Printing from Integration Builder or a deployed Integration.

Diagnosis

  1. The error message will be found in the Print Scheduler service text logs (C:\ProgramData\Seagull\Services\Logging).
  2. Open the Integration(s) in Integration Builder and check all Print actions (e.g. Print Document, Print Command Script, Print BTXML Script, etc.) on the Print Options tab and confirm if the Prompt for data input box is checked.

Possible Solutions

Solution 1 - Uncheck 'Prompt for data input' option in Integration Print actions.

If you do not require end-user input in an interactive dialog (e.g. Data Entry Form) while printing from Integration, it is recommended to uncheck the Prompt for data input box in the Integration.

    • It is recommended to test this change before re-deploying the Integration.

 

Solution 2 - Specify a user account on the BarTender Print Scheduler service.

It is generally recommended to leave the BarTender Print Scheduler service running as Local System as the service utilizes user impersonation. If a user account is defined in the Integration file, it will be impersonated and run as the local system account for the service. When running with the local system account the service is able to run as if it was a different account. (BarTender Services and Permissions).

However, if you DO require end-user input in an interactive dialog while printing from Integration, then you must ensure the currently logged in user has access to all required files, printers, and system resources.

In these situations, you must specify an account on the BarTender Print Scheduler service in Windows Services management console and on the Integration's print action with the following attributes:

  • has local administrator rights
  • has domain-level access (if accessing network resources)
  • does not change its password

How to set a user account on the BarTender Print Scheduler service:

  1. Open Windows Services.
  2. Right-click on the BarTender Print Scheduler and select Properties.
  3. Select the Log On tab.
  4. Click the This account radio button, then enter the username and password of the user account.
  5. Click the Apply button, then OK.
    2022-01-14_13-50-42.png
  6. Right-click on the BarTender Print Scheduler service and select Restart to restart the service.

How to set a user account on a Print action in Integration Builder:

  1. Open your Integration file in Integration Builder.
  2. Select the Print action of your Integration (e.g. Print Document, Print BTXML Script, Print Command Script, etc.).
  3. Select the Action tab of the print action.
  4. Select the Specify user credentials radio button, then enter the same username and password you specified on the BarTender Print Scheduler service in Windows Services.
    2022-01-14_13-47-39.png
  5. Use the Test tab to test the changes before re-deploying the Integration. Once you have finished testing, use the Deploy tab to re-deploy the Integration and apply the changes to your Integration in production.

 

Internal only information

 

 

Do you have feedback or questions on this article? We encourage you to post them on our Community Forums