# Metadata problem

**URL:** <https://community.pinecone.io/t/metadata-problem/2831>\
**Category:** Support\
**Tags:** vector-database\
**Created:** [July 29, 2023, 4:04pm UTC](https://community.pinecone.io/t/metadata-problem/2831 "2023-07-29T16:04:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxwell1269360076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/maxwell1269360076/32/1148_2.png) [@maxwell1269360076](https://community.pinecone.io/u/maxwell1269360076)\
**Post date:** [July 29, 2023, 4:04pm UTC](https://community.pinecone.io/t/metadata-problem/2831/1 "2023-07-29T16:04:27Z")

</div>

Hi guys

When I am trying to upsert document with pinecone, I see this error “ErrorWithoutStackTrace: PineconeClient: Error calling upsert: ErrorWithoutStackTrace: metadata size is 210710 bytes, which exceeds the limit of 40960 bytes per vector”

How can I resolve this issue?

Thank you  
Max

---

<div class="post-metadata">

**Author:** ![gdj0nes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/gdj0nes/32/223_2.png) [@gdj0nes](https://community.pinecone.io/u/gdj0nes)\
**Post date:** [July 29, 2023, 10:38pm UTC](https://community.pinecone.io/t/metadata-problem/2831/2 "2023-07-29T22:38:54Z")

</div>

You’ll need to upload less metadata per record. A common reason for this error is uploading large documents. Often times the solution is to split large documents into chunks before embedding them and upsetting to pinecone. Typically a large document is not well represented by a single embedding.

---

<div class="post-metadata">

**Author:** ![maxwell1269360076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/maxwell1269360076/32/1148_2.png) [@maxwell1269360076](https://community.pinecone.io/u/maxwell1269360076)\
**Post date:** [July 30, 2023, 12:57am UTC](https://community.pinecone.io/t/metadata-problem/2831/3 "2023-07-30T00:57:41Z")

</div>

Thank you, I was wondering if I can do the chunk spliting on pinecone? How do I do it?

---

<div class="post-metadata">

**Author:** ![muhammad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/muhammad/32/1320_2.png) [@muhammad](https://community.pinecone.io/u/muhammad)\
**Post date:** [September 12, 2023, 7:54pm UTC](https://community.pinecone.io/t/metadata-problem/2831/4 "2023-09-12T19:54:08Z")

</div>

Right now, I am using langchain to upload text into an index.

I am not even sending any metadata to the index, but I still get the error. Why could that be the case?

---

<div class="post-metadata">

**Author:** ![derbenedikt.sterra](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/derbenedikt.sterra/32/1211_2.png) [@derbenedikt.sterra](https://community.pinecone.io/u/derbenedikt.sterra)\
**Post date:** [June 12, 2024, 9:59am UTC](https://community.pinecone.io/t/metadata-problem/2831/5 "2024-06-12T09:59:29Z")

</div>

Hey im facing the same strange issue. I load my data, split them as usual and try put in inside the vs but immfacing every time the same issue: [problem.py (github.com)](https://gist.github.com/wired87/7bcbefb76d212abaadfe8bbf4df04dd4)

So metadata contains every time just a “source” field which will be rendered directly before try pass it to poinecone with the url in it but im still getting the error
