"Namespace not found" error when trying to upsert for the first time to an index

I’m getting this error when I first try to upsert to an index using a namespace:

HTTP response body: {"code":5,"message":"Namespace not found","details":[]}

My understanding is that the namespace should be created during the first upsert: Use namespaces - Pinecone Docs

Any idea about what can be wrong?

Nevermind. My issue was trying to delete all entries from a namespace that is not there yet.

1 Like

Hi @elio and welcome to the Pinecone community forums.

Thanks for your post and for coming back to update it with the solution!

Glad you got it working.