Tickets with barcodes throw exceptions

I keep getting this error, I don’t know how to work around it. It started happening when I was working on creating an HTML ticket template and after a while of working on it it started to come up. I cannot preview templates with barcodes or even print from the computer with the issue.
I tried restarting the computer to see if that would help with the issue, it does not. The issue is contained to one computer on the network, so all the others are working normally.

Tried to do a fresh windows install. Getting the same issue again. It only is happening on one computer.

I had this issue but i can remember how i fixed it, it does work as shown in my screen shot below.

It definitely wont work from your second screen shot as your wording is green due to the – before it, they need to be removed

think its because your mixing non html tags, remove the <L00> from the line above your <BAR> tag

I added the – to show that it was the barcode generating the error.

1 Like

I tried adding a barcode to the default template, on a fresh install on a fresh windows system and am getting the same error.

I am confused because it used to work on this computer system and now it doesn’t.
Only thing I can think of is some sort of hardware problem. I am going to try and swap out the ram and see what happens.

try creating a new template and enter my code below as we know that works, if it works on your machine we know its something in yout ticket template causing the issue

[LAYOUT]
-- General layout

<div style="font-size:20px;font-weight:bold;text-align:center;font-family:'Calibri'">    </div>

<div style="font-size:25px;font-weight:bold;text-align:center;font-family:'Calibri'">SALES RECEIPT</div>
<div style="font-size:25px;font-weight:bold;text-align:center;font-family:'Calibri'">Order Number: {TICKET ID}</div>
{ENTITIES}

<div style="font-size:20px;font-weight:bold;text-align:center;font-family:'Calibri'">    </div>

<div style="font-size:13px;font-weight:bold;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width=25 align=left><div style="background-color: #000;color:#fff;font-size:15px;font-weight:bold">Qty</div></td>
<td width=205 align=left><div style="background-color: #000;color:#fff;font-size:15px;font-weight:bold">Item Description</div></td>
<td width=33 align=right><div style="background-color: #000;color:#fff;font-size:15px;font-weight:bold">Price</div></td>
</tr>
</table>
</div>

{ORDERS}

<div style="font-size:20px;font-weight:bold;text-align:center;font-family:'Calibri'">    </div>

<div style="font-size:15px;font-weight:bold;text-align:center;background-color: #000;color:#fff;font-family:'Calibri'">{TICKET QUANTITY SUM}x Items Sold</div>
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Sub Total:</td><td align="right">£[=F(TN('{TICKET TOTAL}')+TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{ORDER TAG TOTAL:Promotion}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-


{DISCOUNTS}

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Line Discount:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Promotion Discount:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Promotion}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Transaction Discount:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Staff Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Staff Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Owner Discount 100%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Manager Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Loyalty Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]

[<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Discount Total:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Promotion}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-]
<div style="font-size:22px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Total:</td><td align "right">£{TICKET TOTAL}</td>
</tr>
</table>
</div>
{PAYMENTS}
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Tendered Total:</td><td align="right">£{TENDERED TOTAL}</td>
</tr>
</table>
</div>
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Change:</td><td align="right">£{CHANGE TOTAL}</td>
</tr>
</table>
</div>
<F>-
</div>
<F>
<F>
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<L00>THANK YOU
</div>
<EC>
<EL>
<F>-
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<table>
<tr>
<td width=60 align=center>{TICKET ID}</td>
<td width=80 align=center>{TICKET DATE}</td>
<td width=60 align=center>{TIME}</td>
<td width=60 align=center>{USER NAME}</td>
</tr>
</table>
</div>
<F>-
<div style="font-size:20px;font-weight:bold;text-align:center;font-family:'Calibri'">    </div>
<BAR>{TICKET ID}

--  Receipt Footer


[DISCOUNTS]

[PAYMENTS]
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">{PAYMENT TYPE NAME}</td>
<td align="right">£{TENDERED}</td>
</tr>
</table>
</div>

[ORDERS]
-- Default format for orders
[<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">{QUANTITY}x</td>
<td width="205">{ITEM TAG:Receipt Name}</td>
<td width=33 align=right>£{VISIBLE PRICE}</td>
</tr>
</table>
</div>]

[<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="205">         {PORTION: }</td>
<td width=33 align=right></td>
</tr>
</table>
</div>]


{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>{QUANTITY} {NAME}|**FREE ITEM**


[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Line Discount: {ORDER STATE:DStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1),'0.00']</td>
</tr>
</table>
</div>]

[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Price Override: {ORDER STATE:PStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Price Override}')*-1),'0.00']</td>
</tr>
</table>
</div>]

[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="213">            {ORDER TAG:Promotion}</td>
<td width=45 align=right>      {ORDER TAG TOTAL:Promotion}</td>
</tr>
</table>
</div>]

[<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="196">         {ORDER TAG:Mixers}</td>
<td width=45 align=right></td>
</tr>
</table>
</div>]

[<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="196">         {ORDER TAG:Tonic}</td>
<td width=45 align=right></td>
</tr>
</table>
</div>]



[ENTITIES:Customers]
-- Customer entity format
<F>
[<div style="font-size:12px;font-weight:bold;text-align:center;font-family:'Calibri'">Customer Number: {ENTITY NAME:Customers}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:center;font-family:'Calibri'">Customer Name: {ENTITY DATA:Customers:Name}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:center;font-family:'Calibri'">Date of Event: {ENTITY DATA:Customers:Date of Event}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:center;font-family:'Calibri'">Initial Credit Limit: £{ENTITY DATA:Customers:Credit Limit}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:center;font-family:'Calibri'">Notes: {ENTITY DATA:Customers:Notes}</div>]
<F>

[ENTITIES:Webstore Orders]
-- Webstore Orders entity format
<F
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Customer Name: {ENTITY DATA:Name}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Address: {ENTITY DATA:Address Line 1}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Address: {ENTITY DATA:Address Line 2}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Post Code: {ENTITY DATA:Post Code}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Mobile Number: {ENTITY NAME:Webstore Orders}</div>]
[<div style="font-size:12px;font-weight:bold;text-align:left;font-family:'Calibri'">Date of Delivery: {ENTITY DATA:Date of Delivery}</div>]
<F>

[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
<F>
<F>

Same error, works when I disable the barcode

with barcode disabled

not sure, have you got the latest version of .net installed?

Its .net 4.8 installed

It’s ticket id. Try using a different number.

tried it with 1234 and still got the same error

Hmm I’ve seen that before. What version of windows ?

Windows 10 Pro. Version 10.0.19042 Build 19042

Hmm I know I’ve seen that before but I can’t remember.

It may be video card related

Here is some of the things I’ve noticed.
It has something to do with the way the barcode is added on the ticket.
When I set the printer to ESC/POS and send an ESC/POS template with barcode it prints it correctly, but the preview still shows an error.
When I use it on Printer Set to HTML, I get an error when I print and in the preview pane.
When I print to the printer as a shared printer it works prints correctly (i think because it renders on the computer thats sending it)