Help needed: Qdrant Upsert Points error with JSON format

Hello everyone,

I’m currently trying to upsert points into Qdrant using n8n.

When I launch the node with the setup shown in the screenshot bellow, I get an error
• if I submit (copy-paste) the content showed directly into the query**,** it works fine ?! :thinking:

Use Case Content Submission Type Outcome
A Using n8n expression {{ myObject }} :cross_mark: Fails with error 400 code
B Copy-pasting expression result :white_check_mark: Works correctly

Hre you can see the {{ myObject }} parameter (failing in cas A) and, selected content that pass when submited (case B)

This makes me think I am missing something in how the object is formated and passed (maybe structure, wrapping, or formatting) in n8n.
But I don’t really understand what I’m doing wrong….

Could someone explain why this error happens in my case, and how I should properly format the payload parameter when using the n8n Qdrant node?

Thanks a lot for your help!

As per our discussion in Discord, the solution to this is to use

{{ $json.points.toJsonString() }}

I’m running into the same issue with the template below and still can’t resolve the error by using {{ $json.points.toJsonString() }}.

Could anyone please help? Any advice would be greatly appreciated!

Originally:


Attempt:

Confirmed the size is 1536:

Template: