我正在尝试从命令行运行标准 csv 导入。从 UI 工作时一切正常,但出于开发人员的原因,我想从命令行触发它。
我可以像这样触发导入作业:
php bin/console akeneo:batch:job csv_import
但我得到这个错误:
Job instance "csv_import" running the job "csv_attribute_import" with parameters "Array
(
[filePath] =>
[delimiter] => ;
[enclosure] => "
[escape] => \
[withHeader] => 1
[uploadAllowed] => 1
[invalid_items_file_format] => csv
[user_to_notify] =>
[is_user_authenticated] =>
)
" is invalid because of "
- Array[filePath]:
This value should not be blank. (code c1051bb4-d103-4f74-8988-acbcafc7fdc3)"
这是有道理的,因为我没有将任何文件路径作为参数传递,我该怎么做?
尚方宝剑之说