The migrate module is expecting an integer as the unique id for entities. Redhen orgs are using the name field as the unique id which is text. When the migrate module attempts to save the name field in its destid1 and destid2 integer fields, the migrate module chokes and spits out a generic "New object was not saved, no error provided" error. The new Redhen org entities do get saved but the mapping from the source to the destination ids doesn't, making it impossible to rollback an import.

Not sure what the solution is.

Continuation of this thread - https://drupal.org/node/1781538

Comments

micnap’s picture

Ok, not sure it was the best idea to start a new thread. Didn't think it fit with the other but now reconsidering. Sorry!

micnap’s picture

I tried messing with the machine name/destid1 but it got too messy when I went to import the related membership and notes data. So, I ended up reverting from the dev version back to 1.3 so I could get the data imported for a weekend launch.

tauno’s picture

Title: Using machine name as unique id for orgs breaks migrate module integration » Using machine name as unique id for orgs breaks migrate, rules, entity reference, etc.
Assigned: Unassigned » levelos

This issue is related to several others (rules, entity reference, Search API, etc). We're working on some changes to address it. Stay tuned!

tauno’s picture

Issue summary: View changes

correction

levelos’s picture

Issue summary: View changes
Status: Active » Fixed

Machine names and exportable status are now removed from RedHen orgs. Wasn't the best idea in the first place ;)

benjf’s picture

Rules are still not triggered, since 'RedhenOrgEntityController' extends 'EntityAPIControllerExportable' (which does not call rules_invoke_event() in its invoke() method).

Is this the correct issue for this problem?

thank you!
-Benj

levelos’s picture

That's a great catch @benjf, thanks. Latest commit changes RedhenOrgEntityController to extend EntityAPIController. Ref. 1aad73aa625eebdc5fc9f212ba5300e639048180.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.