Cannot add file as attachment on Outlook Draft

Hi everyone,

I am having trouble adding a file as attachment to a draft for Outlook.

I tried directly from the attachment of a received email into another draft, or tried through saving it to oneDrive and redownloading it before adding the attachment.

In both cases, I get a 400 error:

{ "error": { "code": "UnableToDeserializePostBody", "message": "were unable to deserialize " } }

and here are some more error details:


NodeApiError: were unable to deserialize at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1318:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2090:20) at Object.microsoftApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/transport/index.js:32:16) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/actions/draft/create.operation.js:225:26) at Object.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/actions/router.js:56:36) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/MicrosoftOutlookV2.node.js:16:16) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:706:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1137:20

Here is my workflow

Can anyone point me to why I can’t add the attachment to a draft ?

Information on your n8n setup

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

I tried replacing outlook with Gmail and it works, but my case really needs outlook.

Small update on my investigation:

When I create an outlook message (directly sending the message), it works.

But if I create a draft it won’t work.

Here is a simplified workflow I’m trying :slight_smile:

Hi @RayBBM, thanks for posting! This is a known issue we’re working on fixing - I’ve also reported this internally :slight_smile:

1 Like

Thank you Aya,

Unfortunately I had to work with Make.com and expose a webhook that my N8N automation will call.

Is there any way to contribute to the open-source code of this automation and help resolve this ?

Hi @RayBBM,

Is there any way to contribute to the open-source code of this automation and help resolve this ?

Of course, you can read all about contributing to our code here and more here: Contributing | n8n Docs

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