import' 2: from /Users/wangyp/Documents/cultivate_1120/lib/cultivate/model.rb:40:in
load_rows'
1: from /Users/wangyp/Documents/cultivate_1120/lib/cultivate/model.rb:50:in load_csv' /Users/wangyp/Documents/cultivate_1120/lib/cultivate/model.rb:50:in
gsub': invalid byte sequence in UTF-8 (ArgumentError)
When I do a large batch work(>100 files), an error occurred. But I'm not able to find the file caused error.
wangyps-MacBook-Pro-2:cultivate wangyp$ ./bin/import /Users/wangyp/Documents/cultivate/dataall Traceback (most recent call last): 11: from ./bin/import:7:in'
5: from /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:20:in
<main>' 10: from /Users/wangyp/Documents/cultivate/lib/cultivate.rb:11:in
traverse' 9: from /Users/wangyp/Documents/cultivate/lib/cultivate.rb:11:ineach' 8: from /Users/wangyp/Documents/cultivate/lib/cultivate.rb:15:in
block in traverse' 7: from /Users/wangyp/Documents/cultivate/lib/cultivate.rb:15:ineach' 6: from ./bin/import:8:in
block inimport' 4: from /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:20:in
inject' 3: from /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:20:ineach' 2: from /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:29:in
block in import' 1: from /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:57:inprocess' /Users/wangyp/Documents/cultivate/lib/cultivate/model.rb:65:in
rescue in process': undefined local variable or method `path' for Cultivate::Patient:Class (NameError) wangyps-MacBook-Pro-2:cultivate wangyp$