[Zope-dev] KeyError on UnIndex.keyForDocument
Florent Guillaume
fg@nuxeo.com
28 Sep 2001 10:37:04 GMT
I had something like that. It turned out that I was doing a catalog
query, sorting on an index that didn't exist on some of the objects.
I made sure the index existed on all my objects.
But still I'd be inclined to consider this a bug.
Florent Guillaume
Nuxeo
Morten W. Petersen <morten@thingamy.net> wrote:
> Hia,
>
> While trying to reindex an entire catalog an error is raised, which looks
> like this:
>
> Traceback (innermost last):
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py,
> line 223, in publish_module
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py,
> line 187, in publish
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Zope/__init__.py,
> line 221, in zpublisher_exception_hook
> (Object: api)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py,
> line 171, in publish
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/mapply.py,
> line 160, in mapply
> (Object: update_instances)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py,
> line 112, in call_object
> (Object: update_instances)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py,
> line 438, in update_instances
> (Object: api)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/WarpFramework/catalog.py,
> line 195, in __call__
> (Object: Traversable)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/ZCatalog.py,
> line 535, in searchResults
> (Object: Traversable)
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py,
> line 666, in searchResults
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/Products/ZCatalog/Catalog.py,
> line 614, in _indexedSearch
> File
> /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/SearchIndex/UnIndex.py,
> line 453, in keyForDocument
> KeyError: (see above)
>
>
> Any clues?
>
> Thanks a whole bunch,
>
> Morten
>
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope )
>
--
Florent Guillaume, Nuxeo SARL (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com