It is probably conflicting because datastore entities already have an
intrinsic "id" property.  Try renaming your "id" to something like
"MyID"

On Jul 18, 10:03 am, Yao <wangyao840...@gmail.com> wrote:
> I have created a db Entity named TextRec , and the Entity has an
> property named id by me.
>
> I want to create an index of the id, but the appcfg.py goes error. The
> error is below:
>
> Saving authentication cookies to C:\Documents and Settings
> \Administrator/.appcfg
> _cookies
> Cloning 1 application file.
> Closing update.
> Uploading index definitions.
> Error 400: --- begin server output ---
> Creating a composite index failed: This index:
> entity_type: "TextRec"
> ancestor: false
> Property {
>   name: "id"
>   direction: 2
>
> }
>
> is not necessary, since single-property indices are built in. Please
> remove it f
> rom your index file and upgrade to the latest version of the SDK, if
> you haven't
>  already.
> --- end server output ---
>
> And the index isn't created.
>
> I think the property named id by me was conflict with something, and
> cause the index creating failed.
>
> I want to know how to create an index for my property id.
--~--~---------~--~----~------------~-------~--~----~
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-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to