BadRequestError: not initialized: missing field: multiple

11 views
Skip to first unread message

Mike

unread,
May 6, 2009, 7:08:51 AM5/6/09
to Google App Engine
From 05-05 05:31PM 58.369 I'm getting this error.
I've changed nothing in my code.

===============================
not initialized: missing field: multiple
Traceback (most recent call last):
File
"/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
line
503, in __call__
handler.post(*groups)
File "/base/data/home/apps/citazionitk/12.332523150282054816/fb.py",
line
355, in post
citazioni =
citazionitk.Citazione2.all().search(testo).fetch
(fb_citazionitk.search_limi
t+1,ctk_offset)
File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py",
line 1390, in fetch
raw = self._get_query().Get(limit, offset)
File "/base/python_lib/versions/1/google/appengine/api/
datastore.py",
line 942, in Get
return self._Run(limit, offset)._Next(limit)
File "/base/python_lib/versions/1/google/appengine/api/
datastore.py",
line 886, in _Run
_ToDatastoreError(err)
File "/base/python_lib/versions/1/google/appengine/api/
datastore.py",
line 1965, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
BadRequestError: not initialized: missing field: multiple
===============================

How could this be fixed?
Thanks.

Nick Johnson (Google)

unread,
May 7, 2009, 12:25:30 PM5/7/09
to google-a...@googlegroups.com
Hi,

There was a temporary error that caused this problem for some of our
users. It should now be fixed. Are you still experiencing this issue?

-Nick Johnson

ryan

unread,
May 7, 2009, 1:25:47 PM5/7/09
to Google App Engine
mike, it looks like you're using a version of SearchableModel. are you
using it from google.appengine.ext.search directly? or are you using a
modified version? if so, the modified version probably needs to be
updated. would you mind pointing me to the modified version you're
using, and ideally whoever wrote it, so i can help them update it?

in the meantime, switching your model class to use
google.appengine.ext.search.SearchableModel should fix the error.

Mike

unread,
May 7, 2009, 4:43:10 PM5/7/09
to Google App Engine
Thanks for your replies. I still have the error, but it's true: I'm
using a modified version of the searchable model.

ryan, I'm using the modified version reported here:
http://appengineguy.com/2008/06/how-to-full-text-search-in-google-app.html
I'm going to try a diff with the last sdk version.

Regards,
Mike

Mike

unread,
May 7, 2009, 4:57:33 PM5/7/09
to Google App Engine
Fixed!!

I've added the line 263:

prop.set_multiple(len(keywords) > 1)

and now it works.
Thanks for pointing me in the right direction!

Regards,

Mike
Reply all
Reply to author
Forward
0 new messages