Getting Error : "You must declare "ids" as a unique array of fields in your source settings." while trying to migrate for paragraph in Drupal 8 I have created a yml configuration for migration from CSV source into drupal using composer. After running the "drush migrate:import mbe_book_paragharphs", I am getting the error as You must declare "ids" as a unique array of fields in your source settings.

I am using migrate_source_csv 8.x-3.1

id: mbe_book_paragharphs
migration_group: mbe_migrations
label: 'Import book paragraph'
source:
  plugin: csv
  path: '/var/www/html/drupal/author.csv'
  header_row_count: 1
  ids: [id]
process:
  field_mbe_title: Title
  field_mbe_author: Author
destination:
  plugin: 'entity_reference_revisions:paragraph'
  default_bundle: mbe_book
migration_dependencies: null


I need help on how to resolve this issue









In the YML configuration file, instead of "ids", i was using "keys" before but was getting the same error
As the error message suggests, ids needs to be an array, e.g.

source:
  plugin: csv
  path: '/var/www/html/drupal/author.csv'
  header_row_count: 1
  ids: 
    id:
      type: integer


Do note that you're in a YML file here; it looks like you might have tried to use PHP array syntax.