- πΊπΈUnited States freelock Seattle
I'm hitting this as well -- I've debugged to find that the node lookup is successful, and it returns a double-array as the transformed value after finding the result. However, this does not successfully save in the entity reference.
I tried expanding the definition using a sub_process to set the target_id directly, and didn't get it working at first -- but that's because I didn't map the source field in the sub_process. Once I did that, it's working fine! So this is how you do it -- map the target_id using a subprocess, along these lines:
field_library: - plugin: sub_process source: field_library_name process: target_id: plugin: entity_generate source: value value_key: title default_values: status: 1 values: uid: node_uid body: field_library_description field_library_type: field_library_type field_city: field_city field_state: field_state