Mike S. Posted May 18, 2021 Posted May 18, 2021 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.
Geoffrey Gerhard Posted May 19, 2021 Posted May 19, 2021 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
Mike S. Posted May 19, 2021 Author Posted May 19, 2021 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.
Geoffrey Gerhard Posted May 19, 2021 Posted May 19, 2021 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
Recommended Posts
This topic is 1353 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now