How do I make an import tolerant to non-existing SKUs?

Currently, it is only possible to make the import tolerant to non-existing SKUs by setting debug-mode=true .

How to:

enable also importing with non-existing SKUs, the following entries in pipeline.xml and di.xml are necessary

Step 1: add the Debug Import Executer to the Pipeline

Activate the DebugImportExecutor with following Step in pipeline.xml:

 <step name="price_import" executorType="<Projectname>\PriceImport\Virtual\Executor\DebugImportExecutor" sortOrder="40"/>
xml
pipeline.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:TechDivision_ProcessPipelines:etc/pipeline.xsd">
    <pipeline name="pacemaker_import_price">
        <step name="price_import" executorType="<Projectname>\PriceImport\Virtual\Executor\DebugImportExecutor" sortOrder="40"/>
    </pipeline>
</config>
xml

Step 2: activate the Debug mode

  • Add the item debug-mode to di.xml:

<item name="debug-mode" xsi:type="string">true</item>
xml
di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="<Projectname>\PriceImport\Virtual\Executor\DebugImportExecutor" type="TechDivision\PacemakerImportBase\Model\Executor\ImportExecutor">
        <arguments>
            <argument name="options" xsi:type="array">
                <item name="debug-mode" xsi:type="string">true</item>
            </argument>
        </arguments>
    </virtualType>
</config>
xml