com.google.appengine.api.datastore.DatastoreNeedIndexException

no matching index found. recommended index is: - kind: Question ancestor: yes properties: - name: questionNumber The suggested index for this query is: <datastore-index kind="Question" ancestor="true" source="manual"> <property name="questionNumber" direction="asc"/> </datastore-index>

Solutions on the web28

  • via GitHub by damithc
    , 11 months ago
    no matching index found. recommended index is: - kind: Question ancestor: yes properties: - name: questionNumber The suggested index for this query is: <datastore-index kind="Question" ancestor="true" source="manual"> <property name="questionNumber" direction="asc"/> </datastore-index>
  • no matching index found. recommended index is: - kind: Greeting ancestor: yes properties: - name: date direction: desc The suggested index for this query is: <datastore-index kind="Greeting" ancestor="true" source="manual"> <property name="date" direction="desc"/> </datastore-index>
  • via Google Groups by fachhoch, 1 year ago
    no matching index found. The suggested index for this query is: <datastore-index kind="ChunkFile" ancestor="true" source="manual"> <property name="index" direction="asc"/> </datastore-index>
  • Stack trace

    • com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. recommended index is: - kind: Question ancestor: yes properties: - name: questionNumber The suggested index for this query is: <datastore-index kind="Question" ancestor="true" source="manual"> <property name="questionNumber" direction="asc"/> </datastore-index> at com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:60) at com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:129) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:96) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:88) at com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:76) at com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:36) at com.google.appengine.api.datastore.BaseQueryResultsSource.getIndexList(BaseQueryResultsSource.java:159) at com.google.appengine.api.datastore.BaseQueryResultsSource.loadMoreEntities(BaseQueryResultsSource.java:192) at com.google.appengine.api.datastore.BaseQueryResultsSource.loadMoreEntities(BaseQueryResultsSource.java:171) at com.google.appengine.api.datastore.QueryResultIteratorImpl.ensureLoaded(QueryResultIteratorImpl.java:148) at com.google.appengine.api.datastore.QueryResultIteratorImpl.hasNext(QueryResultIteratorImpl.java:64) at org.datanucleus.store.appengine.DatastoreElementContainerStoreSpecialization.getChildren(DatastoreElementContainerStoreSpecialization.java:105) at org.datanucleus.store.appengine.DatastoreFKListStore.listIterator(DatastoreFKListStore.java:48) at org.datanucleus.store.mapped.scostore.AbstractListStore.listIterator(AbstractListStore.java:84) at org.datanucleus.store.mapped.scostore.AbstractListStore.iterator(AbstractListStore.java:74) at org.datanucleus.sco.backed.List.loadFromStore(List.java:241) at org.datanucleus.sco.backed.List.iterator(List.java:507) at teammates.storage.entity.FeedbackSession.getFeedbackQuestions(FeedbackSession.java:346) at teammates.common.datatransfer.FeedbackSessionAttributes.<init>(FeedbackSessionAttributes.java:77) at teammates.storage.api.FeedbackSessionsDb.getFeedbackSession(FeedbackSessionsDb.java:131) at teammates.logic.core.FeedbackSessionsLogic.getFeedbackSession(FeedbackSessionsLogic.java:128) at teammates.logic.api.Logic.getFeedbackSession(Logic.java:1354) at teammates.client.scripts.DataMigrationForFeedbackQuestionsToQuestions.doOperation(DataMigrationForFeedbackQuestionsToQuestions.java:69) at teammates.client.remoteapi.RemoteApiClient.doOperationRemotely(RemoteApiClient.java:38) at teammates.client.scripts.DataMigrationForFeedbackQuestionsToQuestions.main(DataMigrationForFeedbackQuestionsToQuestions.java:51)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.