Google App Engine bulkloader issue when using yaml autogenerated configuration and entities with numeric ID

风流意气都作罢 提交于 2019-12-04 09:19:15

You've got the export_transform 'key_id_or_name_as_string', but you don't have a corresponding import transform. Try this:

property_map:
 - property: __key__
   external_name: key
   export_transform: transform.key_id_or_name_as_string
   import_transform: transform.create_foreign_key('Kind', key_is_id=True)

Where 'Kind' is the name of the kind identified in the config file.

This works fine for me:

import_transform: transform.none_if_empty(long)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!