Technical article 110048

SCOadmin Printer Manager fails to start while retrieving the list of printers due to an invalid shared printer name.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

SCOadmin Printer Manager fails to start while retrieving the list of
printers with SCO Advanced File and Print Server installed
and shared printing set up to a Windows or NT client.  An error
is written to /tmp/tclerror.XXXX.log similar to this:
            Uncaught error in Tcl program: printerGUI:
            VTcl Server
               VtDrawnListSelectItem - Could not find field
----------------------------------------------------------------------
            Error code = NONE
----------------------------------------------------------------------
            VTcl Server
               VtDrawnListSelectItem - Could not find field
                while executing
            "VtDrawnListSelectItem $mainList -field 1 $focusPrinter"
                invoked from within
            "if { ![lempty $allPrinters] } {
                            set focusPrinter $defaultPrinter
                            if { [lempty $focusPrinter] ||
                                 [lsearch $allPrinters $focusPrinter]
..."
                (procedure "RefreshMainFormData" line 62)
                invoked from within
            "RefreshMainFormData"
                (procedure "StartMainPrinterAdminScreen" line 76)
                invoked from within
            "StartMainPrinterAdminScreen"
                ("uplevel" body line 9)
                invoked from within
            "uplevel $command"
======================================================================

Solution

Look in the directory /var/opt/K/SCO/asusrv/3.5.2n/clipr for the list of AFPS shared printers and check to see if there are printers there that contain any special characters. (Note that this path will vary depending on the release of Advanced File and Print Server so that 3.5.2n may be 3.5.1f). Here is a sample listing of this directory:

-rwxr-xr-x   1 lp    lp       2457 Mar 21 17:00 Henry's
-rw-r--r--   1 root  sys       324 Mar 21 17:00 Henry's.cfg
-rwxr-xr-x   1 lp    lp      22437 Mar 21 17:00 printer1
-rw-r--r--   1 root  sys       324 Mar 21 17:00 printer1.cfg
-rwxr-xr-x   1 lp    lp       5976 Mar 21 17:00 printer2
-rw-r--r--   1 root  sys       324 Mar 21 17:00 printer2.cfg

The printer manager script (printerGUI) fails on the printer "Henry's" due to the special character " ' ". You will need to remove the files containing the special character(s). In this example, you will want to:

# rm Henry*

Now the printer manager will come up without error. You will then need to go to the Windows or NT machine where the printer is connected, rename the printer using only alphanumeric characters, and reshare the printer.

See also

The Advanced File and Print Documentation Set.

From the Xinuos technical article database, record 110048. Reproduced with permission. The original is at www.sco.com/ta/110048, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.