{"record":{"id":"9084b233b01f3dc9","repo":"n8n-io/n8n","slug":"index-credentials-pineconeindex-not-found","errorCode":null,"errorMessage":"Index ${credentials.pineconeIndex} not found","messagePattern":"Index (.+?) not found","errorType":"exception","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/vector_store/ChatHubVectorStorePinecone/ChatHubVectorStorePinecone.node.ts","lineNumber":173,"sourceCode":"\t\t\treturn results.map(([doc, score]) => [\n\t\t\t\t{ ...doc, metadata: filterChatHubMetadata(doc.metadata, CHAT_HUB_RETRIEVE_METADATA_KEYS) },\n\t\t\t\tscore,\n\t\t\t]);\n\t\t};\n\n\t\treturn store;\n\t},\n\tasync populateVectorStore(context, embeddings, documents, itemIndex) {\n\t\tconst credentials = await context.getCredentials<ChatHubVectorStorePineconeApiCredentials>(\n\t\t\t'chatHubVectorStorePineconeApi',\n\t\t);\n\t\tconst namespaceName = getUserScopedSlot(context, credentials.namespacePrefix, itemIndex);\n\n\t\tconst client = new Pinecone({ apiKey: credentials.apiKey });\n\n\t\tconst indexes = ((await client.listIndexes()).indexes ?? []).map((i) => i.name);\n\t\tif (!indexes.includes(credentials.pineconeIndex)) {\n\t\t\tthrow new NodeOperationError(\n\t\t\t\tcontext.getNode(),\n\t\t\t\t`Index ${credentials.pineconeIndex} not found`,\n\t\t\t\t{\n\t\t\t\t\titemIndex,\n\t\t\t\t\tdescription: 'Please check that the index exists in your Pinecone account',\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\n\t\tconst pineconeIndex = client.Index(credentials.pineconeIndex);\n\n\t\tawait PineconeStore.fromDocuments(filterChatHubInsertDocuments(documents), embeddings, {\n\t\t\tnamespace: namespaceName,\n\t\t\tpineconeIndex,\n\t\t});\n\t},\n}) {}\n","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/vector_store/ChatHubVectorStorePinecone/ChatHubVectorStorePinecone.node.ts#L155-L191","documentation":"In ChatHubVectorStorePinecone.populateVectorStore the node calls Pinecone listIndexes() and throws a NodeOperationError if the configured index name (credentials.pineconeIndex) is not present. This is a pre-flight check before inserting documents so the user gets a clear message instead of a Pinecone SDK error.","triggerScenarios":"client.listIndexes() returns the list of index names for the API key's project, and credentials.pineconeIndex is not in that list (case-sensitive).","commonSituations":"The Pinecone index has not been created yet; typo in the index name; the API key belongs to a different Pinecone project/environment that does not contain the index; the index was just created and is still initializing (Pinecone reports it as not found until ready).","solutions":["Create the index in the Pinecone console (or via API) with the exact name and matching dimension before running the workflow.","Verify the index name spelling and casing in the node's pineconeIndex credential field.","Confirm the API key points to the Pinecone project that contains the index.","If the index was just created, wait ~1-2 minutes for it to become ready and retry."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// List indexes before populating; create if missing.\nconst indexes = ((await client.listIndexes()).indexes ?? []).map(i => i.name);\nif (!indexes.includes(credentials.pineconeIndex)) {\n  throw new Error(`Pinecone index '${credentials.pineconeIndex}' not found in this project. Found: ${indexes.join(', ')}`);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pre-create Pinecone indexes with the correct dimension before running ingest workflows.","Store the index name in a single shared credential/variable to avoid casing drift.","Confirm the API key's project contains the index before scheduling ingest jobs."],"tags":["vector-store","pinecone","configuration","credentials","chat-hub"],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}