Commerce Product Variation migration: SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''

Created on 12 July 2024, 4 months ago

Problem/Motivation

When trying to run migration on Commerce Product Variations I get this error

Steps to reproduce

Setup migration as per docs and run
drush migrate:duplicate-file-detection my_migration_name

Proposed resolution

I am not sure exactly what the logic should be here but I am guessing that because product variations do not have revisions we can't load them with

$entitites = $this->entityTypeManager->getStorage($this->configuration['entity_type'])->loadMultipleRevisions($results); 

line 294 in /src/Plugin/migrate/source/MediaEntityGenerator.php

However loading with just loadMultiple() works

To test this locally I have added a check for entity type and use the different methods based on that and my migration works.

Again not sure what the best solution is here but if someone could point me in the right direction I would be happy to try and help create a patch.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom chrisscrumping

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024