By cthrucode

2019-01-11 00:43:55 8 Comments

   uid: EIN
   field_contractor_name: CONTACT
   name: CONTACT
      plugin: default_value
      default_value: 'Full Name'

I am using the migrate source CSV module. I have a few records that DO NOT have the 'CONTACT' field set or is null. My drupal migration fails for this reason. I tried using the default_value plugin that ships with core but i keep getting the following error:

 A colon cannot be used in an unquoted mapping value at line 42 (near " default_value: full

How do I get a default value added to the name field when a value is not present on the record?


Related Questions

Sponsored Content

0 Answered Questions

Custom linkfield migration with csv

2 Answered Questions

How to add a default taxonomy term to all nodes in a migration?

1 Answered Questions

[SOLVED] Import a date from CSV to Date field

  • 2018-09-14 10:37:12
  • MiharbKH
  • 125 View
  • 1 Score
  • 1 Answer
  • Tags:   8 migration

1 Answered Questions

1 Answered Questions

[SOLVED] Delete or unpublish content from old migration, if source rows no longer exist

  • 2017-06-09 18:30:08
  • donquixote
  • 257 View
  • 1 Score
  • 1 Answer
  • Tags:   7 migration

1 Answered Questions

1 Answered Questions

[SOLVED] What is correct destination for fid in destination image field?

  • 2017-01-23 19:09:23
  • wonder95
  • 301 View
  • 0 Score
  • 1 Answer
  • Tags:   8 files migration

1 Answered Questions

[SOLVED] Unknown map column when migrating users from CSV file

Sponsored Content