Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 884783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:48:04+00:00 2026-05-15T12:48:04+00:00

My application uses Django non-rel . I don’t have access to model. I have

  • 0

My application uses Django non-rel. I don’t have access to model.

I have my bulkloader.yaml file autogenerated by appcfg.py create_bulkloader_config.

Problem is entities numeric ID’s are being imported as string key names. So if I export entity with int ID of, for example, ’62’, it gets imported as entity with string key name of ’61’ which screws up Django.

Revelant bulkloader.yaml Fragment:

 property_map:
  - property: __key__
    external_name: key
    export_transform: transform.key_id_or_name_as_string

I’m trying to setup download/upload od data using bulkloader, and I want to have data as easy to understand format (like .csv) — so using bulkloader.py --dump (...) is not a viable option since it gives me sqlite3 files that have entities contents pickled as a single row.

EDIT

I tried doing what @Nick suggested and I got an exception:

 ErrorOnTransform: Numeric keys are not supported on input at this time.

Does this mean that I have to stick to bulkloader.py (that uses that werid sqlite format) or I messed something? 😉

Header of Transformer:

- kind: auth_user
    connector: csv
    connector_options:
      encoding: utf-8
      skip_import_header_row: True
      print_export_header_row: True

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

Whole Stacktrace:

      Traceback (most recent call last):
      File "/opt/google/appengine/google/appengine/tools/adaptive_thread_pool.py", line 150, in WorkOnItems
        status, instruction = item.PerformWork(self.__thread_pool)
      File "/opt/google/appengine/google/appengine/tools/bulkloader.py", line 693, in PerformWork
        transfer_time = self._TransferItem(thread_pool)
      File "/opt/google/appengine/google/appengine/tools/bulkloader.py", line 848, in _TransferItem
        self.content = self.request_manager.EncodeContent(self.rows)
      File "/opt/google/appengine/google/appengine/tools/bulkloader.py", line 1269, in EncodeContent
        entity = loader.create_entity(values, key_name=key, parent=parent)
      File "/opt/google/appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 385, in create_entity
        return self.dict_to_entity(input_dict, self.bulkload_state)
      File "/opt/google/appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 131, in dict_to_entity
        instance = self.__create_instance(input_dict, bulkload_state_copy)
      File "/opt/google/appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 209, in __create_instance
        'Numeric keys are not supported on input at this time.')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:48:05+00:00Added an answer on May 15, 2026 at 12:48 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up a Django application that uses images. I think I have
I'm developing an web application that uses a non-relational database as a backend (django-nonrel
Currently our Java application uses the values held within a tab delimited *.cfg file.
I have an application in python with a custom main loop (I don't believe
My Django application uses memcached via cmemcache. An issue sprung up when I was
I am writing a Python/Django web application that uses OAuth (for the TwitterAPI, not
I'm writing tests for a Django application that uses an external data source .
I am writing an application in Django, which uses [year]/[month]/[title-text] in the url to
My application uses Django's login view from django.contrib.auth.views.login, with a custom template I made.
I want to develop an application which uses Django as Fronted and Celery to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.