Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Error parsing complete XML return string (8) |
Author |
Message |
|
Posted : 2006-11-18 03:49:08 |
I am getting this message when I execute an UPDATE SQL statement.
UPDATE Customer SET Name = 'ABC LLP', IsActive = TRUE, FirstName = 'howard', LastName = 'joe', CompanyName = 'ABC LLP', BillAddressAddr1 = 'ABC LLP', BillAddressAddr2 = '50 Main Strret', BillAddressAddr3 = 'Suite 2003', BillAddressCity = 'New York', BillAddressState = 'NY', BillAddressPostalCode = '10016', ShipAddressAddr1 = 'ABC LLP', ShipAddressAddr2 = '50 Main Street', ShipAddressAddr3 = 'Suite 2003', ShipAddressCity = 'New York', ShipAddressState = 'NY', ShipAddressPostalCode = '10016', Phone = '212-123-4567', AltPhone = ' ', Fax = '212-123-4567', Email = 'abc@abc.com', Contact = 'Howard joe', CreditLimit = 0 WHERE ListID LIKE '3F40000-1118266438' <Info> -- 11/17/2006 11:34:47 AM -- System.Data.Odbc.OdbcException: ERROR [00000] [QODBC] Error parsing complete XML return string.
Why does this Happen? What does this mean? |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-18 08:02:22 |
Basically Intuit's qbXML SDK requires the XML to be in the order of the columns in the table. Looking at your UPDATE statement, the CompanyName column is out of order. Try this using WHERE ListID = '3F40000-1118266438':-
UPDATE Customer SET Name = 'ABC LLP', IsActive = TRUE, CompanyName = 'ABC LLP', FirstName = 'howard', LastName = 'joe', BillAddressAddr1 = 'ABC LLP', BillAddressAddr2 = '50 Main Strret', BillAddressAddr3 = 'Suite 2003', BillAddressCity = 'New York', BillAddressState = 'NY', BillAddressPostalCode = '10016', ShipAddressAddr1 = 'ABC LLP', ShipAddressAddr2 = '50 Main Street', ShipAddressAddr3 = 'Suite 2003', ShipAddressCity = 'New York', ShipAddressState = 'NY', ShipAddressPostalCode = '10016', Phone = '212-123-4567', AltPhone = ' ', Fax = '212-123-4567', Email = 'abc@abc.com', Contact = 'Howard joe', CreditLimit = 0 WHERE ListID = '3F40000-1118266438'
You can use the SP_COLUMNS tablename stored procedure command in VB Demo to get the EXACT table schema rules for the QuickBooks Company file you have open. The last few columns have Queryable, Updateable, Insertable, Required_On_Insert and the format ie:-
sp_columns TableName
|
|
|
|
|
Posted : 2006-12-07 11:04:20 |
Tom,
I have the same problem, except that my fields are in the correct order. Do you see anything else that might cause this problem?
Thanks, Josh
INSERT INTO SalesOrderLine (CustomerRefListID, TemplateRefListID, TxnDate, BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode, BillAddressCountry, ShipAddressAddr1, ShipAddressAddr2, ShipAddressAddr3, ShipAddressCity, ShipAddressState, ShipAddressPostalCode, ShipAddressCountry, SalesOrderLineGroupItemGroupRefListID, SalesOrderLineGroupQuantity, SalesOrderLineGroupTotalAmount, FQSaveToCache) VALUES('E440001-1162054586', 'F0000-1041533017', {d'2006-12-06'}, '33611 Delphinium Lane', '', '', 'Murrieta', 'CA', '92563', 'US', '33611 Delphinium Lane', '', '', 'Murrieta', 'CA', '92563', 'US', '4600000-1139534598', 1, 625, 0) |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-12-07 12:12:18 |
You have used to many group item columns here. QuickBooks calulates the totals etc for Group Items. This is all that's required:
INSERT INTO "SalesOrderLine" ("CustomerRefListID", "RefNumber", "SalesOrderLineGroupItemGroupRefListID", "SalesOrderLineGroupQuantity", "FQSaveToCache") VALUES ('470001-1071525403', 'Group6', '580000-1197762645', 3, 0)
See: How do I invoice item groups? for more. |
|
|
|
|