Skip to content

Harvesting: a bug in dataset update (UpdateHarvestedDatasetCommand) #11933

Description

@landreev

This is a direct side effect of an optimization introduced in #10836
I made an effort there to only update things that have changed since the last harvest, specifically when it came to harvested files, and apparently created a bug in the process:

Exception processing getRecord(), oaiUrl=https://borealisdata.ca/oai, identifier=doi:10.34990/FK2/TVUWWT,
 edu.harvard.iq.dataverse.api.imports.ImportException, Failed to import harvested dataset: class 
edu.harvard.iq.dataverse.engine.command.exception.CommandException (Command 
edu.harvard.iq.dataverse.engine.command.impl.UpdateHarvestedDatasetCommand@5e1a3886 failed: 
Exception thrown from bean: java.lang.IllegalArgumentException: Cannot merge an Entity that has been 
removed: edu.harvard.iq.dataverse.FileMetadata[id=8812744])

From the look of it, should be easy enough to fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions