How to define the destination with the skip_on_value plugin?

Created on 15 March 2018, over 6 years ago
Updated 7 May 2024, about 2 months ago

Hello,

In this example, we can see how to define the skip_on_value plugin inside the "Type" section: https://www.drupal.org/project/migrate_plus/issues/2902867 β†’

But, in the "Type" section of my configuration file i have still the destination definition:

    plugin: default_value
    default_value: mycontenttype

If I insert these 2 elements in "Type", the no-skipped nodes are created, but these nodes haven't any content type. Put 2 plugins in the "Type" section don't work, e.g.:

process:
  type:
    -
      plugin: skip_on_value
      method: row
      equals: true
      value:
        - myvalue
      source: myfield
    -
      plugin: default_vallue
      default_value: mycontenttype

Is there a solution to skip desired nodes and define a content type for the created nodes?

Thanks.

πŸ’¬ Support request
Status

Active

Component

Documentation

Created by

πŸ‡«πŸ‡·France kumkum29

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

Comments & Activities

Not all content is available!

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

  • πŸ‡¬πŸ‡§United Kingdom joachim

    That seems weird -- the skip_on_value plugin returns the incoming value when it doesn't skip. I would debug to make sure what's going on (with the migrate_devel module's process plugin for example).

    You can also use a dummy destination for a skip process plugin, e.g.

    process:
      dummy_field_nothing_will_be_saved:
        -
          plugin: skip_on_value
          method: row
          equals: true
          value:
            - myvalue
          source: myfield
      
Production build 0.69.0 2024