Thank you for this module!

I would like to update existing contacts width feeds (previously imported with another feeds importer). On "RedHen Contact Processor settings" page I set this option and mark email and/or contact_id fields as unique. But feeds module creates always new ones. (The replace method to.)

And when I set contact_id as unique I got an error message: "Entity property contact_id doesn't support writing."

Is this feature implemented?

Comments

fricike’s picture

Component: Documentation » Code
Status: Active » Needs review
StatusFileSize
new513 bytes

The return control is missing from RedhenFeedsContactProcessor.inc on line 168.
reset($contact)->contact_id;
should be
return reset($contact)->contact_id;
Please review it.

bubu’s picture

I can confirm, this patch is working. Thanks!

gcb’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

Thanks for the help identifying and fixing this issue bubu & fricike! I'll get this pushed into Dev today and it'll be in the next release.

alez.k’s picture

When I try to use the update option and map the ID field (unique), it returns this message:

Missing bundle property on entity of type redhen_contact

This happens with 7.x-1.0-alpha2 (with patch) either with dev version.
This is the Feeds log:

Original item
array(
  'id' => 36,
  'cognome' => 'Rossi',
  'nome' => 'Mario',
  [...]
)
Entity
(object) array(
  'feeds_item' => (object) array(
      'entity_id' => 36,
      'is_new' => FALSE,
    ),
)