Skip to content

Commit ed5e229

Browse files
author
Volodymyr Klymenko
committed
MAGETWO-42756: [Sample Data] Error during configurable product import
1 parent 230c43a commit ed5e229

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/SampleData/Module/ConfigurableProduct/Setup

1 file changed

+5
-1
lines changed

app/code/Magento/SampleData/Module/ConfigurableProduct/Setup/Product.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
use Magento\SampleData\Model\SetupInterface;
99
use Magento\Framework\App\Filesystem\DirectoryList;
10+
use Magento\ImportExport\Model\Import;
11+
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
1012

1113
/**
1214
* Setup configurable product
@@ -78,7 +80,9 @@ public function run()
7880
[
7981
'entity' => 'catalog_product',
8082
'behavior' => 'append',
81-
'import_images_file_dir' => 'pub/media/catalog/product'
83+
'import_images_file_dir' => 'pub/media/catalog/product',
84+
Import::FIELD_NAME_VALIDATION_STRATEGY =>
85+
ProcessingErrorAggregatorInterface::VALIDATION_STRATEGY_SKIP_ERRORS
8286
]
8387
);
8488

0 commit comments

Comments
 (0)