title: Unable to get Solr Delta Import Index working
body: <p>These are the exact steps that I have taken to try and get delta import handler working. If I can provide any more information to help let me know. I have literally spent the entire friday night and today on this and I throw in the towel. Where have I gone wrong? </p>
  
  <p>Added this line to the solrconfig:</p>
  
  <pre><code>&lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt;
      &lt;lst name="defaults"&gt;
        &lt;str name="config"&gt;/home/solr/data-config.xml&lt;/str&gt;
      &lt;/lst&gt;
    &lt;/requestHandler&gt;
  </code></pre>
  
  <p>Then my data-config.xml looks like this:</p>
  
  <pre><code>&lt;dataConfig&gt;
    &lt;dataSource type="FileDataSource" /&gt;
    &lt;document&gt;
      &lt;entity 
        name="document" 
        processor="FileListEntityProcessor" 
        baseDir="/var/lib/data" 
        fileName=".*.xml$" 
        recursive="false" 
        rootEntity="false" 
        dataSource="null"&gt;
        &lt;entity 
          processor="XPathEntityProcessor" 
          url="${document.fileAbsolutePath}" 
          useSolrAddSchema="true" 
          stream="true"&gt;
        &lt;/entity&gt;
      &lt;/entity&gt;
    &lt;/document&gt;
  &lt;/dataConfig&gt;
  </code></pre>
  
  <p>Then in my var/lib/data folder I have a data.xml file that looks like this:</p>
  
  <pre><code>&lt;add&gt;
  &lt;doc&gt;
          &lt;field name="id"&gt;123&lt;/field&gt;
          &lt;field name="description"&gt;This is my long description&lt;/field&gt;
          &lt;field name="company"&gt;Google&lt;/field&gt;
          &lt;field name="location_name"&gt;England&lt;/field&gt;
          &lt;field name="date"&gt;2007-12-31 22:29:59&lt;/field&gt;
          &lt;field name="source"&gt;Google&lt;/field&gt;
          &lt;field name="url"&gt;www.google.com&lt;/field&gt;
          &lt;field name="latlng"&gt;45.17614,45.17614&lt;/field&gt;
  &lt;/doc&gt;
  &lt;/add&gt;
  </code></pre>
  
  <p>Finally I then ran this command:</p>
  
  <pre><code>http://localhost:8080/solr/dataimport?command=delta-import&amp;clean=false
  </code></pre>
  
  <p>And I get this result (failed):</p>
  
  <pre><code>&lt;response&gt;
  &lt;lst name="responseHeader"&gt;
  &lt;int name="status"&gt;0&lt;/int&gt;
  &lt;int name="QTime"&gt;1&lt;/int&gt;
  &lt;/lst&gt;
  &lt;lst name="initArgs"&gt;
  &lt;lst name="defaults"&gt;
  &lt;str name="config"&gt;/home/solr/data-config.xml&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/lst&gt;
  &lt;str name="command"&gt;delta-import&lt;/str&gt;
  &lt;str name="status"&gt;idle&lt;/str&gt;
  &lt;str name="importResponse"/&gt;
  &lt;lst name="statusMessages"&gt;
  &lt;str name="Time Elapsed"&gt;0:15:9.543&lt;/str&gt;
  &lt;str name="Total Requests made to DataSource"&gt;0&lt;/str&gt;
  &lt;str name="Total Rows Fetched"&gt;0&lt;/str&gt;
  &lt;str name="Total Documents Processed"&gt;0&lt;/str&gt;
  &lt;str name="Total Documents Skipped"&gt;0&lt;/str&gt;
  &lt;str name="Delta Dump started"&gt;2012-11-17 17:32:56&lt;/str&gt;
  &lt;str name="Identifying Delta"&gt;2012-11-17 17:32:56&lt;/str&gt;
  &lt;str name=""&gt;Indexing failed. Rolled back all changes.&lt;/str&gt;
  &lt;str name="Rolledback"&gt;2012-11-17 17:32:56&lt;/str&gt;
  &lt;/lst&gt;
  &lt;str name="WARNING"&gt;
  This response format is experimental. It is likely to change in the future. 
  &lt;/str&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>EDIT: This is what the tomcat.log says:</p>
  
  <pre><code>INFO: Starting Delta Import
  Nov 18, 2012 12:48:46 PM org.apache.solr.core.SolrCore execute
  INFO: [] webapp=/solr path=/dataimport params={clean=false&amp;command=delta-import} status=0 QTime=1 
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.SimplePropertiesWriter readIndexerProperties
  WARNING: Unable to read: dataimport.properties
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder doDelta
  INFO: Starting delta collection.
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Running ModifiedRowKey() for Entity: 84430688679548
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed ModifiedRowKey for Entity: 84430688679548 rows obtained : 0
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed DeletedRowKey for Entity: 84430688679548 rows obtained : 0
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed parentDeltaQuery for Entity: 84430688679548
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Running ModifiedRowKey() for Entity: document
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed ModifiedRowKey for Entity: document rows obtained : 0
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed DeletedRowKey for Entity: document rows obtained : 0
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
  INFO: Completed parentDeltaQuery for Entity: document
  Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder doDelta
  INFO: Delta Import completed successfully
  </code></pre>