I'm importing daily changes from our personnel data via a csv file.

The source file contains an employee id number which is used as a Unique id field for the import.

However there are multiple date fields in import file and only some of them contain a date for a given record. Dates that are irrelevant to a particular record change are empty. That is within the csv they look like this:
,"",

On import, Feeds is putting in today's date for any date field that is empty instead of just skipping it and leaving it empty in Drupal.

I can't find any settings with the importer interface to alter this behavior, nor have I seen anything within the content type field definitions options.

Is there a way to alter this behavior within Feeds?

Thanks for your help!

Comments

chilic’s picture

I have a similar problem. To fix I use temper module.

bmenk’s picture

Do you mean the Feeds Tamper module? Could you provide some details on how you use it to fix this?

Thanks

bmenk’s picture

I've installed Feeds Tamper and for all the date fields, I've added this plugin: "Filter Empty Items", which sounds like it does what I want, which is to ignore empty fields rather than to insert today's date into them.

Doesn't seem to make any difference.

Is there some other plugin I should be applying to get this to work, or is this just not something I can do with Feeds & Feeds Tamper?

bmenk’s picture

I found the patch at #51 over in this thread which works for what I need for now.

MegaChriz’s picture

Component: Feeds Import (feature) » Code
Status: Active » Closed (fixed)