id summary reporter owner description type status priority milestone component version resolution keywords cc 1930 Can't run batch importers in 'create' mode when using multiple lines per item Nicklas Nordborg everyone "That batch importers have support for using multiple lines to import data to a single item. This is for example needed when connecting a child pooled biomaterial with all of it's parent biomaterials, or when adding multiple data files to a raw bioassay. But this feature doesn't work in 'create' mode. The batch importer will choke as soon as it finds the second line of data for a new item. The stacktrace below is from the test code that has been modified to run the importer in 'create' mode instead of 'create+update' mode. {{{ net.sf.basedb.core.BaseException: Item already exists: Sample[Name=Pooled sample] on line 6 in file 'data_test.batchimport.samples.txt2578': Pooled sample at TestJob.test_execute(TestJob.java:113) at TestItemImporter.test_all(TestItemImporter.java:125) at TestItemImporter.main(TestItemImporter.java:58) Caused by: net.sf.basedb.core.BaseException: Item already exists: Sample[Name=Pooled sample] on line 6 in file 'data_test.batchimport.samples.txt2578': Pooled sample at net.sf.basedb.plugins.AbstractFlatFileImporter.doImport(AbstractFlatFileImporter.java:716) at net.sf.basedb.plugins.AbstractFlatFileImporter.run(AbstractFlatFileImporter.java:450) at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:116) at TestJob.test_execute(TestJob.java:97) ... 2 more Caused by: net.sf.basedb.core.ItemAlreadyExistsException: Item already exists: Sample[Name=Pooled sample] at net.sf.basedb.plugins.batchimport.AbstractItemImporter.handleData(AbstractItemImporter.java:755) at net.sf.basedb.plugins.AbstractFlatFileImporter.doImport(AbstractFlatFileImporter.java:684) ... 5 more }}}" defect closed major BASE 3.4.2 coreplugins fixed