diff --git a/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php b/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php index b974b483288d0..71fad2e783b7c 100644 --- a/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php +++ b/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php @@ -15,6 +15,7 @@ use Magento\ImportExport\Block\Adminhtml\Import\Frame\Result; use Magento\ImportExport\Controller\Adminhtml\ImportResult as ImportResultController; use Magento\ImportExport\Model\Import; +use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface; /** * Import validate controller action. @@ -171,7 +172,10 @@ private function getImport() private function addMessageToSkipErrors(Result $resultBlock) { $import = $this->getImport(); - if (!$import->getErrorAggregator()->hasFatalExceptions()) { + $validationStrategy = $import->getData(Import::FIELD_NAME_VALIDATION_STRATEGY); + if ($validationStrategy === ProcessingErrorAggregatorInterface::VALIDATION_STRATEGY_SKIP_ERRORS + && !$import->getErrorAggregator()->hasFatalExceptions() + ) { $resultBlock->addSuccess( __('Please fix errors and re-upload file or simply press "Import" button to skip rows with errors'), true