1

I am trying to build a vb application that can add invoice to QuickBooks. But i am having trouble in starting the connection to QBs at start.

I download and install a QuickBooks Premier 2012-13, but using Trial version. I also download the QuickBooks SDK 12.0.

However, when i start testing the connection with QuickBooks with QuickBooks open. I got this error message: COMException was unhandled The requested connection type could not be found.

Here is what I got in code:

Dim strTicket As String

Dim qbxmlcom As New QBXMLRP2Lib.RequestProcessor2

qbxmlcom.OpenConnection2("", "Testing App", QBXMLRP2Lib.QBXMLRPConnectionType.localQBD)

strTicket = qbxmlcom.BeginSession("", QBXMLRP2Lib.QBFileMode.qbFileOpenDoNotCare)

I having no idea what i got wrong. Is there any setting I missed? I even try to use SDKTestPlus3 to test the connection, it got the same error message.

Can anyone give me some idea of what i got wrong?

Community
  • 1
  • 1
Kenneth
  • 11
  • 3

2 Answers2

3

You need to have Quickbooks launched with a company file open, otherwise you need to provide the path to the file in qbxmlcom.BeginSession("{Company File Here}", QBXMLRP2Lib.QBFileMode.qbFileOpenDoNotCare)

Squish_E
  • 31
  • 2
1

While this article refers to Time Tracker, I believe it may be supportive of your question.

Note specifically the following words (emphasis mine):

QuickBooks Free Edition, QuickBooks Simple Start and similar might not work by design. This is a technical limitation imposed by Intuit on their product suite, completely independent of TimeTTracker MX2, QBE. Please contact Intuit in order to confirm whether your particular QuickBooks edition is supposed to include third-party application integration (qbXML) capabilities

It sounds as though Intuit has a policy in place of enabling/disabling integration features based on the specific edition. If they have crippled the Premier Trial in such a way, this would explain your COMException.

Rich C
  • 802
  • 2
  • 13
  • 33