Hi Uberto,

> Otherwise if all your existing ids are numeric you can change
> bulkloader to create the id instead of name.

How I can upload exiting data with id as numeric not with name as
string.

My .yaml file format is given below:

transformers:
- kind:User
  connector: csv
  connector_options:
    encoding: utf-8
    columns: from_header
  property_map:
    - property: __key__
      external_name: UserId
      export_transform: datastore.Key.id
    - property: UserName
      external_name: UserName

Any help/suggestion in this regard will be highly appreciated.

Regards,
Subhash


On Jul 22, 7:04 pm, Uberto Barbini <[email protected]> wrote:
> On Thu, Jul 22, 2010 at 3:49 PM, MANISH DHIMAN <[email protected]> wrote:
>
> > Let me explain once again if I missed something earlier. I have an
> > existing task management application & wants to shift it now to google
> > app engine. While I tried porting my existing data into google app
> > engine using BulkLoader 1.3.5 with csv file, all my IDs saved as
> > string (not as long). Suppose I was having a user withid=1 (long), it
> > uploaded into google app engine withname=1(String). Now when I am
> > saving new records directly on google app engine using my application
> > running on google app engine, it saves an another record with
> >id=1(this time it's long). So it's not possible for me to identifiy b/
> > w these two records (one withid=1 & another withname=1).
>
> If you want to use names you have to put some logic in your app and
> create them also for new objects before saving.
>
> Otherwise if all your existing ids are numeric you can change
> bulkloader to create theidinstead ofname.
>
> I think gae behavior is clear, simple and consistent.
>
> cheers
>
> Uberto

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to