I have an Azure function that runs with a CosmosDBTrigger. It points correctly to my target database and collection. The CreateLeaseCollectionIfNotExists
is set to true
and the LeaseCollectionName
is set to leases
. When the function is started I receive this error:
Error indexing method ' * * ' Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException : Error indexing method '***' ---> System.InvalidOperationException : Cannot create Collection Information for *** in database *** with lease leases in database *** : Partition key path /id is invalid for Gremlin API. The path cannot be '/id', '/label' or a nested path such as '/key/path'
It seems like Azure is creating the leases graph with an '/id' as a partition. Where did I go wrong?