Hi,
I’m trying to generate the GS1 QR code for the text : 010123456789012890TEC-IT\F8200https://www.tec-it.com via online aspose generator. I get this error : Wrong format of GS1 QR input string. But if i generate the same text via Free Online Barcode Generator: GS1 QR Code generator it works.
@kavita09,
I reproduced the issue as you mentioned after initial testing by using the following sample code. I got an exception “Wrong format of GS1 QR input string” on generating the barcode image. The online barcode generator (Generate Barcode Online) also produces the same error.
e.g.
Sample code:
BarcodeGenerator bg = new BarcodeGenerator(EncodeTypes.GS_1_QR, "010123456789012890TEC-IT\\F8200https://www.tec-it.com");
{
try
{
bg.save("f:\\files\\out1asdfasdfasdf.png", BarCodeImageFormat.PNG);
}
catch (IOException e)
{
e.printStackTrace();
}
}
We need to investigate your issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): BARCODEJAVA-1642
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hi,
Can you’ll please provide an estimate of when this will be released?
Thanks & Regards,
Kavita Pandit.
@kavita09,
The error “Wrong format of GS1 QR input string” suggests that your input barcode string is not right. We already suggested to read the topic with complete details and examples for your reference:
https://docs.aspose.com/barcode/net/generating-barcodes-using-new-barcode-generation-api/#barcode-generation-according-to-gs1-standards
Please note, your input string should follow GS1 Standards as mentioned in the above topic.
Hi,
But you’ll also created Issue ID(s): BARCODEJAVA-1642 ticket correct. That means this will be fixed i think. Please correct me if i misunderstood.
Thanks & Regards,
Kavita Pandit.
@kavita09,
I created the ticket for evaluation and investigation. We found since the input string is not following GS1 standards, so it produces the error. You may fix the input string to figure out your issue.
You need to add “FNC1” special code on your barcode then it is able to work:
- Your code generate with online aspose is
=>010123456789012890TECIT\F8200https://www.tec-it.com
This does not follow gs1 standard
Instead you should add “FNC1” to your code:
=>{FNC1}010123456789012890TECIT\F8200https://www.tec-it.com
Note: FNC1 is a single byte character please check how to then special character
The website you used already include it when generate barcode for you.
You can go to gs1 website to learn about the standard
How GS1 standards work | GS1.
Or go to this website to test your barcode is it gs1 standard
https://www.gs1reader.com/
@kavita09,
We have thoroughly evaluated it and found that it is not a bug in the Aspose.BarCode for Java API. You need to use GS1 AI pointers. Please see the below line where we have added GS1 AI pointers to your input string:
"(21)0123456789012890(10)TEC-IT\\F8200(240)https://www.tec-it.com"
Please try it and let us know if you still have any issues.
It is generating the barcode now with the string provided by you. Upon scanning also the characters you appended seem to be appearing. Need to check about this with my team. Thank you.
@kavita09,
It is nice to know that barcode is generated with suggested string. Please take your time to evaluate/check it with your team. Hopefully it will work for your needs.