get_records_csv failed to read data from the uploaded file. [Moodle v1.8.2]



CSV(逗號區隔值)檔案批次匯入資料至數位學習管理平台 Moodle 的「資料庫模組」(database module)時,發生錯誤訊息如後:

get_records_csv failed to read data from the uploaded file. Please check file for field name typos and formatting errors.


解決方式:

建議檢查
* csv檔的欄位順序需按照資料庫模組「建立欄位的時間順序」的欄位順序。
* csv檔的欄位名稱,需與資料庫模組中的欄位名稱一致。
* csv檔的「欄位分隔字元」預設是逗點字元(半形逗號),所以需檢查欄位值是否夾雜逗點字元。
* csv檔的欄位值是否夾雜半形引號 "


延伸閱讀

* Database module - MoodleDocs
* Moodle Installation | LemonWiki
* Learning management system - Wikipedia, the free encyclopedia

版本資訊

* Moodle 1.8.2 (2007021520) & 資料庫模組 (2007022601)
* OS: Windows 2003 Server

留言