Closed b9chris closed 8 years ago
qbxml currently is only validating the hierarchy of the elements (that they're allowed to appear as a child of their parent) and the data type in each field. Not validated are:
I would like to have more validation in here, but the Quickbooks documentation is pretty sparse.
In your specific case, I would guess that your second Amount
needs to be 45.00.
Sparse is an understatement! I'd prefer this library if possible because it doesn't depend on a desktop Quickbooks installation the way the SDK ridiculously does. Thanks for the pointer on my XML! That unfortunately didn't fix it, but, who knows maybe it's just one of many issues.
Comparing it to my successful requests, a few things stick out:
requestID
Rate
rather than Amount
. I believe the intention is that you do Quantity
and Rate
, or just Amount
.Changes to make qbxml stricter will be accepted, but the rules will have to be identified and handled individually. Closing as this issue is just too broad.
It seems the parsing in this tool is more forgiving than Quickbooks, which is normally a nice to have but in this case it means you can easily validate QBXML files with this tool that won't work in Quickbooks. For example, Quickbooks simply returns "Parsing error" when reading the following QBXML, while this tool happily parses and validates it: