Duplicate Properties

47 views
Skip to first unread message

Kyle Mulka

unread,
Jul 18, 2011, 7:09:55 PM7/18/11
to Google App Engine
After I ran create_bulkloader_config, I got this in my bulkloader.yaml
file:

# Warning: This property is a duplicate, but with a different
type.
# TODO: Edit this transform so only one property with this name
remains.
- property: address
external_name: address
# Type: PostalAddress Stats: 9 properties of this type in this
kind.
import_transform: db.PostalAddress

This seems like a remnant of a data transformation I did a month or
two ago. I don't see any and PostalAddress properties in the datastore
any more, so where is this coming from? Can an entity really have two
properties with the same name but different types?? And, how would I
find those entities and remove the extra property?

Robert Kluin

unread,
Jul 27, 2011, 1:36:26 AM7/27/11
to google-a...@googlegroups.com
Hey Kyle,
It sounds like you've changed your model definition. Perhaps the
bulkloader is getting the info on properties from the datastore stats
or something.

The datastore is schemaless, every entity of a given kind could have
different properties or properties with the same name and different
type. After you changed your types, did you make sure to correct any
existing data (if needed)?

Robert

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

Tim Hoffman

unread,
Jul 27, 2011, 9:01:30 PM7/27/11
to google-a...@googlegroups.com
I would put money on a schema change and there are entities in the datastore with different types for the same property name ;-)

I am pretty sure the Stats only identify candidate kinds to download and not the actual property name/types during the download.

Tim
Reply all
Reply to author
Forward
0 new messages