Skip to content Skip to sidebar Skip to footer

Key Path Element Must Be Complete

I'm working through some documentation for the google cloud datastore API from google.cloud import datastore datastore_client = datastore.Client(project='PROJECTNAME') query = data

Solution 1:

I believe entity['collection_key'] = key is the culprit (key is datastore_client.key('VideosToCollections') which has no ID hence the path is incomplete). Perhaps you meant to set it to the key of v. So entity['collection_key'] = v.key


Post a Comment for "Key Path Element Must Be Complete"