May 18, 20214 yr Hope someone can give me a hand. Any Idea why in a PCQB_RqNew("SalesOrderAdd" ; "" ) this would cause the following error: PCQB_RqAddFieldWithValue( "BillAddress::Addr1"; FM_Order::Billing_street_1 ) Quote CODE: -1000 SEVERITY: failed validation MESSAGE: Error at BillAddress Reason: Element 'BillAddress' is unexpected according to content model of parent element 'SalesOrderAdd'. Expecting: SalesRepRef, FOB, ShipDate, ShipMethodRef, ItemSalesTaxRef, IsManuallyClosed, Memo, CustomerMsgRef, IsToBePrinted, IsToBeEmailed, IsTaxIncluded, CustomerSalesTaxCodeRef, Other, ExchangeRate, ExternalGUID, SalesOrderLineAdd, SalesOrderLineGroupAdd. Field Value: It shows in the QuickBooks IDN as an option almost identical to how it shows for CustomerAdd but for some reason is not working in SalesOrderADD.
May 19, 20214 yr That message means that you've added the BillAddress node out of sequence. From the "Expecting: SalesRepRef" message, it appears that you're adding it after the DueDate element. BillAddress cannot precede RefNumber, and must precede ShipAddress, PONumber, TermsRef, DueDate, etc. HTH! Geoffrey Gerhard Creative Solutions Incorporated 14000 Creekside Drive Matthews, NC 28105 704.814.6852
May 19, 20214 yr Author Thanks Geoffrey! I will give that a shot, just to follow up with something that may save me lots of hassle in the future, is the IDN listed in Order, I.E. if I had put the Add Fields in the Order they show on the IDN I would have saved myself? Thanks Again.
May 19, 20214 yr Yup! I use the XMLOps tab on the OSR page ( https://static.developer.intuit.com/qbSDK-current/common/newosr/index.html ) for reference. It lists the elements in the right order, identifies whether they're required or optional, and shows the default/alternate values for ENUMTYPE elements. I think I've seen alternate pages that show detail, but didn't like the page layouts and scrolling needed to navigate and find what I needed. HTH! Geoffrey Gerhard Creative Solutions Incorporated 14000 Creekside Drive Matthews, NC 28105 704.814.6852
Create an account or sign in to comment