If importer loads row with empty fields, processor should check if entity field is required. If entity's field is required and field form parser is empty, processor should not create entity.

Comments

pcambra’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please elaborate a little where the problem happens? I don't really get how to reproduce this. An example will be great!

honza pobořil’s picture

Importer loads csv file with products and creates commerce products entities. At a few rows price or SKU is missing. This rows should be skipped. I suggest to check field settings (fields on target entity - commerce_product) if required is turned on (SKU is required always) and eventually cancel creating of new product. Of course this feature should be optionaly for any mapping.

pcambra’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Not sure if there's a lot of things to do here, I'd say this is feeds behavior, the most you can do is to mark a field as unique, but it will be created empty anyways.

I'd say you need to open an issue in feeds module itself for this.