I am encountering a Bad request - please check your parameters
error when using the NocoDB Update Node in my workflow. The detailed error message is:
css
Sao chép mã
Error Code: 400
Error Message: { "error": "DATABASE_ERROR", "message": "Invalid data type or value for column 'unknown'.", "code": "22P02" }
Workflow Details:
- I use a Webhook Node to receive incoming data.
- A NocoDB GetAll Node (
NocoDB1
) checks if a record exists in the database, usingorder_id
as the condition. - Based on the existence of the record:
- If it exists, I pass the
Id
(Primary Key) to the NocoDB Update Node (Update_Order3
). - If it doesn’t exist, a new record is created.
Issues Observed:
- The NocoDB Update Node fails with the error above.
- The Primary Key (
Id
) is fetched fromNocoDB1
and passed toUpdate_Order3
in theid
field. - All other fields (
status
,order_id
) are mapped from the Webhook data.
Steps I Have Taken:
- Verified that
NocoDB1
correctly fetches theId
of the existing record. - Ensured field names in
Update_Order3
match the table schema in NocoDB. - Checked the data types of each field (e.g.,
status
as string,order_id
as string). - Confirmed the API token has the necessary permissions.
- Debugged the expressions in n8n and ensured they resolve correctly.
Request: I would appreciate any guidance on:
- Why the error mentions “unknown” as the column.
- How to resolve this error and ensure the update operation works correctly.
Additional Info:
- NocoDB table schema includes
id
as the Primary Key. - n8n version:
1.72.1 (Cloud)
- NocoDB Node version:
2 (Latest version: 3)