Outlook NodeApiError: were unable to deserialize

Hello everyone,

I’m currently facing an issue when posting a message on n8n (cloud version) and adding an attachment to Outlook (also cloud version). I’m encountering a “NodeApiError: were unable to deserialize” error each time I attempt to include an attachment. I’ve confirmed that the binary data is being correctly retrieved, and I’m using the correct variable name for the attachment. However, the error persists. Has anyone encountered a similar issue or have any insights on how to resolve this?

Thank you in advance for your help!

4 Likes

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:
1 Like
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • n8n version: 1.29.1
  • Database (default: SQLite): -
  • n8n EXECUTIONS_PROCESS setting (default: own, main): -
  • Operating system: -

Thank you in advance for your help!

Hey @olivier_sabban,

Welcome to the community :raised_hands:

I have just given this a quick go and have managed to reproduce it and have created NODE-1223 as the internal ticket to get this fixed.

1 Like

Hi @Jon,

I am currently facing the same issue on n8n cloud version 1.45.1. Has the issue been fixed in a newer version? Unfortunately I couldn’t find anything related on GitHub. Thanks for looking into it!

1 Like

Same, unable to deserialize error. This is a quite a setback as the msft set meeting node has no option to add attendees and I have to use HTTP node which now produces this error. Stuck.
HTTP Node version
4.2 (Latest)
n8n version
1.75.2 (Cloud)

1 Like

here with same request. can n8n already fix this please?

1 Like

I am facing the same issue with being unable to deserialize attachments with the Outlook node. This is a super important feature for me. Thanks for your help!

1 Like

Experiencing the same issue trying to add an attachment to an email usong the outlook node

4 Likes

Hi! Having the same issue here. Any updates??

1 Like

Same here!

1 Like

the problem still exists :frowning:

1 Like

Also receiving the same issue when trying to attach an image to the outlook message.

1 Like

Problem still exists for me as well, any update on this?

1 Like

Any intention to fix this? This has been a known issue for quite some time now.

I still have the same problem when trying to attach files via the Outlook node in the cloud version. Does anyone have a workaround for this?

Hey,

The main difference I see is the way `attachments` field is created for the message object:

In theory, the Promise.all will do the same as the for loop but can some try with a for loop instead ?

Also body.attachments is not defined as IDataObject[] but is by default object[]. It does not implement the correct interface.

This can cause to use the wrong serialization method leading to error when Microsoft deserialize the request:

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

@Jon can you check and confirm ?

Edit: Add attachment node also fails, probably because data is not defined as `IDataObject` too…

Any updates on this issue? Seems to have been an open issue for well over a year now.

This is a widly known issue since a while : Search results for 'deserialize' - n8n Community

Can someone from N8N check my comment above please ?

1 Like