Quantcast
Channel: FLEXquarters.com Limited
Viewing all 313 articles
Browse latest View live

Troubleshooting - How to adjust value of a stock item without adj...

$
0
0

Troubleshooting - How to adjust value of a stock item without adjusting stock quantity

Problem Description:

Can I adjust the value of a stock item without adjusting the stock quantity?


Solutions:

Yes, you can adjust the value of a stock item without adjusting the stock quantity. Here is an example:

This item has a COGS Average Cost of $69.73429:

 
http://support.flexquarters.com/esupport/newimages/StockQuantity/step1.png

Using QODBC, I adjusted the opening balance equity cost of the stock item by $250.00 using the following SQL insert statement:

INSERT INTO "InventoryAdjustmentLine" ("AccountRefFullName", "TxnDate", "RefNumber", "Memo", "InventoryAdjustmentLineItemRefFullName", "InventoryAdjustmentLineValueAdjustmentNewValue", "FQSaveToCache") VALUES ('Opening Bal Equity', {d'2007-05-23'}, '110', 'Value Adj 250', 'Wood Door:Exterior', 250.0, 0) 


http://support.flexquarters.com/esupport/newimages/StockQuantity/step2.png

 

This item now has a COGS Average Cost of $106.69857:

 

http://support.flexquarters.com/esupport/newimages/StockQuantity/step3.png

The value adjustment details can be seen in the Inventory Valuation Detail: 


http://support.flexquarters.com/esupport/newimages/StockQuantity/step4.png

Troubleshooting - Getting [QODBC] Not Supported error when try to...

$
0
0

Troubleshooting - Getting [QODBC] Not Supported error when try to modify TxnDeleted table

Problem Description:

I am trying to modify txndeleted table from quickbooks in QODBC but getting "[QODBC] Not Supported" error. 

 

http://support.flexquarters.com/esupport/newimages/TxnDeleted/step1.png

 

Solutions:

TxnDeleted table is read only table. You can't modify/delete its content.

Insert/Update/Delete feature in TxnDeleted table is not available through the Intuit SDK so they are not available through QODBC.

QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn’t expose one feature to application in SDK, QODBC could not do it either.   

Troubleshooting - Cannot use alias in MS Query

$
0
0

Troubleshooting - Cannot use alias in MS Query

Problem Description:

I am getting the below error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.

[sql syntax error] Expected lexical element not found:=

Please see the following SQL statement:

SELECT Item.Name AS SKU, Item.CustomFieldColor AS Item, Item.Description, Item.SalesPrice, Item.PurchaseCost, Item.QuantityOnHand FROM Item Item WHERE (Item.Name<>'IFR' And Item.Name<>'OTW') AND (Item.Description<>'') AND (Item.Type='ItemInventory') ORDER BY Item.Name

The above statement is working fine in VB Demo, MS Access. But I am facing issue in MS Excel.  


http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step1.PNG

 

Solutions:

MS Excel has some issue when you alias in the query. When you try to use Microsoft Query to return data from some third-party databases into Microsoft Excel, apostrophes (') around alias names can cause the query to fail.

Please refer below mentioned link to resolve this issue:

Using a field alias in Query does not work with some third-party databases

You can either apply hot fix or change registry values.

Result after changing registry values & execute query again:

http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step2.PNG

Troubleshooting - Can QODBC / QRemote run as a Service

$
0
0

Troubleshooting - Can QODBC / QRemote run as a Service

Problem Description:

How do I run qodbc as windows services in the background? I notice it required QuickBooks to be logged and windows server 2008 to be logon.

Solutions:

QODBC and QuickBooks is a desktop based application and cannot be run as a windows service. QODBC uses QuickBooks SDK, and QuickBooks SDK uses QuickBooks Application to get data from company file.

QuickBooks SDK requires a active desktop session ( someone to be logged in ) to the machine because QuickBooks is a desktop base application.

QRemoteServer is not a service base application and is a desktop based windows application cannot be run as a service.

You may try DCOM, which may work on unattended windows ( But as QuickBooks is a desktop base application, sometime it has issues with closing the company file. )

I kindly suggest you to refer below article for how to setup DCOM sever:

How to setup QODBC DCOM Server

Troubleshooting - Can QODBC Online have region wise fields?

$
0
0

Troubleshooting - Can QODBC Online have region wise fields?

Problem Description:

Can QODBC Online have region wise fields like QODBC Desktop driver?

Solutions:

QuickBooks online API is supporting only 1 region and thus we had only 1 region in QODBC Online.

There is not separate API or fields for Region. Yes there are different rules for taxes, but Intuit call it as Global Tax.

We will manage those by adding Tax fields ( common for all region), its the user who need to provide proper tax code ( online and header).

So there will be no difference in the fields only difference will be change in query, CA / UK user need to specify two more fields for tax.

How to use QODBC with PHP

$
0
0

How to use QODBC with PHP

Instructions about using QODBC with PHP:

Using PHP, whether it's an internal Intranet or on the World Wide Web, requires the Server Edition of QODBC. QuickBooks must be running with the company file open. 

Download Sample

Sample Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>QODBC PHP Script To Display SQL Results</title>
</head>
<body topmargin="3" leftmargin="3" marginheight="0" marginwidth="0" bgcolor="#ffffff" link="#000066" vlink="#000000" alink="#0000ff" text="#000000">
<table border="0" border="0" bgcolor="lightgreen" bordercolor="black" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="2" bordercolor="black" bgcolor="white" cellpadding="5" cellspacing="0">
<thead>
<caption align="top">QODBC PHP Script To Display SQL Results</caption>
<tr>
<th>Row</th>
<?php
set_time_limit(120);

#Connect to a System DSN "QuickBooks Data" with no user or password
$oConnect = odbc_connect("QuickBooks Data QRemote", "", "");

#Set the SQL Statement
$sSQL = "SELECT Top 10 Name,FullName FROM Customer";

#Perform the query
$oResult = odbc_exec($oConnect, $sSQL);
$lFldCnt = 0;
$lFieldCount = odbc_num_fields($oResult);
while ($lFldCnt < $lFieldCount) {
$lFldCnt++;
$sFieldName = odbc_field_name($oResult, $lFldCnt);
print(" <th>$sFieldName</th>\n");
}
?>
</tr>
</thead>
<tbody>
<?php
$lRecCnt = 0;
#Fetch the data from the database
while(odbc_fetch_row($oResult)) {
$lRecCnt++;
print(" <tr>\n");
print(" <td>$lRecCnt</td>\n");
$lFldCnt = 0;
$lFieldCount = odbc_num_fields($oResult);
while ($lFldCnt < $lFieldCount) {
$lFldCnt++;
$sFieldValue = trim(odbc_result($oResult, $lFldCnt));
If ($sFieldValue == "") {
print(" <td> </td>\n");
}
else {
print(" <td valign=\"Top\">$sFieldValue</td>\n");
}
}
print(" </tr>\n");
}
#Close the connection
odbc_close($oConnect);
?>
</tbody>
<tfoot>
<?php
print(" <caption align=\"bottom\">Results of: $sSQL</caption>");
?>
</tfoot>
</table>
</td>
</tr>
</table>
</body>
</html>


Please refer: How to configure QRemote

Please Note: If you have 64 bit application, then you need to use QRemote 64 bit DSN "QuickBooks Data 64-Bit QRemote"

Result in Web Browser:

http://support.flexquarters.com/esupport/newimages/QODBCPHP/step1.PNG

Troubleshooting - Multiple tables exist error in Linked Server

$
0
0

Troubleshooting - Multiple tables exist error in Linked Server

Problem Description:

I am trying to run a query using a sql server database link to Quickbooks using QRemote. I can setup the linked server fine in sql server and the connection has been tested to work. However, we I try to run the query:

SELECT * FROM QRemote...InvoiceLine

The response is:

The OLE DB provider "MSDASQL" for linked server "QRemote" contains multiple tables that match the name "InvoiceLine".

I try the select through VB Demo and it works fine not using the linked database. Please help as to where the issue might be.



Solutions:

You have not configured MSDASQL property for linked server.

The OLE DB provider options for managing linked queries can be set in SQL Server Management Studio. 

http://support.flexquarters.com/esupport/newimages/MultipleTables/step1.png

In Object Explorer, right-click the provider name and select Properties for MSDASQL. First six properties should be enabled, please enable first six properties. 

http://support.flexquarters.com/esupport/newimages/MultipleTables/step2.png

For Multiple tables exist error, "Level zero only" property should be set.   

Troubleshooting - MS Access Crashes Hard On Date Query

$
0
0

Troubleshooting - MS Access Crashes Hard On Date Query

Problem Description:

I've linked all the QODBC tables into an Access 2010 DB. I have created table subset queries on the original tables and would like to do selects based on date ranges - other things too like JOINs - but I'm stuck with this problem. The minute I give Access a date constraint like ReceivePayment.TxnDate >=#11/1/2014# as stated in your "How Dates Are Formatted.." documentation for Access Date formats, Access immediately crashes. No msgs in the brief QODBC log files about the crashes as best I can tell:



Solutions:

I kindly suggest you to try executing below command on VB Demo to see if it can solve the issue: sp_optimizefullsync ALL

This command will bring some data to a local cache to increase retrieval performance for queries. I would like to suggest you to please let run above command completely. Above command may take sometime depends on your records in QuickBooks. It may take 2-5 hours or more depends on the number of records in QuickBooks company file. Please let this command run completely do not kill this command. It is not advisable to kill/close the application while its building the Optimizer file.

After successfully execution of the above command, please create new MS Access Database file & link all tables & execute query again. It should work without any issue.

Please refer: How to Use QODBC with Microsoft Access 2010


Troubleshooting - How to use QODBC for development with Visual St...

$
0
0

Troubleshooting - How to use QODBC for development with Visual Studio

Problem Description:

I am trying to use a demo file for development, but QODBC is not allowing me to do this now that the evaluation period on my development machine has expired. Are there specific settings in the QODBC setup that I need to set?

http://support.flexquarters.com/esupport/newimages/QODBCforDevelopment/step1.png

 

http://support.flexquarters.com/esupport/newimages/QODBCforDevelopment/step2.png

Solutions:

I kindly request you to keep QuickBooks running, Login as Admin to your Sample company file for working with sample company file no need of licensing. You can work with sample file without licenses.

QODBC Read-only edition for QuickBooks Enterprise does not include QRemote License. So after 30 days, you may not be able to use QRemote. Instead of using DSN "QuickBooks Data QRemote", try using "QuickBooks Data" DSN.

If you are using visual studio, change the target to x86 instead of Any cpu.

Instead of running website via IIS run it from visual studio. When you run via visual studio the web application is processed by desktop based application instead of service.

 

Troubleshooting - How to get Alt.Email1,2 & CC Email fields from ...

$
0
0

Troubleshooting - How to get Alt.Email1,2 & CC Email fields from Customer table

Problem Description:

How do I access the alternate email address 1 and 2 and the cc email fields? I don't see them in the customer table.



Solutions:

You can get CC Email details from "Cc" field in the Customer & Entity table.

I'm sorry to inform you that the Alt Email 1 and 2 field is not available through the Intuit SDK so they are not available through QODBC.

QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn’t expose one feature to application in SDK, QODBC could not do it either.

Troubleshooting - How to access QuickBooks Data using FileMaker

$
0
0

Troubleshooting - How to access QuickBooks Data using FileMaker

Problem Description:

I downloaded the trial version of your driver this morning and am really excited about the prospects. I’ve installed it and am able to get the fields and tables to appear in VB Demo, but I am not able to connect using Filemaker Pro.

 

Solutions:

Please follow below mentioned steps for FileaMaker connectivity using QODBC

1) Open FileMaker Pro & click on Browse button.

http://support.flexquarters.com/esupport/newimages/FileMaker/step2.png

2) Please select the ODBC data source.

 http://support.flexquarters.com/esupport/newimages/FileMaker/step3.png

3) Please select the ODBC data source "QuickBooks Data" & click on "continue" button.

http://support.flexquarters.com/esupport/newimages/FileMaker/step3.png

4) Please enter user name & password for ODBC data source. If you have not defined any user name & password, then just click on "OK" button.  

 http://support.flexquarters.com/esupport/newimages/FileMaker/step4.png

5) Select tables & columns which you want to use, then please click on "Insert into SQL Query" & "Execute" button.

http://support.flexquarters.com/esupport/newimages/FileMaker/step5.png


6) Save result & you can see results.


http://support.flexquarters.com/esupport/newimages/FileMaker/step6.png

http://support.flexquarters.com/esupport/newimages/FileMaker/step7.png

Troubleshooting - Freezing QuickBooks, slow query running

$
0
0

Troubleshooting - Freezing QuickBooks, slow query running.

Problem Description:

When I run report query, query works very slow & take about 1-5 mins per simple report like:

"sp_report ARAgingSummary show Current parameters DateFrom={d'2014-11-12'}, DateTo={d'2014-11-12'} where Blank = 'Total'"

Sometimes it freezes QuickBooks so user should restart it.



Solutions:

I would suggest you to enable QODBC status panel via QODBC Setup Screen->Message Window->Select "Display Driver Status" and "Display optimizer Status" options.

 

http://support.flexquarters.com/esupport/newimages/FreezingQuickBooks/step1.png


Then the next time you run a query, if you see “Waiting for QuickBooks”, it means QuickBooks is taking time to process the request. There will be a status panel at the lower right corner of your screen, will be shown a window with information on what QODBC is working at. Please note the step on which QODBC spends the most time or get stuck and share it with us.



If you are getting “Waiting for QuickBooks” which means QuickBooks is taking time for processing request. So we may not provide much help on this issue.

QuickBooks SDK is providing data in XML format & QODBC is displaying it in tabular format. QODBC works by accepting SQL commands from applications through the ODBC interface, then converting those calls to navigational XML commands to the QuickBooks Accounting DBMS and returning record sets that qualify for the query results. QODBC acts as a 'wrapper' around the Intuit SDK so customers can finally get at their QuickBooks data using standard database tools; speeding development time.

All QODBC do is request for the Report information from QuickBooks SDK and QuickBooks is the one processing it and sending the output. QODBC formats that output to data table format.   

Troubleshooting - Scheduled Task Job not working after upgrading ...

$
0
0

Troubleshooting - Scheduled Task Job not working after upgrading QODBC

Problem Description:

We use a software called RemiCrystal to generate reports for emailing. The reports have always worked fine using QB 2013 Pro and QODBC v14 (I think v14). Then we upgraded to QuickBooks 2014 R7P and the QODBC to 15.00.00.305 and since then the automated running of the RemiCrystal tasks has failed on an QODBC request. If I run the job manually, the reports are generated correctly and emailed out with no issues, however the schedule run of the job is not gathering data from QuickBooks so the report times out after 15 minutes and exits.

I have generated the ODBC Trace Logs and I can see in the log that when the job runs manually, QODBC is triggered and starts to connect to the QuickBooks datafile, then does not process any requests.rence in the format of the data. Can you give me an idea of what to look for?

Solutions:

I think you are using DCOM Server to run sheduled task job.

As an alternative to DCOM sever, I would suggest you to use QRemote, please refer below articles for more information: How to create Link Server with MS SQL 2005/2008/2012 64-Bit Using QODBC/QRemote

I would like to inform you that DCOM is an obsolete project and development/bug fixes are no more possible. While QRemote is current project development/bug fixes is possible.

DCOM configuration is tricky & hard, while QRemote configuration is easy.

DCOM is work with 32-Bit application only, It will not work with 64-Bit application. While QRemote will work with both 32-Bit & 64-Bit applications.

If you are still want to use DCOM, then I would like to inform you that you need to setup DCOM server manually again. I kindly request you to please refer below mentioned articles for configuring DCOM Server. Please refer manual configuration steps & try again:

How to setup QODBC DCOM Server

DCom Option / Server Edition Tab missing in QODBC Setup Tab

Troubleshooting - QB Begin Session Failed. Error = 80040417

$
0
0

Troubleshooting - QB Begin Session Failed. Error = 80040417

Problem Description:

When using your QODBC Driver with my custom application, coded in java, the application is able to connect and retrieve data if Quickbooks is running with the company file already open.

However, when the QuickBooks program is NOT running on the local machine, the QODBC is supposed to be able to connect to the database on its own, in the background.

I am consistently getting "80040417" error.

Begin Session Failed. S0000 00000 [QODBC] QB Begin Session Failed. Error = 80040417, If the QuickBooks company data file is not open, a call to the "BeginSession" method must include the name of the data file.

Please let me know what I am doing wrong.



Solutions:

I would like to inform you that 80040417 error is occurring when company file path specified on QODBC Setup Screen is different from Company file opened in QuickBooks.

I kindly request you to please verify your auto login setup, after you set auto-login, you can access QuickBooks without open it. Please refer below article for more information:

How to setup QODBC for Auto-login into QuickBooks

How to setup QODBC Driver to auto-connect to QuickBooks. (Video)

When you setup Auto-login, I kindly suggest you to verify the company file path on QODBC and QuickBooks, these two paths should be the same. You can find QODBC company file path via QODBC setup screen -> General tab. You could find the QuickBooks company file via QuickBooks UI, press F2 key you will see the file information.

Please note, you can connect to only one company file at a time, if you want to connect to another company file you need to disconnect the connection from your application and connect to another company file.

Troubleshooting : MS Access as middleware is not working with MS ...

$
0
0

Troubleshooting : MS Access as middleware is not working with MS SQL Server

Problem Description:

I am trying to use MS Access as a middleware with MS SQL Server. I have created MS Access database & linked all QODBC tables through QRemote DSN, After that I have created MS Access DSN which is pointing to newly created database. After that I have created linked server which pointing MS Access DSN. Linked Server is created but when I run query on linked server, I am getting below error: 

http://support.flexquarters.com/esupport/newimages/middlewarenotworking/step1.png

Please help me to resolve this error.

 

Solutions:

I would like to inform you that this error is not related to QODBC. You are facing this issue because MS SQL Server is log on as "Network Service".

You need to change this setting to "Local System".

You can change it by following below steps:

Start >> Run >> type "services.msc" click on "OK"

Find SQL Server (MSSQLSERVER), Open SQL Server (MSSQLSERVER) by double click on it & navigate Log On tab & choose log on as "Local System Account" and apply the changes by click on ok button & test again.

http://support.flexquarters.com/esupport/newimages/middlewarenotworking/step2.png


Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUES...

$
0
0

Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST

Problem Description:

I have QuickBooks 2014 version & I am using QODBC latest version. I have a problem in querying customer table using QODBC. 

QODBC driver consistently gets stuck on "Find Next Record" at record #9000. Have tried the following: 

- Reset optimizer file

- Rebuild QuickBooks company file

- sp_optimizefullsync Customer: this crashes QuickBooks or does not complete properly. There are still records missing from the Customer table that appear in QuickBooks.

- Query customer table using UNOPTIMIZED keyword, unoptimized hangs at about record 9000 and does not return the Customer

On QuickBooks SDK logs, I noticed below error:

20140923.175608 E 3888 QBSDKProcessRequest *** INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST ***.

Solutions:

There might be some internal error occurred in processing request. To resolve this error you need to get in touch with Intuit.

I kindly request you to please restart QuickBooks & try again. As you are saying that query stuck on #9000. There might be some issue on company file. I kindly request you please test the same on another company file or in sample company file to see if issue is related to company file or not.

Also try changing the Iterator value to 100 on QODBC Setup Screen--Advanced Tab

If you are still facing the same error there might be issue with your company file and would require repairing the company file & you need to get in touch with Intuit.

Troubleshooting : Error 3250 - This feature is not enabled or not...

$
0
0

Troubleshooting : Error 3250 - This feature is not enabled or not available in this version of QuickBooks.

Problem Description:

I am getting error "Error 3250 - This feature is not enabled or not available in this version of QuickBooks." while I am trying to insert Invoice in QuickBooks using QODBC. Below is my insert statement:

INSERT INTO InvoiceLine (CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount,InvoiceLineGroupItemGroupRefListID,InvoiceLineGroupQuantity , InvoiceLineSalesTaxCodeRefListID,InvoiceLineLotNumber,FQSaveToCache) VALUES ('670000-1071517519', '91047', '320000-1071525597', 'POWERTRAK-2000', 200.00000, 200.00,'300000-933272656',11, '20000-999022286','L123',0)

http://support.flexquarters.com/esupport/newimages/Error 3250/Step1.png

Solutions:

I would like to inform you that QuickBooks does not allow to use LotNumber when Advanced Inventory is Turned Off, QuickBooks SDK will throw the error "This feature is not enabled or not available in this version of QuickBooks."

The Error message will depend on the operation you are performing.

In this case you need to enable Advance Inventory module & try again.

There might be other possibility of this error. Please refer below possibilities:

If Units of Measure feature is not enabled & you are trying to use it in your query.

If Class feature is not enabled & you are trying to use it in your query. The QuickBooks company file that you are using is not set to allow assigning of classes to names. This preference must be turned on in order to include the ClassRef section of your query.

To resolve this error, You need to enable feature which you are using from QuickBooks & try again.   

Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a si...

$
0
0

Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a simple value

Problem Description 1:

we have a customer trying to import a credit memo from our database into Quickbooks using a vb.net program. They are getting the following error: ERROR [42S00] [QODBC] Insert value must be a simple value. We have other customers that are able to import credit memos, and I have compared the data being imported and cannot find any difference in the format of the data. Can you give me an idea of what to look for?

Solutions 1:

I would like to inform you that you are getting error " [QODBC] Insert value must be a simple value" because you are not passing value in the correct format. This error is generated by VB code, It is not QODBC error.

Please verify your insert statement & try again. Please refer below mentioned link for sample VB code:

Examples of How to Use QODBC via Visual Basic

Please refer below mentioned article for creating credit memo:

How to create Credit Memos

Problem Description 2:

When I go to insert a Customer I receive an error saying [QODBC] Insert value must be a simple value. I need to know what I am doing wrong to insert a new customer.

Please refer below code which I am using:

Public Sub InsertNewCustomers()

Dim name As String

Dim firstName As String

Dim lastName As String

Dim companyName As String

Dim contact As String

Dim billAddressAddr1 As String

Dim billAddressAddr2 As String

Dim billAddressAddr3 As String

Dim billAddressCity As String

Dim billAddressState As String

Dim addressPostalCode As String

Dim phone As String

Dim fax As String

Dim email As String

'Testing to Insert, remove before going LIVE!!!*************************************************************************************************

name = "ABC XYZ"

firstName = "ABC"

lastName = "XYZ"

companyName = "Test Company"

contact = "Jerry"

billAddressAddr1 = "503 Test Club"

billAddressAddr2 = ""

billAddressAddr3 = ""

billAddressCity = "Test City"

billAddressState = "OK"

addressPostalCode = "11644"

phone = "111-111-1111"

fax = ""

email = ""

'*********************************************************************************************************************

Dim conn As ADODB.Connection

Dim rs As ADODB.Recordset

conn = New ADODB.Connection

conn.ConnectionString = "DSN=Quickbooks Data;OLE DB Services=-2;"

conn.Open()

Try

' Create new record.

rs = conn.Execute( _

"INSERT INTO customer(name, firstname, lastname, companyName, contact, BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode, Phone, Fax, Email)VALUES(name, firstname, lastname, companyName, contact, billAddressAddr1, billAddressAddr2, billAddressAddr3, billAddressCity, billAddressState, billAddressPostalCode, phone, fax, email)")

LogEntry("New Customer Added to QB")

Catch e As Exception

MsgBox(e.ToString)

End Try

' Close the database.

rs.Close()

rs = Nothing

conn.Close()

conn = Nothing

'*********************************************************************************************************************

End Sub

Solutions 2:

I would like to inform you that you are getting error " [QODBC] Insert value must be a simple value" because you are not passing value in the correct format. This error is generated by VBA code, It is not QODBC error.

There is a problem in your Insert statement you can not pass value directly. Your insert statement should be like as below.

INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " & _

" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')

Please refer below updated code & try to insert with this code.

Public Sub InsertNewCustomers()

Dim name As String

Dim firstName As String

Dim lastName As String

Dim companyName As String

Dim contact As String

Dim billAddressAddr1 As String

Dim billAddressAddr2 As String

Dim billAddressAddr3 As String

Dim billAddressCity As String

Dim billAddressState As String

Dim addressPostalCode As String

Dim phone As String

Dim fax As String

Dim email As String

'Testing to Insert, remove before going LIVE!!!*************************************************************************************************

name = "ABC XYZ"

firstName = "ABC"

lastName = "XYZ"

companyName = "Test Company"

contact = "Jerry"

billAddressAddr1 = "503 Test Club"

billAddressAddr2 = ""

billAddressAddr3 = ""

billAddressCity = "Test City"

billAddressState = "OK"

addressPostalCode = "11644"

phone = "111-111-1111"

fax = ""

email = ""

'*********************************************************************************************************************

Dim conn As ADODB.Connection

Dim rs As ADODB.Recordset

conn = New ADODB.Connection

conn.ConnectionString = "DSN=Quickbooks Data;OLE DB Services=-2;"

conn.Open()

Try

' Create new record.

rs = conn.Execute( _

sSQL = "INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " & _

" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')"

Set conn = CreateObject("ADODB.Connection")

Set rs = CreateObject("ADODB.Recordset")

conn.Open sConnectString

' Create new record.

rs = conn.Execute(sSQL)

sMsg = sMsg & "Record Added!!!"

MsgBox sMsg

' Close the database.

Set rs = Nothing

Set conn = Nothing

'*********************************************************************************************************************

End Sub

Troubleshooting - app_already_purchased error when try to Authori...

$
0
0

Troubleshooting - app_already_purchased error when try to Authorize QODBC in QuickBooks Online

Problem Description:

We have some other users of QuickBooks online for the same company file. And when any other user tries to authorize and connect it through QODBC, it gives the error as shown below:  

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step1.png

Please help me to resolve this error.

Solutions:

I would like to inform you that you are getting this error because another user (i.e. shown in the error message) has already subscribed to QODBC & Intuit is not allowing multiple subscriptions for the same company file. So you need to disconnect QODBC subscription from QuickBooks Online by login with user's credentials ( the user which is shown in the error message).

Please follow below steps & share outcome:

1) Login to https://qbo.intuit.com/ using with user's (user which is shown in the error message) credentials.

 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step8.png

 

2) Click on Apps from the menu.

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step9.png

3) Navigate My Apps tab & you will find QODBC For QuickBooks Online application.

 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step10.png

Please click on the Disconnect button, 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step11.png

It will ask for confirmation, please click on "Next" by clicking on "Next" QODBC Online will be disconnected from your company file.

 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step12.png

 

4) Now please authorize QODBC with the user you want to connect. Please refer:

How to Reconnect QODBC Online with QuickBooks Online Edition

 

OR


1) Login to https://apps.intuit.com/ using with user's (user which is shown in the error message) credentials.

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step2.png

 

2) Click on My Apps from the menu located near search bar.

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step3.png

3) Navigate Manage My Apps tab & you will find QODBC For QuickBooks Online application.

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step4.png

Please click on the Disconnect button, 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step5.png

It will ask for confirmation, please click on "Next" by clicking on "Next" 

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step6.png

You will redirect to other page & you might get below response:

http://support.flexquarters.com/esupport/newimages/app_already_purchased/step7.png

 

Missing value for required parameter 'ID'

Please ignore this message. If you have more than one company file, then you have to select the company name from Dropdown menu. Please select company, So you will get authorize app list for that company.

4) Now please authorize QODBC with user you want to connect. Please refer:

 

How to Reconnect QODBC Online with QuickBooks Online Edition

 

 

Keywords: app_already_purchased, app already purchased, The application has already been subscribed to another user for this company, Unable to Authorize QODBC in QuickBooks Online.

Troubleshooting - Unable to find table QBAdvancedReportGroup.

$
0
0

Troubleshooting - Unable to find table QBAdvancedReportGroup.

Problem Description:

1. I'm attempting to utilize your ODBC driver for reporting through Excel from QuickBooks Enterprise. The tables listed on your report help guide aren't accessible to me and appear to be part of the QBAdvancedReportGroup. An example is the v_account view. I couldn't find any other place to get a list of the chart of accounts. Is it possible to get permissions to be part of that group? I have added every privilege under the ODBC setup in the application but did not see that group as an option.

Also, when opening VB Demo, I am unable to use the sp_report procedure - I get the message "procedure: sp_report not found". Is that something related to the privileges? How can I get access to that procedure as outlined in your documentation?

2. I have a customer using QB Enterprise, and they are using the built-in ODBC in conjunction with MS Query and Excel to create a refreshable report.

Whenever they close & reopen QuickBooks, the query no longer works. This is because the DATABASE NAME in the "Connect to SQL Anywhere" screen changes each time QB is closed & reopened.

3. I have set up a connection from Access to QB, however, I can only open tables that are in the QBReportAdminGroup, not those in the QBAdminGroup. I get the following error:

ODBC--call failed

[Sybase][ODBC Driver][SQL Anywhere]Permission denied: you do not have permission to select from "v_sales_receipt_sn_list"(#-121).

The ODBC user I created has all groups assigned to it.

Also, the tables I do have access to i.e. "QBReportAdminGroup_v_lst_item", to view data I do not have permission to update.

Please advise how to resolve these problems.

Solutions:

You’re using Intuit Custom Reporting for QuickBooks Enterprise and Not QODBC. I kindly request you to remove any connection you are using with has Sybase SQL Anywhere and use QODBC.

FYI : You need to connect to "QuickBooks Data" DSN (from system/machine dsn) not to any file dsn ( Do not try connecting to File DSN, which is next to your company file with the name COMPANYFILENAME.dsn). I kindly suggest you to refer below articles for how to use QODBC:

Connecting QODBC Driver to QuickBooks for the First Time (Video)

Please note: you need select “QuickBooks Data” (if the applications is 32 bit) or “QuickBooks Data-64bit QRemote” (if the applications is 64 bit) when you choose data source instead of select other data source.

Viewing all 313 articles
Browse latest View live