I am trying to bulk import some data from a csv file into my datastore, but I am getting an error that I don't know what to do with, can anyone help?
I have attached the Session.yaml file that I am using for the transformation. *Here is the command that I am running: * C:\Users\Mr. Connolly>appcfg.py upload_data --config_file="C:\Users\Mr. Connolly\Documents\-WORK-\GoogleApps\Notes Home\bulkloader\Session.yaml" --fil ename="C:\Users\Mr. Connolly\Documents\-WORK-\GoogleApps\TT Data Exports\Green_tblSchedule.csv" --kind=Session --url=http://localhost:8082/_ah/remote_ api *and here is the output:* 12:01 PM Uploading data records. [INFO ] Logging to bulkloader-log-20121005.120140 [INFO ] Throttling transfers: [INFO ] Bandwidth: 250000 bytes/second [INFO ] HTTP connections: 8/second [INFO ] Entities inserted/fetched/modified: 20/second [INFO ] Batch Size: 10 Please enter login credentials for localhost:8082 Email: [INFO ] Opening database: bulkloader-progress-20121005.120140.sql3 [INFO ] Connecting to localhost:8082/_ah/remote_api [INFO ] Starting import; maximum 10 entities per post [ERROR ] [Thread-12] DataSourceThread: Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py", line 1579, in run self.PerformWork() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py", line 1698, in PerformWork for item in content_gen.Batches(): File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py", line 553, in Batches self._ReadRows(key_start, key_end) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py", line 463, in _ReadRows row = self.reader.next() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\bulkload\csv_connector.py", line 218, in generate_import_record for input_dict in self.dict_generator: File "C:\Program Files (x86)\Python27\lib\csv.py", line 104, in next row = self.reader.next() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\bulkload\csv_connector.py", line 54, in utf8_recoder for line in codecs.getreader(encoding)(stream): File "C:\Program Files (x86)\Python27\lib\codecs.py", line 615, in next line = self.readline() File "C:\Program Files (x86)\Python27\lib\codecs.py", line 530, in readline data = self.read(readsize, firstline=True) File "C:\Program Files (x86)\Python27\lib\codecs.py", line 477, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 0: invalid start byte [INFO ] An error occurred. Shutting down... [ERROR ] Error in data source thread: 'utf8' codec can't decode byte 0x85 in position 0: invalid start byte [INFO ] 0 entities total, 0 previously transferred [INFO ] 0 entities (516 bytes) transferred in 3.6 seconds [INFO ] Some entities not successfully transferred -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/owq7gIoj_IsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Session.yaml
Description: Binary data
