Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
XML parse error on async operations
I'm trying to use the asyncAddList operation to create a large purchase order, and I am running into an unusual XML error (one that I do not see when performing normal add/update/delete operations). For background, the platform is Ruby 1.8.6 with the SOAP module (1.6.1-snapshot I think) and an autogenerated class file from wsdl2ruby. Here's what the top portion of my request XML looks like:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <n1:asyncAddList xmlns:n1="urn:messages_2_6.platform.webservices.netsuite.com"> <n1:record xsi:type="n2:PurchaseOrder" xmlns:n2="urn:purchases_2_6.transactions.webservices.netsuite.com"> <n2:entity internalId="21" xsi:type="n3:RecordRef" xmlns:n3="urn:core_2_6.platform.webservices.netsuite.com"/> <n2:itemList replaceAll="true"> <n2:item> <n2:item xsi:type="n4:RecordRef" externalId="Foo-V-12345" type="inventoryItem" xmlns:n4="urn:core_2_6.platform.webservices.netsuite.com"/> <n2:quantity>30</n2:quantity> </n2:item>
0