Drupal migrate gives error when Image file field is not marked as translatable

Created on 23 September 2024, 6 days ago

Problem/Motivation

Drupal migrate gives error when Image file field is not marked as translatable.
Error:
Invalid translation language () specified. (core\lib\Drupal\Core\Entity\ContentEntityBase.php:903)

Steps to reproduce

Step-1: Enable Workflows and Content moderation module
Step-2: Prepare a custom migration for content type which has image field in it
Step-3: Ensure only Image alt and title are marked as translatable
Step-4: Run migration import for source language
Step-4: Run migration import for source translation. You will see below error
Error:
Invalid translation language () specified. (core\lib\Drupal\Core\Entity\ContentEntityBase.php:903)

Proposed resolution

Ideally only alt can be marked as translatable without file and migration should work. Even if content moderation is enabled.

🐛 Bug report
Status

Active

Version

10.3

Component

migration system

Created by

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

Comments & Activities

Production build 0.71.5 2024