Get file path from migration group

Created on 22 April 2019, about 5 years ago
Updated 16 March 2023, over 1 year ago

When we go to admin/structure/migrate/manage/MIGRATION_GROUP/migrations/MIGRATION_ID/source/edit from the Migrate UI and `path` missing in migration we have the following uncaught exception:

`Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: File path () does not exist. in Drupal\migrate_source_csv\Plugin\migrate\source\CSV->initializeIterator() (line 90 of modules/contrib/migrate_source_csv/src/Plugin/migrate/source/CSV.php).`

At the same time, the parameter `path` is specified in the migration group. And we haven't error when run the migration with drush.

I propose add some code for getting `path` parameter from migration group if it missing in the migration config.

πŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Skymen

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.

  • πŸ‡³πŸ‡±Netherlands Summit

    Hi, patch in #2 is not applicable anymore with latest CSV.php.
    This with "composer require 'drupal/migrate_source_csv:^3.5':
    How to proceed please?
    Greetings,

Production build 0.69.0 2024