UnprojectedPropertyError (unseen error until today)

48 views
Skip to first unread message

Erine Gray

unread,
Jun 19, 2012, 5:27:16 PM6/19/12
to google-a...@googlegroups.com
NDB Team--

It appears something happened today as I had some code break, in particular it's this line:

program_dict["provider_key"] = program.provider.urlsafe()
program.provider is a KeyProperty()

is yielding:

UnprojectedPropertyError: Property provider is not in the projection
I'm iterating through the results of a Future:

nationwide_programs = nationwide_programs_future.get_result()

I'm completely puzzled. Did something change I should be looking at?

If so, should I be taking a different approach?


Property provider is not in the projection Traceback (most recent call last): File "/base/data/home/apps/s~searchbertha-hrd/81.359741171174247232/models.py", line 2093, in get_programs nationwide_programs_dict_list, categories = summarize_programs(nationwide_programs, categories, sub_categories, nationwide_searchable_index, indexed) File "/base/data/home/apps/s~searchbertha-hrd/81.359741171174247232/models.py", line 1975, in summarize_programs program.provider_key = program_dict["provider_key"] = program.provider.urlsafe() File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/ndb/model.py", line 1238, in __get__ return self._get_value(entity) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/ndb/model.py", line 1213, in _get_value 'Property %s is not in the projection' % (self._name,))

Guido van Rossum

unread,
Jun 20, 2012, 4:31:52 PM6/20/12
to google-a...@googlegroups.com
This seems a repeat from a post made yesterday. The solution was a bug in user code that wasn't detected by NDB before; the user write SELECT var instead of SELECT *.
Reply all
Reply to author
Forward
0 new messages