Install guide · version 1.1
5. Give each destination its directory
ContentsA file destination writes each label as a file into a directory, from which a queue script sends it on to a printer. For each directory:
-
The customer names the directory its queue watches, on the server that runs X3’s sessions where it can, since how long X3 waits on a share of another computer that does not answer is not known. The queue must take
*.zplin name order and leave*.zpl.tmpalone, a file X3 is still writing. -
Whoever administers X3 lets X3 write there. A directory outside the Sage tree always needs this point; one under it, such as under the folder’s own directory, may be allowed already. In
configRuntime.json, in the runtime’scfgdirectory, on every server that runs the folder’s sessions, add the directory todirectoriesin thesandboxsection:{ "path": "E:\\Labels\\Receiving", "writable": true, "extensions": ["*"] }Backslashes are doubled. A narrower list of extensions must let in both names,
….zpl.tmpand….zpl. On Sage’s cloud, or wherever X3 runs specific code in untrusted mode, the entry also needs"secured": true. -
The installer creates the destination in GESXNQLD: a code, type File, and the directory as its Path, exactly as the X3 server sees it. The directory must exist: X3 does not create it.
-
Whoever administers the server tries the queue script, unless the customer has a queue of its own. The example
XNQL_QUEUE.ps1sends the directory’s files to one printer that takes ZPL on its raw port, such as a Zebra on port 9100. It moves each file it sent to the subdirectorysent\, deletes those older than 30 days, and logs every step inqueue.login the directory; a file the printer does not take stays, and the files after it wait. Copy it onto the server, for example toC:\Nortiqo\, and run it once by hand:powershell -NoProfile -ExecutionPolicy Bypass -File C:\Nortiqo\XNQL_QUEUE.ps1 ` -Directory E:\Labels\Receiving -Printer 10.0.0.25 -
Whoever administers the server registers it as a scheduled task that starts with the server, one task for each directory, as the script’s first lines show. The task’s user must be able to read, write and delete in the directory and reach the printer. Give the task no time limit: Windows stops a scheduled task after three days unless told otherwise.
Check: step 7 prints a first label here. X3 may not write to directory … on every line
means point 2 is not in place. A label that reaches the directory but not the
printer is a line WAITING in queue.log, with the reason.
Stuck? Ask your Sage partner, or write to info@nortiqo.com.