I took a dig through the python.  On the line that it was choking on
(line 75 in csv_connector.py), I added "if v".  Fixed the problem.

On Feb 17, 4:41 pm, Kat Bradley <[email protected]> wrote:
> I'm trying to download data from my datastore using the bulk loader.  I can
> generate the config yaml file just fine.  But when I try to use it to
> download my data, it explodes with the following error:
>
>   File
> "/home/kbradley/google_appengine/google/appengine/ext/bulkload/csv_connector.py",
> line 75, in writerow
>     row_encoded = dict([(k, self.encoder(v)[0]) for (k, v) in
> row.iteritems()])
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> I'm assuming the problem is that something in my datastore is null or
> missing, but I'm not sure what specifically it doesn't like.  Previously, I
> had a similar error regarding some of the Blobs in my datastore. Wrapping
> the export transform in transform.none_if_empty() for all of the blobs
> appeared to have done the trick.  At least, it stopped giving me errors
> about a specific field, and is now giving me this general error.
>
> The logs show that the bulk loader going through every last entry in my
> datastore.  So although there are plenty of fields that are null or missing,
> it didn't seem to have a problem with it until the end.
>
> Any thoughts on what the problem might be?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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.

Reply via email to