Duplicates in Outlook Attachment download

Describe the problem/error/question

Hi, I am working on this workflow, Image attached, I have 3 items in input, each contributes to a single attachment, so I have 3 attachments, but in output I see 9 attachment downloaded, could you please help what is wrong with it.

What is the error message (if any)?

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.)

Share the output returned by the last node

Information on your n8n setup

  • n8n Cloud*

Hey @Pechi77,

Welcome to the community :cake:

Is it the same attachment 9 times or 3 different attachments 3 times each?

Thanks for your response,

I all all 3 images repeated 3 times in the response, let me share the json response here.

type or paste code here
```[
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAIlUswnNyixMrp5YU9u2BOI=",
    "lastModifiedDateTime": "2023-11-16T08:24:31Z",
    "name": "378d86d1-481a-4701-bf74-bf9d62d0e4ac.jpeg",
    "contentType": "image/jpeg",
    "size": 612421,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAAbnlESEok5EqfRHbYkYhiQ=",
    "lastModifiedDateTime": "2023-11-17T15:07:18Z",
    "name": "95521098-_NSF2402.JPG",
    "contentType": "image/jpeg",
    "size": 1866826,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "application/pdf",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAHsaGcVTuaZLri_N-4uAF8E=",
    "lastModifiedDateTime": "2023-11-16T07:49:09Z",
    "name": "UAN_PF_account_detail.pdf",
    "contentType": "application/pdf",
    "size": 48529,
    "isInline": false,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAIlUswnNyixMrp5YU9u2BOI=",
    "lastModifiedDateTime": "2023-11-16T08:24:31Z",
    "name": "378d86d1-481a-4701-bf74-bf9d62d0e4ac.jpeg",
    "contentType": "image/jpeg",
    "size": 612421,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAAbnlESEok5EqfRHbYkYhiQ=",
    "lastModifiedDateTime": "2023-11-17T15:07:18Z",
    "name": "95521098-_NSF2402.JPG",
    "contentType": "image/jpeg",
    "size": 1866826,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "application/pdf",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAHsaGcVTuaZLri_N-4uAF8E=",
    "lastModifiedDateTime": "2023-11-16T07:49:09Z",
    "name": "UAN_PF_account_detail.pdf",
    "contentType": "application/pdf",
    "size": 48529,
    "isInline": false,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAIlUswnNyixMrp5YU9u2BOI=",
    "lastModifiedDateTime": "2023-11-16T08:24:31Z",
    "name": "378d86d1-481a-4701-bf74-bf9d62d0e4ac.jpeg",
    "contentType": "image/jpeg",
    "size": 612421,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "image/jpeg",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAAbnlESEok5EqfRHbYkYhiQ=",
    "lastModifiedDateTime": "2023-11-17T15:07:18Z",
    "name": "95521098-_NSF2402.JPG",
    "contentType": "image/jpeg",
    "size": 1866826,
    "isInline": true,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  },
  {
    "@odata.type": "#microsoft.graph.fileAttachment",
    "@odata.mediaContentType": "application/pdf",
    "id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAABEgAQAHsaGcVTuaZLri_N-4uAF8E=",
    "lastModifiedDateTime": "2023-11-16T07:49:09Z",
    "name": "UAN_PF_account_detail.pdf",
    "contentType": "application/pdf",
    "size": 48529,
    "isInline": false,
    "outlook_message_id": "AQMkADAwATNiZmYAZC1kM2E1LWQwMTgtMDACLTAwCgBGAAADI569XL2RQka8BLzNTqNngwcAuD9wiHJASEaF3kpXxOhFoAAFmlDQqQAAALg-cIhyQEhGhd5KV8ToRaAABZpQ7A8AAAA="
  }
]```

Hey @Pechi77,

Can you share your workflow? I can’t work out if maybe there is a bug with the node or if maybe something is calling the node mulltiple times.

Hi @Jon

Sure, here is my workflow json.

Hey @Pechi77,

That looks ok, I will set up an Outlook account and see if I can reproduce it.

1 Like

I’ve the same issue when using gettAll: messageAttachment and download: messageAttachment. Any idea how to resolve? :slight_smile:

I solved the issue by addin “Loop over items” after the “getAll: messageAttachment” :slight_smile:

1 Like

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