# Im facing an issue related to index.upsert

**URL:** https://community.pinecone.io/t/im-facing-an-issue-related-to-index-upsert/5764
**Category:** Support
**Tags:** vector-database
**Created:** [May 31, 2024, 7:27pm UTC](https://community.pinecone.io/t/im-facing-an-issue-related-to-index-upsert/5764 "2024-05-31T19:27:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![9looo7y77](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/9looo7y77/32/2723_2.png) [@9looo7y77](https://community.pinecone.io/u/9looo7y77)
#### Post date: [May 31, 2024, 7:27pm UTC](https://community.pinecone.io/t/im-facing-an-issue-related-to-index-upsert/5764/1 "2024-05-31T19:27:47Z")

</div>

index.upsert(vectors=[{“id”: unique\_id, “values”: embedding}])  
^^^^^^^^^^^^  
AttributeError: ‘function’ object has no attribute ‘upsert’

---

<div class="post-metadata">

### Author: ![ZacharyProser](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/zacharyproser/32/1146_2.png) [@ZacharyProser](https://community.pinecone.io/u/ZacharyProser)
#### Post date: [June 3, 2024, 3:05pm UTC](https://community.pinecone.io/t/im-facing-an-issue-related-to-index-upsert/5764/2 "2024-06-03T15:05:54Z")

</div>

Hi @9looo7y77, and welcome to the Pinecone community forums!

Thank you for your question.

Could you please share all your relevant code, before and after this line causing the issue, as that will help us to debug what might be going wrong.

Please be careful not to post any secrets such as your Pinecone API key.

Looking forward to your response.

Best,  
Zack
