title: Solr 4 - missing required field: uuid
body: <p>I'm having issues generating a UUID using the dataImportHandler in Solr4. Im trying to import from an existing MySQL database.</p>
  
  <p>My schema.xml contains: </p>
  
  <pre><code>&lt;fields&gt;
  
      &lt;field name="uuid" type="uuid" indexed="true" stored="true" required="true" /&gt;
  
      &lt;field name="id" type="string" indexed="true" stored="true" required="true"/&gt;
      &lt;field name="address" type="text_general" indexed="true" stored="true"/&gt;
      &lt;field name="city" type="text_general" indexed="true" stored="true" /&gt;
      &lt;field name="county" type="string" indexed="true" stored="true" /&gt;
      &lt;field name="lat" type="text_general" indexed="true" stored="true" /&gt;
      &lt;field name="lng" type="text_general" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true" /&gt;
      &lt;field name="price"  type="float" indexed="true" stored="true"/&gt;
      &lt;field name="bedrooms" type="float" indexed="true" stored="true" /&gt;
      &lt;field name="image" type="string" indexed="true" stored="true"/&gt;
  
      &lt;field name="region" type="location_rpt" indexed="true" stored="true" /&gt;       
  
      &lt;defaultSearchField&gt;address&lt;/defaultSearchField&gt;
  
      &lt;field name="_version_" type="long" indexed="true" stored="true"/&gt;
      &lt;field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/&gt;
  
   &lt;/fields&gt;
  
   &lt;uniqueKey&gt;uuid&lt;/uniqueKey&gt;
  </code></pre>
  
  <p>and then in <code>&lt;types&gt;</code></p>
  
  <pre><code>  &lt;fieldType name="uuid" class="solr.UUIDField" indexed="true" /&gt;
  </code></pre>
  
  <p>My Solrconfig.xml contains:</p>
  
  <pre><code> &lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt;  
  
    &lt;updateRequestProcessorChain name="uuid"&gt;
        &lt;processor class="solr.UUIDUpdateProcessorFactory"&gt;
            &lt;str name="fieldName"&gt;uuid&lt;/str&gt;
        &lt;/processor&gt;
        &lt;processor class="solr.RunUpdateProcessorFactory" /&gt;
    &lt;/updateRequestProcessorChain&gt;
  
   &lt;lst name="defaults"&gt;
      &lt;str name="config"&gt;data-config.xml&lt;/str&gt;
   &lt;/lst&gt;
  </code></pre>
  
  <p></p>
  
  <p>Whenever I run the update, some docs are inserted ok , buy many return with:</p>
  
  <pre><code>org.apache.solr.common.SolrException: [doc=204] missing required field: uuid
  </code></pre>