AnsweredAssumed Answered

Error Bulk Import

Question asked by jcastellvi on Sep 8, 2012
Latest reply on Oct 23, 2012 by cowmix
I'm proving Bulk Import, but I get the following error:
2012-09-08 18:56:10,062  ERROR [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk Filesystem Import: 1 error(s) detected. Last error from entry "org.alfresco.repo.bulkimport.ImportableItem@30122f83[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@79ed5a1c[contentFile=C:\alfresco\bulk\100-2005,metadatafile=C:\alfresco\bulk\100-2005.metadata.properties.xml],Versions=<null>]"
java.lang.NullPointerException
   at org.alfresco.repo.bulkimport.metadataloaders.AbstractMapBasedMetadataLoader.loadMetadata(AbstractMapBasedMetadataLoader.java:117)
   at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.loadMetadata(AbstractNodeImporter.java:401)
   at org.alfresco.repo.bulkimport.impl.StreamingNodeImporterFactory$StreamingNodeImporter.importImportableItemImpl(StreamingNodeImporterFactory.java:107)
   at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.importImportableItem(AbstractNodeImporter.java:414)
   at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:113)
   at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:77)
   at org.alfresco.repo.batch.BatchProcessor$TxnCallback.execute(BatchProcessor.java:712)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.batch.BatchProcessor$TxnCallback.run(BatchProcessor.java:756)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
2012-09-08 18:56:10,078  ERROR [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk Filesystem Import: 2 error(s) detected. Last error from entry "org.alfresco.repo.bulkimport.ImportableItem@741d67cf[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@368a8297[contentFile=C:\alfresco\bulk\100-2005\Compres Material 1er Trimestre 2012.pdf,metadatafile=<null>],Versions=<null>]"
org.alfresco.error.AlfrescoRuntimeException: 08080258 Bulk importer: target is not known for importable item: org.alfresco.repo.bulkimport.ImportableItem@30122f83[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@79ed5a1c[contentFile=C:\alfresco\bulk\100-2005,metadatafile=C:\alfresco\bulk\100-2005.metadata.properties.xml],Versions=<null>]
   at org.alfresco.repo.bulkimport.impl.StreamingNodeImporterFactory$StreamingNodeImporter.importImportableItemImpl(StreamingNodeImporterFactory.java:104)
   at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.importImportableItem(AbstractNodeImporter.java:414)
   at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:113)
   at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:77)
   at org.alfresco.repo.batch.BatchProcessor$TxnCallback.execute(BatchProcessor.java:712)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.batch.BatchProcessor$TxnCallback.run(BatchProcessor.java:756)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
I have alfresco 4, try to import a folder with one file and look at the file. With the subs code:
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
    <entry key="type">cm:folder</entry>
    <entry key="aspects">expu:aspectExpUrb</entry>
    <entry key="cm:title">100-2005 TITOL</entry>
    <entry key="cm:description">100-2005 DESCRIPCIO</entry>   
    <!– expu:aspectExpUrb –>
    <entry key="expu:nexpedient">1002005</entry>
    <entry key="expu:anyexpedient">2005</entry>
   <entry key="expu:datallicencia">1901-01-01T12:34:56.789+10:00</entry>   
    <entry key="expu:solicitant">Peter Monks</entry>
    <entry key="expu:promotor">Photograph</entry>
    <entry key="expu:situacio">IMG_1967.jpg</entry>
    <entry key="expu:descripcio">Canon Powershot G2</entry>
  </properties>

Outcomes