[ClickUp > Set Custom Field] 400 - Value is not a valid string

Describe the problem/error/question

I’m trying to update a custom text field on a task on ClickUp.

The value is a number.

Sending it as is, I receive the error I reported in the subject.

If I “force” it to a string, the call is successful. But I have to actually" force it as a string adding a “string char”, otherwise, the value is sent as an integer.

The tests

  • {{ $json.id.toString() }}: fail
  • {{ $json.id + '' }}: fail
  • {{ String($json.id) }}: fail
  • | {{ $json.id }}: SUCCESS

What is the error message (if any)?

400 - Value is not a valid string

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 version: 1.81.4
  • Database: SQLite
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker (self-hosted)
  • Operating system: Ubuntu

Could you provide the workflow and potentially error message differences for the others?

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