Problem/Motivation
Ran into a problem where migration_lookup was failing when the lookup was being done on a derivation of a configured migration.
id: d7_commerce_product_variation
product_id:
plugin: migration_lookup
migration: d7_commerce_product
source: entity_idd7_commerce_product has a deriver and after configuration, one of the derivations is 'd7_commerce_product_hats'. When I ran drush mim d7_commerce_product_variation_hats it was always failing because the migration_lookup shown above was failing. Debugged that and found that it was using the wrong name for the map table. Instead of migrate_map_d7_commerce_product_hats (the table name in the db) it was using migrate-map_d7_commerce_product__hats (extra underscore). I didn't investigate any further.
Just noting it here in case someone encounters something like this.
Proposed resolution
TBD
Remaining tasks
Reproduce the error
Comments
Comment #2
edysmpmigration_lookup proces plugin is in core.
Comment #3
heddnMoving queues
Comment #6
kkri commentedI am having the same issue migrating products.
When trying to resolve the product variations, MigrateLookup.php looks in the wrong table (migrate_map_commerce1_product_variation__apparel instead of migrate_map_commerce1_product_variation_apparel) and finds nothing.
Comment #16
smustgrave commentedThis came up as the daily BSI target
Unfortunately not super familiar with the migrate system but wonder if #2845340: migrate mapping & messages table names are truncated, can lead to incorrect mapping lookups may be related with regards to the look up and wrong name?
Comment #17
quietone commentedThis is definitely a different problem from the truncated names problem. An extra underscore character appears in the name of the lookup table.