Datamatrix 2D barcode error messages
| Appendix H. Error messages |

## Datamatrix 2D barcode error messages

### Note

These error messages are not yet localized

Table H.3. English error messages

Error code | Error message
--- | ---
`1` | Data is too long to fit specified symbol size
`2` | The BASE256 data is too long to fit available symbol size
`3` | Data must have at least three characters for C40 encodation
`4` | Data must have at least three characters for TEXT encodation
`5` | Internal error: (-5) Trying to read source data past the end
`6` | Internal error: (-6) Trying to look ahead in data past the end
`7` | Internal error: (-7) Logic error in TEXT/C40 encodation (impossible branch)
`8` | The given data can not be encoded using X12 encodation.
`9` | The "tilde" encoded data is not valid.
`10` | Data must have at least three characters for X12 encodation
`11` | Specified data can not be encoded with datamatrix 000 140
`12` | Can not create image
`13` | Invalid color specification
`14` | Internal error: (-14) Index for 140 bit placement matrix out of bounds
`15` | This PHP installation does not support the chosen image encoding format
`16` | Internal error: (-16) Cannot instantiate ReedSolomon
`20` | The specification for shape of matrix is out of bounds (0,29)
`21` | Cannot open the data file specifying bit placement for Datamatrix 200
`22` | Datafile for bit placement is corrupt, crc checks fails.
`23` | Internal error: (-23) Output matrice is not big enough for mapping matrice
`24` | Internal error: (-24) Bit sequence to be placed is too short for the chosen output matrice
`25` | Internal error: (-25) Shape index out of bounds for bit placement
`26` | Cannot open the data file specifying bit placement for Datamatrix 140
`30` | The symbol size specified for ECC140 type Datamatrix is not valid
`31` | Data is to long to fit into any available matrice size for datamatrix 140
`32` | Internal error: (-32) Cannot instantiate MasterRandom
`33` | Internal error: (-33) Failed to randomize 140 bit stream
`34` | Cannot open file %s for writing
`35` | Cannot write to file %s
`99` | EDIFACT encodation not implemented
`100` | JpGraph Error: HTTP headers have already been sent. Caused by output from file %s at line %d. Explanation: HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpreted as text by the browser and show up as junk text). Most likely you have some text in your script before the call to Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser. For example it is a common mistake to leave a blank line before the opening

| Up |
| Home |