
Brother B-PAC SDK Error Codes
b-PAC is a powerful SDK allowing developers to integrate and write software with Brother P-touch series label makers.
Error Codes
Below are the possible error codes generated by the SDK from the b-PAC 3.1 SDK help document.
Error Code | Interface | Method | Description | |
---|---|---|---|---|
Decimal | Hexadecimal | |||
0 | 0x00000000 | - | - | (No Errors) |
1 | 0x00000001 | - | - | The specified file is not found |
2 | 0x00000002 | - | - | The specified file cannot be saved |
3 | 0x00000003 | - | - | The path of the specified file is invalid |
4 | 0x00000004 | - | - | The specified file cannot be opened |
5 | 0x00000005 | - | - | The specified value is out of range |
6 | 0x00000006 | - | - | The specified index is incorrect (Starting index is incorrect) (Incorrect object insertion position) |
7 | 0x00000007 | - | - | The specified object does not exist (The object with the specified object name does not exist) (Invalid object name was specified) |
8 | 0x00000008 | - | - | The sheet with the specified sheet name does not exist |
9 | 0x00000009 | - | - | Failed to print |
10 | 0x0000000A | - | - | Any object doesn't exist |
11 | 0x0000000B | - | - | The currently specified printer is not supported |
12 | 0x0000000C | - | - | Not supported |
13 | 0x0000000D | - | - | Failed to create printer DC |
14 | 0x0000000E | - | - | Template file is not open |
15 | 0x0000000F | - | - | File type is incorrect |
16 | 0x00000010 | - | - | Invalid object is specified (Invalid object name is specified) |
17 | 0x00000011 | - | - | Invalid type is specified |
18 | 0x00000012 | - | - | Invalid data is specified |
19 | 0x00000013 | - | - | Invalid data type is specified |
20 | 0x00000014 | - | - | Not linked to the document |
22 | 0x00000016 | - | - | Insufficient memory (Referenced memory is NULL) |
23 | 0x00000017 | - | - | Non-editable object |
24 | 0x00000018 | - | - | Insufficient buffer |
25 | 0x00000019 | - | - | Referenced memory is NULL |
101 | 0x00000065 | - | - | No media |
102 | 0x00000066 | - | - | End of media |
103 | 0x00000067 | - | - | Tape cutter jam |
104 | 0x00000068 | - | - | Weak batteries |
105 | 0x00000069 | - | - | Printer is busy (while printing or being cleaned) |
106 | 0x0000006A | - | - | Turned off |
107 | 0x0000006B | - | - | High-voltage adapter |
108 | 0x0000006C | - | - | Replace the media |
109 | 0x0000006D | - | - | Expansion buffer full |
110 | 0x0000006E | - | - | Communication error |
111 | 0x0000006F | - | - | Communication buffer full |
112 | 0x00000070 | - | - | Cover open |
113 | 0x00000071 | - | - | Cancel key |
114 | 0x00000072 | - | - | Offline |
197 | 0x000000C5 | - | - | Offline |
198 | 0x000000C6 | - | - | General error value |
199 | 0x000000C7 | - | - | Invalid error value |
301 | 0x0000012D | - | - | The values for the print parameter and width of tape in the cassette are different |
302 | 0x0000012E | - | - | The BMP file for the print image data is in an unsupported BMP file format. (Not two-color data, not Windows bitmap, pixel values arranged from top to bottom, compressed, image with portrait orientation, etc.) |
303 | 0x0000012F | - | - | The print image data file cannot be opened |
304 | 0x00000130 | - | - | Received other data while waiting to receive the print status notifying that printing is finished |
305 | 0x00000131 | - | - | Invalid hexadecimal string was entered |
306 | 0x00000132 | - | - | Invalid tape width is specified |
307 | 0x00000133 | - | - | The setup-completed block range was specified |
308 | 0x00000134 | - | - | The UID parameter's value is incorrect |
309 | 0x00000135 | - | - | The argument's value is incorrect |
310 | 0x00000136 | - | - | The specified value is too large |
311 | 0x00000137 | - | - | Failed to initialize the USB driver |
312 | 0x00000138 | - | - | USB connection error |
313 | 0x00000139 | - | - | USB data transmission error |
314 | 0x0000013A | - | - | USB reception timeout |
315 | 0x0000013B | - | - | USB data reception error |
321 | 0x00000141 | - | - | The received data cannot be interpreted |
322 | 0x00000142 | - | - | The tag write range is incorrect (The range with the write data size from the initial write block exceeds the user data range of the tag memory) |
323 | 0x00000143 | - | - | Open() is not executed |
324 | 0x00000144 | - | - | Incorrect flag value |
325 | 0x00000145 | - | - | Incorrect write data |
326 | 0x00000146 | - | - | Incorrect retry count |
327 | 0x00000147 | - | - | SZ tape has not been set |
328 | 0x00000148 | - | - | Open() was called with invalid argument |
329 | 0x00000149 | - | - | Specified printer is not available |
330 | 0x0000014A | - | - | Failed to create the b-PAC object |
333 | 0x0000014D | - | - | b-PAC Method Save() error |
334 | 0x0000014E | - | - | b-PAC Method Export() error |
335 | 0x0000014F | - | - | b-PAC Method GetText() error |
336 | 0x00000150 | - | - | b-PAC Method GetFontInfo() error |
337 | 0x00000151 | - | - | b-PAC Method SetText() error |
338 | 0x00000152 | - | - | b-PAC Method SetFontInfo() error |
339 | 0x00000153 | - | - | b-PAC Method SetBarcodeData() error |
340 | 0x00000154 | - | - | b-PAC Method ReplaceImageFile() error |
341 | 0x00000155 | - | - | The b-PAC object is not created (Open() is not called) |
360 | 0x00000168 | - | - | Cannot access because the port is open |
361 | 0x00000169 | - | - | Cannot access because the port is open |
362 | 0x0000016A | - | - | Failed to communicate with the port |
363 | 0x0000016B | - | - | Failed to deliver data to the port |
364 | 0x0000016C | - | - | Failure due to communication timeout |
365 | 0x0000016D | - | - | Failed in receiving data from the port |
366 | 0x0000016E | - | - | Failed to close the port |
390 | 0x00000186 | - | Internal error | |
17039361 | 0x01040001 | Document | Export | The specified resolution is incorrect |
17170433 | 0x01060001 | Document | GetImageData | The specified width is incorrect |
17170434 | 0x01060002 | Document | GetImageData | The specified height is incorrect |
17170435 | 0x01060003 | Document | GetImageData | Failed to create image data |
17170436 | 0x01060004 | Document | GetImageData | Failed to convert image data |
17235969 | 0x01070001 | Document | SetPrinter | The printer with the specified printer name does not exist |
17235970 | 0x01070002 | Document | SetPrinter | Failed to change to the printer with the specified printer name |
17367041 | 0x01090001 | Document | SetMediaById | The media with the specified media ID is not supported |
17498113 | 0x010B0001 | Document | PrintOut | The number of copies is incorrect |
17498114 | 0x010B0002 | Document | PrintOut | ImageObject rendering failure |
17498115 | 0x010B0003 | Document | PrintOut | Failed to rotate image |
17498117 | 0x010B0005 | Document | PrintOut | Failed to covert sheet's resolution |
17760257 | 0x010F0001 | Document | GetText | Failed in acquiring text |
17825793 | 0x01100001 | Document | SetText | Failed to set text |
17956865 | 0x01120001 | Document | GetTextIndex | Failed to acquire index |
33619969 | 0x02010001 | Objects | Insert | Failed to create object to be inserted |
33619970 | 0x02010002 | Objects | Insert | Position that cannot be inserted |
50593793 | 0x03040001 | Printer | GetMediaId | Failed in acquiring tape code |
50593794 | 0x03040002 | Printer | GetMediaId | Failed to create a temporary printer object |
50593795 | 0x03040003 | Printer | GetMediaId | The printer is offline |
50790401 | 0x03070001 | Printer | IsMediaIdSupported | None of the currently supported media is present |
50790402 | 0x03070002 | Printer | IsMediaIdSupported | Failed to access the array |
50790403 | 0x03070003 | Printer | IsMediaIdSupported | Failed in acquiring array's LowerBound |
50790404 | 0x03070004 | Printer | IsMediaIdSupported | Failed in acquiring array's UpperBound |
50790405 | 0x03070005 | Printer | IsMediaIdSupported | Failed to release the array |
50987009 | 0x030A0001 | Printer | IsPrinterOnline | Failed in acquiring printer handler |
285671425 | 0x11070001 | Object | SetFontStrikeout | Failed to set Strikeout |
285802497 | 0x11090001 | Object | SetFontUnderline | Failed to set Underline |
302120961 | 0x12020001 | Object | SetFontName | Incorrect font name |
302120962 | 0x12020002 | Object | SetFontName | Font update failure |
302252033 | 0x12040001 | Object | SetFontBold | Font update failure |
302383105 | 0x12060001 | Object | SetFontEffect | Font update failure |
302514177 | 0x12080001 | Object | SetFontItalics | Font update failure |
302645249 | 0x120A0001 | Object | SetFontMaxPoint | Font update failure |
318832641 | 0x13010001 | Object | GetAttribute | Addition/subtraction is invalid |
318898177 | 0x13020001 | Object | SetAttibute | Addition/subtraction is invalid |
369164289 | 0x16010001 | Object | GetData | Image data array creation failure |
369164290 | 0x16010002 | Object | GetData | Failed to access image data |
369164291 | 0x16010003 | Object | GetData | Failed to release image data memory |
369229825 | 0x16020001 | Object | SetData | Failure in image switching |
Source: Brother BPAC User Guide v3.1 (Compiled HTML Help file ‘.chm’)
Common Issues
- When creating a new bpac.DocumentClass you get the following or similar error message:
Error Message ‘System.IO.FileNotFoundException: ‘Retrieving the COM class factory for component with CLSID {B940C105-7F01-46FE-BF41-E040B9BDA83D} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).”
Possible Cause: Incorrect bPac architecture installed for project, ie x64 Project and x86 b-PAC version installed.
Solution: Install x64 b-PACSDK or Vice Versa - No SDK Error, but print job not appearing in print que.
Possible Cause: Printer not supported by x64 b-PAC SDK.
Solution: Confirm if using x64 SDK, if so confirm if your printer is supported. Some older printers only have x32 support.
https://www.brother.co.jp/eng/dev/bpac/environment/index.aspx
Did you find this article useful or do you have different issue?
Leave us a comment below