Closed (fixed)
Project:
RedHen CRM
Version:
7.x-1.x-dev
Component:
redhen_org
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
5 Jul 2013 at 01:42 UTC
Updated:
28 Feb 2014 at 22:20 UTC
Jump to comment: Most recent
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
Comment #1
micnap commentedOk, not sure it was the best idea to start a new thread. Didn't think it fit with the other but now reconsidering. Sorry!
Comment #2
micnap commentedI 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.
Comment #3
tauno commentedThis issue is related to several others (rules, entity reference, Search API, etc). We're working on some changes to address it. Stay tuned!
Comment #3.0
tauno commentedcorrection
Comment #4
levelos commentedMachine names and exportable status are now removed from RedHen orgs. Wasn't the best idea in the first place ;)
Comment #5
benjf commentedRules 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
Comment #6
levelos commentedThat's a great catch @benjf, thanks. Latest commit changes RedhenOrgEntityController to extend EntityAPIController. Ref. 1aad73aa625eebdc5fc9f212ba5300e639048180.