Having issue to run LlamaCloud/ LlamaIndex

Describe the problem/error/question

New user here. I am trying to download files from Gmail message. However, I only want to send to LlamaIndex PDF files (as Llama only takes PDF).

I had written some code (from Gemini), but when I try sending the file to LlamaIndex, it seems to fail. Llama returns “Cannot read properties of undefined (reading ‘name’)” error.

What is the error message (if any)?

Cannot read properties of undefined (reading ‘name’)

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Any assistance would be greatly appreciated. Thank you.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @erc Welcome to the community!

1) Splitting out attachments
Credit to @Jon for this tip. By doing it this way, you keep all the proper attributes when splitting out the file attachments from the email.

2) Using the LlamaParse API v1
I noticed you are using the older llamaParse API which is a bit flakey and may be deprecated very soon. I shared an updated example in the following post.

Hope this helps!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.