cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco bulk import metadata failed

plmingurata
Champ in-the-making
Champ in-the-making

Hi,

I am trying to import a xml file with metadata to a pdf file which is in a repo

target file: test.pdf

xml file: test.pdf.metadata.properties.xml


When I am trying to import xml, I get this errors:


java.lang.NullPointerException
at org.alfresco.repo.bulkimport.metadataloaders.AbstractMapBasedMetadataLoader.loadMetadata(AbstractMapBasedMetadataLoader.java:116)
at org.alfresco.repo.bulkimport.impl.DirectoryAnalyserImpl.isMetadataValid(DirectoryAnalyserImpl.java:293)
at org.alfresco.repo.bulkimport.impl.DirectoryAnalyserImpl.analyseDirectory(DirectoryAnalyserImpl.java:241)
at org.alfresco.repo.bulkimport.impl.AbstractFilesystemTracker.getImportableItemsInDirectory(AbstractFilesystemTracker.java:63)
at org.alfresco.repo.bulkimport.impl.StripingFilesystemTracker.getImportableItems(StripingFilesystemTracker.java:147)
at org.alfresco.repo.bulkimport.impl.StripingFilesystemTracker$1.getNextWork(StripingFilesystemTracker.java:203)
at org.alfresco.repo.batch.BatchProcessor$WorkProviderIterator.hasNext(BatchProcessor.java:587)
at org.alfresco.repo.batch.BatchProcessor.process(BatchProcessor.java:392)
at org.alfresco.repo.bulkimport.impl.StripingBulkFilesystemImporter.bulkImportImpl(StripingBulkFilesystemImporter.java:65)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:391)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:1)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter.bulkImport(AbstractBulkFilesystemImporter.java:366)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2$1.doWork(AbstractBulkFilesystemImporter.java:347)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2.run(AbstractBulkFilesystemImporter.java:343)
at java.lang.Thread.run(Thread.java:745)



Any ideas are helpful. Thanks!

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

You may be missing to pass the file and metadata file correctly. 

Please review this documentation and try again: https://docs.alfresco.com/content-services/6.1/admin/import-transfer/

~Abhinav
(ACSCE, AWS SAA, Azure Admin)