How do I enter data into a data matrix barcode?

Hi,

I’m trying to create a print document with a data matrix barcode in it. I am creating a variable barcode based on data from a variable field in a CSV file. Typical data looks like the below:

CAVAP055035643375001216P7B2W020060781204PLF30P7B2W01000000000000

I’m inserting it exactly as shown. However, when I print it, it doesn’t scan. When I compare it to expected output, it is close but not exact. I’ve tried using each endcoding option with no luck.

Do I need to add in the non-readable characters?

Any input would be helpful.

Thanks,

I’ve been doing some tests and when I use that exact string in the barcode script with TEXT encoding on the barcode, the resulting barcode works perfectly. See image below.

Are you sure you’re displaying the entire barcode on the page? By default, when you add a barcode object, it doesn’t necessarily match the size of the barcode itself. You need to either resize the box or set the Scale to Proportional.

Thank you AlbertsN.

I’m still having problems though. I am originally passing the string through variable field set up in datamapper. I tested yours out but it still isn’t working. See screen shots below:

I am expecting something more like mine without the Cross/Cartesian plane.

Any other thoughts on it?

It really looks like the Auto Detect Encoding option is just not picking up the right encoding for this data. I’m running into the same issue when using that. Just won’t scan.

TEXT encoding gives the output like mine above with 4 squares. But C40 encoding gives an output more like what you want (single square) and is still scannable by my devices.