title: CRM 2011 Workflow "Invalid Pointer" error
body: <p>I have a custom workflow in CRM 2011 which is manually triggered against custom entity records.  When a single record is selected for processing, the workflow is always successful.  However when selecting more than one record, at least one will fail.  The error(s) provided seem to vary from one attempt to the next, even though the same data is being used.</p>
  
  <p>Errors I've encountered so far are:</p>
  
  <ul>
  <li>ValidateOpen - Encountered disposed CrmDbConnection when it should
  not be disposed You cannot create a SqlExecutionContext from another</li>
  <li>SqlExecutionContext on which OnBeginRequest has not been called</li>
  </ul>
  
  <p>And after restarting the DB server:</p>
  
  <ul>
  <li>Invalid Pointer</li>
  </ul>
  
  <p>All of these occur when calling the Update method of the IOrganizationService.  The Invalid Pointer error seems to be the more common error since having restarted the DB server (it was suggested to me that it might be an issue with an overly-busy DB server).  I've also deleted any backlog of asynchronous tasks in case this was the issue, but it hasn't had any effect.</p>
  
  <p>Does anyone know what this error means, why I might be getting it or how I can get around the issue?</p>
  
  <p>Many thanks!</p>