Hi, I created a new app and I want to fill it with data from an old
django app using csv files.


The Java app is like:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Callerid {
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Key key;

        @Persistent
        private String num;

        @Persistent
        private Key queue;


The config.yml is like:

- kind: Callerid
  connector: csv
  connector_options:
  property_map:
    - property: __key__
      external_name: key
      export_transform: transform.key_id_or_name_as_string

    - property: queue
      external_name: queue
      import_transform: transform.create_foreign_key('Queue')
      export_transform: transform.key_id_or_name_as_string

    - property: num
      external_name: num


And finally a csv example:

key,queue,num
111,,900000000

When i run: appcfg.py upload_data --config_file=config.yml --
filename=Callerid.csv --url=http://APPID.appspot.com/remote_api --
application=APPID --kind=Callerid

Returns this error: BadValueError: name must not be empty.

By the way, i can entry a new entity via the admin site, with null
values in the queue field.

What is wrong? how can i upload null values?

Thanks!

-- 
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