skipping entries without categories, e.g. 57364, 29924

This commit is contained in:
gexce
2017-10-27 16:08:50 +02:00
parent 4c9f8bf453
commit 478ba4eb63
@@ -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");