It's not possible to do proper stubbing when the source of the 'title' field of a node migration is something else than 'title' because the stub title is set to the 'title' source field.

This will work:
title: title

This however won't work:

  title:
    plugin: iterator
    source: field_title
    process:
      value: value

When using an iterator or something else than "title: title" as the source property for the "title" field it may be empty at the moment stubbing occurs. This will result in an IntegrityConstraintViolationException SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null.

Comments

mpp created an issue. See original summary.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

heddn’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

This is working as designed. If there is no value, then it will fail. But using a default_value plugin will use the source value (if it exits) and use the default value (for the stub) until a real value does exist.