skipping entries without categories, e.g. 57364, 29924
This commit is contained in:
@@ -170,6 +170,11 @@ public class MamMigrationSelective implements CommandLineRunner {
|
||||
record.addClassification(Definitions.mediaTypes.get(entry.mediaType.id));
|
||||
|
||||
// process categories
|
||||
if (entry.categories.size() == 0) {
|
||||
log.info("RESULT Skipping entry " + entry.id + ": No category assigned, cannot determine business unit and brand");
|
||||
return;
|
||||
}
|
||||
|
||||
if (entry.categories.size() > 1)
|
||||
log.warn("Entry " + entry.id + " has " + entry.categories.size() + " categories assigned");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user