m m
Technical Support
m
OfficeQ Error Return VBA Code Declarations

The following lists show error codes that can be returned from the OfficeQ6 functions.

The reserved range of errors returned is:  -1999 thru -1   -   never 0 or positive

The errors are grouped by the count of digits.  Generally:

Errors in the range of -999 to -1 are typically serious enough that the condition causing the error needs to be corrected.  Some errors (-105, -115) may leave a portion of the data collected (such as a single record) unuseable - but remaining data is OK.

Errors in range -512 to -560 are as returned from Intuit's QBXML API.

Errors in range: -1999 to -1000 are warnings.  They are not serious and processing can typically continue.


Public Const QBERROR_NO_ERROR                   =     0
Public Const QBERROR_UNKNOWN_ERROR              =    -1
Public Const QBERROR_USER_ABORT                 =    -2
Public Const QBERROR_INTERNAL_MATH_ERROR        =    -4

Public Const QBERROR_INTERNAL_ACCESS_VIOLATION  =    -5
Public Const QBERROR_DLL_PROGRAM_LOGIC          =    -8
Public Const QBERROR_STACK_OVERFLOW             =   -10
Public Const QBERROR_OUT_OF_MEMORY              =   -11

Public Const QBERROR_OPERATING_SYSTEM_GENERIC   =   -16
Public Const QBERROR_FILE_TYPE_ILLEGAL          =   -26
Public Const QBERROR_FILE_DOESNT_EXIST          =   -30
Public Const QBERROR_FILE_CANT_BE_OPENED        =   -35

Public Const QBERROR_FILE_CANT_BE_READ          =   -45
Public Const QBERROR_FILE_GENERIC               =   -48
Public Const QBERROR_FILE_WRONG_QBVERSION       =   -55
Public Const QBERROR_FILE_REBUILD_FILE          =   -68

Public Const QBERROR_TRANLINE_ORIGKEY_TOO_LARGE =   -70
Public Const QBERROR_INVALID_DATE_ARG           =   -74
Public Const QBERROR_CRITICAL_TAG               =   -80
Public Const QBERROR_FILE_NOT_READ              =  -102

Public Const QBERROR_RECORD_BAD_INDEX           =  -105
Public Const QBERROR_RECORD_BAD_KEY             =  -115

  ' -560 to -512 do not have constants - see table below

Public Const QBWARNING_RECORDTYPE_DISABLED      = -1025
Public Const QBWARNING_VIRTUAL_MEMORY_LOW       = -1050
Public Const QBWARNING_NONCRITICAL_TAG          = -1100
Public Const QBWARNING_RECORD_EXTRA_FIELDS      = -1300



OfficeQ6 Error Codes -

 

  Freq - * = common error that your code should deal with

          dblx = should not occur - indicates error in DataBlox code - please let us know


OfficeQ6
Code

Intuit's qbXML

HRESULT

Freq

Intuit's Message [DataBlox Comments, where appropriate]

-512

0x80040400

dblx

QuickBooks found an error when parsing the provided XML text stream.  [If this occurs, please report it to DataBlox.  It is an error in our code.]

-513

0x80040401


Could not access QuickBooks (Failure in attempt to connect).

-514

0x80040402


Unexpected error. Check the qbsdklog.txt file for possible additional information.

-515

0x80040403

*

Could not open the specified QuickBooks company file.

-516

0x80040404


The version of QuickBooks currently running does not support qbXML. [Starting with QB2006, all versions of QB support qbXML]

-517

0x80040405


qbXML components have not been installed.  [Should never occur with 2006 or later.  All versions of QB install qbXML components when program is installed]

-518

0x80040406


Could not determine the version of the QuickBooks company data file, or the data file has been modified and requires a newer version of QuickBooks. [Often occurs on networks where a workstation has updated file to newer version, but other workstations have older versions of QB]

-519

0x80040407


The installation of QuickBooks appears to be incomplete.  Please reinstall QuickBooks.

-520

0x80040408

*

Could not start QuickBooks.

-521

0x80040409

*

The current version of QuickBooks cannot work with the specified company data file.

-522

0x8004040A

*

QuickBooks company data file is already open and it is different from the one requested.

-523

0x8004040B


Could not get the name of the current QuickBooks company data file.

-524

0x8004040C

dblx

BeginSession method has not been called or it did not succeed.

-525

0x8004040D

dblx

The ticket parameter is invalid.

-526

0x8004040E


There is not enough memory to complete the request.

-527

0x8004040F

dblx

The OpenConnection method has not been called.

-528

0x80040410

*

The QuickBooks company data file is currently open in a mode other than the one specified by your application.

-529

0x80040411

dblx

Before calling the BeginSession method, you must call the EndSession method to terminate the current session.*

-530

0x80040412

dblx

You cannot make multiple successive calls to the OpenConnection method. Call CloseConnection before calling OpenConnection again.

-531

0x80040413

dblx

QuickBooks does not support the rollbackOnError value of the onError attribute.

-532

0x80040414

*

A modal dialog box is showing in the QuickBooks user interface.  Your application cannot access QuickBooks until the user dismisses the dialog box. [Note that dialogs often occur at unexpected times - such as monthly reminders to check for updates or random messages selling additional services]

-533

0x80040415

dblx

A call to the OpenConnection method must include the name of your application.

-534

0x80040416

*

If QuickBooks is not running, a call to the BeginSession method must include the name of the QuickBooks company data file.

-535

0x80040417

*

If the QuickBooks company data file is not open, a call to the BeginSession method must include the name of the data file.

-536

0x80040418

*

This application has not accessed the QuickBooks company data file before.  Only the QuickBooks administrator can grant an application permision to access a QuickBooks company data file for the first time.

-537

0x80040419


The application's certificate is invalid.  An application must have a valid certificate to access QuickBooks company data files.

-538

0x8004041A

*

This application does not have permission to access this QuickBooks company data file.  The QuickBooks administrator can grant access permission through the Integrated Application preferences.

-539

0x8004041B


Unable to lock the necessary information to allow this application to access this company data file.  Try again later. [This error apparently only occurs with versions of QB prior to 2006]

-540

0x8004041C

*

An internal QuickBooks error occurred while trying to access the QuickBooks company data file.  [With QB2006, this error occurred when a released version of QB attempted to open a file created with the most recent beta version of QB2006.]

-541

0x8004041D

*

This application is not allowed to log into this QuickBooks company data file automatically.  The QuickBooks administrator can grant permission for automatic login through the Integrated Application preferences.  [Note that 'automatic login' means that the QuickBooks program itself will be started automatically if needed when you attempt to open the file.]

-542

0x8004041E


This application's certificate is expired.  If you want to allow the application to log into QuickBooks automatically, log into QuickBooks and try again.  The click Allow Always when you are notified that the certificate has expired.

-543

0x8004041F


QuickBooks Basic (flavor) cannot accept XML requests.  Another product in the QuickBooks line, such as QuickBooks Pro or Premier, 2002 or later, is required. [Only applied to versions prior to 2006.  For QB2006 and later, all versions are supported]

-544

0x80040420

*

The QuickBooks user has denied access.

-545

0x80040421


The returned text is passed via the qbXML COM Request Processor directly from QuickBooks to your application and is not issued by the qbXML COM Request Processor itself.  You may find it useful to copy the text verbatim to your message window. [No idea what this means!  Probably relevant only with earlier versions of qbXML]

-546

0x80040422


This application requires Single User file access mode and there is already another application sharing data with this QuickBooks company data file.

-547

0x80040423

dblx

The version of qbXML that was requested is not supported or in unknown.  [Should never occur with a 2005 or newer file.  Please report if it does.  Will definitely occur with any pre 2005 file.]

-548

0x80040424


QuickBooks did not finish its initialization.  Please try again later.

-549

0x80040425

dblx

Invalid parameter.

-550

0x80040426


Scripts are not allowed to call QBXMLRP.

-551

0x80040427


The QuickBooks application needs to be registered.

-552

0x80040428


The version of QBXML that was requested is not supported by this version of the QBXMLRP library.

-553

0x80040429


The message set requested cannot be processed through the API that was called.

-554

0x8004042A


This call may not be made from a remote system.

-555

0x8004042B


Unsupported interface.

-556

0x8004042C


Certificate has been revoked.

-557

0x8004042D

*

QuickBooks did not finish opening the data file while launching its UI, and we decided to give up.  Perhaps the user did not complete the QuickBooks login process.

-558

0x8004042E

dblx

This call cannot be made after calling "BeginSession" and before calling "EndSession".

-559

0x8004042F


The requested connection type could not be found.

-560

0x80040430

*

This application is unable to log into this QuickBooks company file automatically.  [The user did not click the checkbox to for automatic logins]


*