Throw SkipRowException in CommercePrice process plugin when there is no currency_code

Created on 27 June 2022, over 2 years ago
Updated 12 May 2024, 6 months ago

Problem/Motivation

I have a problem trying to migrate from D7-D9.I'm migrating the products and the field that gives the error is the field_cost.

"upgrade_commerce1_product_variation_product:field_cost: CommercePrice input array is invalid for destination 'field_cost'"

Some products are migrated as shown in the screenshot below.

Any advice? Thanks in advance

Steps to reproduce

1.Run commerce migrations for product variations

Proposed resolution

Throw MigrateSkipRowException when there is no currency code.

Remaining tasks

Should there be an option to use the default currency code?

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Drupal Commerce 1.x

Created by

πŸ‡ͺπŸ‡ΈSpain byParlon

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024