我正在使用migration_plus和migration_tools模块尝试使用https://colorfield.be/blog/drupal-8-json-custom-migration将产品从JSON文件导入到Drupal 8中的产品内容类型。
该教程中的本地JSON文件可以正常工作,但是我无法正常工作。 JSON文件由Rest API提供。
JSON文件的结构如下:
{
"data": [
{
"dutchname": "Name of the product",
"purchaseprice": "30.00",
"description": "Description of the product",
}, etc. etc. etc.
现在我正在使用以下内容:
现在我的控制台出现了一个巨大的错误,太长了,无法在此处输出,但是它的开头是:
QLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null: INSERT INTO {node_field_data}
我的代码在做什么错了?
谢谢,迈克