Skip importing row in ImportAction

How do you skip a row when the importer is cycling through a CSV in the ImportAction? I am returning null based on a few conditionals in the resolveRecord method of the importer, but in the importer report - it still seems like the row is being processed and then the report counts it as imported?
2 Replies
toeknee
toeknee2w ago
Null should cause it to fail. Did you ensure you restore php-fpm and your queue worker after the change? Actually, null will process the row. What I do is throw the row exception for it to be a failed row.:
throw new RowImportFailedException($state . ' Row could not be matched.');
throw new RowImportFailedException($state . ' Row could not be matched.');
Grogu
GroguOP2w ago
I'll try throwing it - thanks @toeknee !

Did you find this page helpful?