title: CAML update running, but not changing data (Sharepoint 2007)
body: <p>I've been trying to create a batch update program for a MOSS site, based on the MSDN example here: <a href="http://msdn.microsoft.com/en-us/library/cc404818.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc404818.aspx</a>.  Unfortunately, although the update query is running through with no errors, the data in the list is not changing.</p>
  
  <p>Here is the batch command I use:</p>
  
  <pre><code>&lt;Method ID="3767"&gt;
    &lt;SetList&gt;8468cf0a-7e10-439c-a9b4-4197543e7b38&lt;/SetList&gt;
    &lt;SetVar Name="Cmd"&gt;Save&lt;/SetVar&gt;
    &lt;SetVar Name="ID"&gt;3767&lt;/SetVar&gt;
    &lt;SetVar Name="Date_x0020_of_x0020_Birth1"&gt;1971-12-18T00:00:00Z&lt;/SetVar&gt;
  &lt;/Method&gt;
  </code></pre>
  
  <p>Upon running the batch update command:</p>
  
  <pre><code>string batchReturn = web.ProcessBatchData(batch);
  returns:
  &lt;Results&gt;
    &lt;Result ID="3767" Code="0"&gt;&lt;/Result&gt;
  &lt;/Results&gt;
  </code></pre>
  
  <p>The major version number on the list item is incremented, but no changes are made to the data in field: Date_x0020_of_x0020_Birth1</p>
  
  <p>I'm stumped.</p>
  
  <p>More background:  Date_x0020_of_x0020_Birth1 is a new field added to the default content type fo this list.  It is a DateTime field.  It supercedes the original Date_x0020_of_x0020_Birth field (now has a display name of "Date of Birth(Text)") which was a text field, dues o it containing values prior to 01/01/1900.  The batch update is to copy dates from the text field to the new DateTime field where possible.</p>
  
  <p>The only thing I can think off is that I'm using:</p>
  
  <pre><code>&lt;SetVar Name="Cmd"&gt;Save&lt;/SetVar&gt;
  </code></pre>
  
  <p>Perhaps I need the "Update" or "Save" command, so I tried this:</p>
  
  <pre><code>&lt;Method ID="1" Cmd="Update"&gt;
    &lt;Field Name='ID'&gt;3767&lt;/Field&gt;
    &lt;Field Name="Date_x0020_of_x0020_Birth1"&gt;1971-12-18T00:00:00Z&lt;/Field&gt;
  &lt;/Method&gt;
  </code></pre>
  
  <p>But that returns:</p>
  
  <pre><code>&lt;Results&gt;37671971-12-18T00:00:00Z&lt;Result ID="1" Code="-2130575350"&gt;
    &lt;ErrorText&gt;Invalid URL Parameter
  
    The URL provided contains an invalid Command or Value. Please check the URL again.    
    &lt;/ErrorText&gt;
  &lt;/Result&gt;
  3767Date_x0020_of_x0020_Birth1
  &lt;Result ID="1" Code="-2147023673"&gt;
  &lt;ErrorText&gt;The operation failed because an unexpected error occurred. (Result Code: 0x800704c7)&lt;/ErrorText&gt;
  &lt;/Result&gt;
  &lt;/Results&gt;
  </code></pre>