Unexpected end while parsing CDATA
Hello,
I am just looking at building simple File integration to print some pallet labels, I started by creating a blank label and connecting it to the sample XML than displaying only the printer name, eventually I would be displaying a barcode with serial number.
Sample XML
<XMLScript Version="2.0" Trusted="true">
<Command Name="Print Document">
<Print SaveAfterPrintCondition="IfModified" ActionInitiated="true" ReturnPrintData="false" ReturnSummary="false" ReturnLabelData="false" ReturnChecksum="false" ReturnDataSources="false">
<Format CloseAtEndOfJob="false" SaveAtEndOfJob="true" RegenerateThumbnail="false">lib://TraceLink/Pallet_RX.btw</Format>
<PrintSetup>
<UseDatabase>true</UseDatabase>
<Printer>ITEAOPrinter</Printer>
</PrintSetup>
<RecordSet Type="btXML" AddIfNone="true">
<XMLData><![CDATA[<Variables><Variable Name="SSCC_SERIAL_NUMBER">00000700300000074135</Variable></Variables>]]></XMLData>
</RecordSet>
</Print>
</Command>
</XMLScript>
In Bartender I used the database set up connection to print and test printed with no issues.
When I build the File integration I followed the knowledge base and was able to get it working using the sample files from Bartender, but now that I have my own XML and recreated all the steps I get the attached error show in the screenshot. Any help would be appreciated.
-
pthane
★ BarTender Hero ★
Not done a lot with XML stuff but from what I have seen it looks like the record set line is incorrect.
The sample in one of the BT PDFs shows this command like this:
<![CDATA["FirstName","LastName","City","Zip Code"
"Amanda","Jones","Bellevue","98008"
"Jessica","Smith","Kirkland","98293"]]and if your were following the same pattern then it should be something like
(per https://www.seagullscientific.com/media/2367/automation-with-btxml-script.pdf)
<![CDATA["SSCC_SERIAL_NUMBER"
"00000700300000074135"]]
0
Iniciar sesión para dejar un comentario.
Comentarios
1 comentario