# Outlook NodeApiError: were unable to deserialize

**URL:** <https://community.n8n.io/t/outlook-nodeapierror-were-unable-to-deserialize/41980>\
**Category:** Known Issues\
**Tags:** outlook\
**Created:** [March 5, 2024, 7:47am UTC](https://community.n8n.io/t/outlook-nodeapierror-were-unable-to-deserialize/41980 "2024-03-05T07:47:59Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![LucBerge](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lucberge/32/33725_2.png) [@LucBerge](https://community.n8n.io/u/LucBerge)\
**Post date:** [January 24, 2026, 9:43pm UTC](https://community.n8n.io/t/outlook-nodeapierror-were-unable-to-deserialize/41980/17 "2026-01-24T21:43:24Z")

</div>

Hey,

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

- Send message: uses a [for loop](https://github.com/n8n-io/n8n/blob/cb0d2a2a52be5c01fc801d30fc3c1d120d506c98/packages/nodes-base/nodes/Microsoft/Outlook/v2/actions/message/send.operation.ts#L231)
- Create draft message: uses a [Promise.all](https://github.com/n8n-io/n8n/blob/cb0d2a2a52be5c01fc801d30fc3c1d120d506c98/packages/nodes-base/nodes/Microsoft/Outlook/v2/actions/draft/create.operation.ts#L222)

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`](https://github.com/n8n-io/n8n/blob/cb0d2a2a52be5c01fc801d30fc3c1d120d506c98/packages/nodes-base/nodes/Microsoft/Outlook/v2/actions/messageAttachment/add.operation.ts#L109C10-L109C15) too…

---

_[View the full topic](https://community.n8n.io/t/outlook-nodeapierror-were-unable-to-deserialize/41980)._
