batch course upload with admin/tool/uploadcourse/cli/uploadcourse.php

batch course upload with admin/tool/uploadcourse/cli/uploadcourse.php

by Sharon Strauss -
Number of replies: 0
Picture of Testers

Hello,

I am trying to automate my course uploads. In Moodle 2.6, the attached file works fine when I upload it via Administration > Site administration > Courses > Upload courses

However, when I try the same upload in batch mode with 


root@vm-moodle:/mnt/data/moodledata_prod_v2/flatfiles/import# sudo -u www-data /usr/bin/php /mnt/data/moodle_prod_v2/admin/tool/uploadcourse/cli/uploadcourse.php --mode=createnew --updatemode=dataonly --file=./addcourses.csv --delimiter=comma

I get the message, 

Moodle course uploader running ...
Invalid input CSV file
Execute Course Upload.


Any ideas?


Thanks.




Average of ratings: -