Powered By Blogger

Thursday, August 16, 2012

Error in Bulk Import

22:03:23,341 ERROR [org.alfresco.repo.bulkimport.BulkFilesystemImporter] Bulk Filesystem Import: 1 error(s) detected. Last error from entry "org.alfresco.repo.bulkimport.ImportableItem@37261b31[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@26c34a40[contentFile=E:\Alfresco402vanilla2\alf_data\contentstore\inplace\basan.tiff,metadatafile=E:\Alfresco402vanilla2\alf_data\contentstore\inplace\basan.tiff.metadata.properties.xml],Versions=]"
java.lang.IllegalArgumentException: Can't create content URL : file 'E:\Alfresco402vanilla2\alf_data\contentstore\inplace\basan.tiff' is not located within the store's tree ! The store's root is :'E:/Alfresco402vanilla2/alf_data/contentstore
    at org.alfresco.repo.bulkimport.impl.FilesystemContentDataFactory.createContentData(FilesystemContentDataFactory.java:106)
    at org.alfresco.enterprise.repo.bulkimport.impl.InPlaceNodeImporterFactory$InPlaceNodeImporter.beforeCreateNode(InPlaceNodeImporterFactory.java:159)
    at org.alfresco.enterprise.repo.bulkimport.impl.InPlaceNodeImporterFactory$InPlaceNodeImporter.importImportableItemImpl(InPlaceNodeImporterFactory.java:233)
    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)



If you are getting exception as above then put below property in alfresco-global.properties and restart the server

dir.root=E:\\Alfresco402vanilla2\\alf_data
dir.contentstore=${dir.root}\\contentstore

No comments:

Post a Comment