Archive for July, 2007

Save Time with this QuickBooks API Debugging Tip

Tuesday, July 3rd, 2007

Tip: If you’re working with the QuickBooks API and QuickBooks returns an error message like this:
QuickBooks found an error when parsing the provided XML text stream.

The first thing to think about (assuming your XML generally looks valid) is the ordering of your elements. The XML schema requires all of the XML elements be in a specific order. You can view the order in the OnScreen Reference.

In general to get more information about a XML error, start up your qb* XML Validator tool (should be installed with SDK) and put in your XML file. Here’s the error I got from having an out of order element:
Reason: Element content is invalid according to the DTD/Schema.
Expecting: ServiceDate, SalesTaxCodeRef, IsTaxable, OverrideItemAccountRef.

How to Fix Gnome Baker Permission Denied

Sunday, July 1st, 2007

I got this error trying to use the DVD copy feature of Gnome Baker:

Error trying to open /dev/sg0 exclusively (Permission denied)... retrying in 1 second.
readcd: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
readcd: For possible targets try 'readcd -scanbus'. Make sure you are root.
readcd: For possible transport specifiers try 'readcd dev=help'.

I fixed it by starting Gnome Baker by opening up a terminal and running sudo gnomebaker