Active
Project:
Ubercart Quickbooks Integration
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2009 at 20:00 UTC
Updated:
3 Dec 2009 at 17:02 UTC
I am working with quickbooks 2009 and am getting the following errors when trying to export data to quickbooks:
First I get:
QB responded to a request with error #500 (The query request has not been fully completed. There was a required element ("Inventory Asset") that could not be found in QuickBooks.)
for each order. Then I get:
QB responded to a request with error #3231 (The request has not been processed.)
Very grateful for any help.
Comments
Comment #1
hvitebjorn commentedFixed this issue (thanks j_ten_man). Solution: Make sure the following accounts are enabled in QB - Merchandize Sales, Merchant Account Fees, Inventory Asset.
But still getting errors:
First, a bunch of error #500 saying
Where the actual element names (like “Raj_WideZZagScarves_Orange/PinkMulti “ above) are all the different SKUs from ubercart. Then, a bunch of
Then, a bunch of
and
Looks like some exports failed because all customers weren't exported correctly (looks like less than half the customers were exported correctly), and the remaining orders failed because no products were created/exported.
So what I have in QB after running the export is some of the customers (email addresses only), none of the inventory and no transactions.
Any ideas?
Comment #2
j_ten_man commentedThis is the exact error I was getting. I know you saw this issue, but just to make a note of it here: http://drupal.org/node/327820. So the model is what it says is the error, but that isn't really the issue. I think the issue is due to taxes not being turned on (I know it doesn't make sense at all). Look at the requirements at about line 461 and make sure they are for sure enabled.
Comment #3
hvitebjorn commentedYes I do have sales tax turned on. The response from QB to the first query is included below.
Looks like the requests to add the inventory is being built (around line 380) and added to the queue with
(around line 490), but never executed. Help?
Comment #4
hvitebjorn commentedduplicate
Comment #5
j_ten_man commentedDo you have a copy of the requests for wewt1, wewt4, etc.? Could you just put one of those out here and I'll take a look at that and see if I can figure it out.
Comment #6
hvitebjorn commentedThanks, here's the initial request:
<?xml version="1.0"?>
<?qbxml version="5.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<AccountQueryRq metaData="MetaDataOnly" requestID="1">
<FullName>Merchandise Sales</FullName>
</AccountQueryRq>
<AccountQueryRq metaData="MetaDataOnly" requestID="2">
<FullName>Merchant Account Fees</FullName>
</AccountQueryRq>
<AccountQueryRq metaData="MetaDataOnly" requestID="3">
<FullName>Inventory Asset</FullName>
</AccountQueryRq>
<PreferencesQueryRq requestID="4">
<IncludeRetElement>SalesTaxPreferences</IncludeRetElement>
<IncludeRetElement>PurchasesAndVendorsPreferences</IncludeRetElement>
</PreferencesQueryRq>
<ItemInventoryQueryRq metaData="MetaDataAndResponseData" requestID="5">
<FullName>wewt1</FullName>
<IncludeRetElement>ListID</IncludeRetElement>
<IncludeRetElement>Name</IncludeRetElement>
<IncludeRetElement>SalesPrice</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
</ItemInventoryQueryRq>
<ItemInventoryQueryRq metaData="MetaDataAndResponseData" requestID="6">
<FullName>wewt4</FullName>
<IncludeRetElement>ListID</IncludeRetElement>
<IncludeRetElement>Name</IncludeRetElement>
<IncludeRetElement>SalesPrice</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
</ItemInventoryQueryRq>
<ItemInventoryQueryRq metaData="MetaDataAndResponseData" requestID="7">
<FullName>sjspsb</FullName>
<IncludeRetElement>ListID</IncludeRetElement>
<IncludeRetElement>Name</IncludeRetElement>
<IncludeRetElement>SalesPrice</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
</ItemInventoryQueryRq>
<ItemInventoryQueryRq metaData="MetaDataAndResponseData" requestID="8">
<FullName>piojkjd10</FullName>
<IncludeRetElement>ListID</IncludeRetElement>
<IncludeRetElement>Name</IncludeRetElement>
<IncludeRetElement>SalesPrice</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
</ItemInventoryQueryRq>
<ItemInventoryQueryRq metaData="MetaDataAndResponseData" requestID="9">
<FullName>wklsc1</FullName>
<IncludeRetElement>ListID</IncludeRetElement>
<IncludeRetElement>Name</IncludeRetElement>
<IncludeRetElement>SalesPrice</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
</ItemInventoryQueryRq>
...
...
...
Comment #7
hvitebjorn commentedFixed this issue, it was due to the memory limit for PHP was set to 48M which was too low.
Comment #8
millenniumtreeThis should go into the 'requirements' system. imageapi_gd uses a requirements system in imageapi_gd.install to gently suggest that the user bump up the memory limit to 96M. Maybe uc_qb should do the same?
Here, for example, is the code that does it in imageapi_gd (for Drupal 6.x)