title: NetSuite SuiteTalk asyncAddList SoapFault
body: <p>I'm attempting to use NetSuite's SuiteTalk <code>asynchAddList</code> operation using the PHPToolkit_2015_1 to add multiple records asynchronously. Their <a href="https://webservices.netsuite.com/wsdl/v2015_1_0/netsuite.wsdl" rel="nofollow">2015_1 WSDL</a> shows this is a valid operation:</p>
  
  <pre><code>&lt;operation name="asyncAddList"&gt;
      &lt;input name="asyncAddListRequest" message="tns:asyncAddListRequest"/&gt;
      &lt;output name="asyncAddListResponse" message="tns:asyncAddListResponse"/&gt;
      &lt;fault name="InvalidSessionFault" message="tns:InvalidSessionFault"/&gt;
      &lt;fault name="InvalidCredentialsFault" message="tns:InvalidCredentialsFault"/&gt;
      &lt;fault name="ExceededRecordCountFault" message="tns:ExceededRecordCountFault"/&gt;
      &lt;fault name="ExceededRequestSizeFault" message="tns:ExceededRequestSizeFault"/&gt;
      &lt;fault name="ExceededRequestLimitFault" message="tns:ExceededRequestLimitFault"/&gt;
      &lt;fault name="UnexpectedErrorFault" message="tns:UnexpectedErrorFault"/&gt;
  &lt;/operation&gt;
  </code></pre>
  
  <p>I've tested my connection to NetSuite, and an <code>addList</code> request works without any issues. The <code>addList</code> and <code>asyncAddList</code> request XML is identical, except for the main tag within the body:</p>
  
  <pre><code>&lt;Body&gt;
      &lt;asyncAddList&gt;
          &lt;record xsi:type="CustomRecord"&gt;
              &lt;recType internalId="100" /&gt;
              &lt;customFieldList&gt;
                  &lt;customField scriptId="custrecord_name" xsi:type="SelectCustomFieldRef"&gt;
                      &lt;value internalId="500" /&gt;
                  &lt;/customField&gt;
              &lt;/customFieldList&gt;
          &lt;/record&gt;
      &lt;/asyncAddList&gt;
  &lt;/Body&gt;
  </code></pre>
  
  <p>While <code>addList</code> is successful, for an <code>asyncAddList</code> request I get this response:</p>
  
  <p><code>Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] An unexpected error occurred.</code></p>
  
  <p>In NetSuite's WebServices Usage Log, this operation isn't logged. </p>
  
  <p>The WSDL shows the asyncAddList operation can return an <code>UnexpectedErrorFault</code>, but NetSuite's documentation only elaborates on this fault once
  (<code>This fault is thrown in the event of an occurrence of an unexpected exception.</code>), but it's not very helpful.</p>
  
  <p>Does anyone have experience using <code>asyncAddList</code> in SuiteTalk? Any help would be greatly appreciated!</p>
  
  <p>Update: I also tried to do an asyncUpdateList operation, and it also yielded a Fatal Error. A normal updateList operation however was successful. This seems to be a problem specifically with asynchronous operations.</p>
  
  <p>Update #2: Async requests started working for one day, then stopped working for several, then started working again for one day. I have an open case with NetSuite support, and they're looking into the issue. Will update once they get back with a solution.</p>