N101/Practical Exercise: Building a Sales Data Pipeline/STEP 2/ERROR 422

Hi, I’m new to n8n and started taking the learning courses with n8nAcademy, beginning with the n8n101 module.
In the practice of Section 2, Building a Data Sales Pipeline, specifically at step 2, in your final node, I’m not getting a response after the HTTP ‘post’ request. In the second screenshot I’ve added a response to the body so you can see the ‘422’ response.
I’ve reviewed other related queries, but I can’t solve the response.
I appreciate if you can guide me.

Describe the problem/error/question

What is the error message (if any)?

422 - “{\“error\”:\“orders are missing required fields: order_total\”}”

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

{ “body”: { “orders”: [ { “order_id”: “ORD-001”, “customer_name”: “Acme Corp”, “region”: “north”, “status”: “delivered”, "order_total ": 598 }, { “order_id”: “ORD-002”, “customer_name”: “TechStart Inc”, “region”: “west”, “status”: “shipped”, "order_total ": 245 }, { “order_id”: “ORD-003”, “customer_name”: “Global Systems”, “region”: “south”, “status”: “processing”, "order_total ": 149 }, { “order_id”: “ORD-004”, “customer_name”: “Acme Corp”, “region”: “north”, “status”: “delivered”, "order_total ": 99 }, { “order_id”: “ORD-005”, “customer_name”: “DataFlow Ltd”, “region”: “east”, “status”: “pending”, "order_total ": 299 }, { “order_id”: “ORD-006”, “customer_name”: “CloudNine Solutions”, “region”: “west”, “status”: “shipped”, "order_total ": 447 }, { “order_id”: “ORD-007”, “customer_name”: “Bright Ideas Co”, “region”: “north”, “status”: “delivered”, "order_total ": 490 }, { “order_id”: “ORD-008”, “customer_name”: “Summit Enterprises”, “region”: “north”, “status”: “processing”, "order_total ": 1495 }, { “order_id”: “ORD-009”, “customer_name”: “TechStart Inc”, “region”: “west”, “status”: “delivered”, "order_total ": 79 }, { “order_id”: “ORD-010”, “customer_name”: “Innovate LLC”, “region”: “east”, “status”: “shipped”, "order_total ": 298 }, { “order_id”: “ORD-011”, “customer_name”: “Pioneer Tech”, “region”: “south”, “status”: “pending”, "order_total ": 49 }, { “order_id”: “ORD-012”, “customer_name”: “Nexus Industries”, “region”: “north”, “status”: “delivered”, "order_total ": 897 }, { “order_id”: “ORD-013”, “customer_name”: “Global Systems”, “region”: “south”, “status”: “shipped”, "order_total ": 99 }, { “order_id”: “ORD-014”, “customer_name”: “DataFlow Ltd”, “region”: “east”, “status”: “processing”, "order_total ": 149 }, { “order_id”: “ORD-015”, “customer_name”: “CloudNine Solutions”, “region”: “west”, “status”: “delivered”, "order_total ": 98 }, { “order_id”: “ORD-016”, “customer_name”: “Acme Corp”, “region”: “north”, “status”: “shipped”, "order_total ": 149 }, { “order_id”: “ORD-017”, “customer_name”: “Bright Ideas Co”, “region”: “south”, “status”: “pending”, "order_total ": 299 }, { “order_id”: “ORD-018”, “customer_name”: “Summit Enterprises”, “region”: “north”, “status”: “delivered”, "order_total ": 158 }, { “order_id”: “ORD-019”, “customer_name”: “Innovate LLC”, “region”: “east”, “status”: “shipped”, "order_total ": 196 }, { “order_id”: “ORD-020”, “customer_name”: “Pioneer Tech”, “region”: “south”, “status”: “processing”, "order_total ": 149 }, { “order_id”: “ORD-021”, “customer_name”: “Nexus Industries”, “region”: “north”, “status”: “delivered”, "order_total ": 294 }, { “order_id”: “ORD-022”, “customer_name”: “TechStart Inc”, “region”: “west”, “status”: “shipped”, "order_total ": 299 }, { “order_id”: “ORD-023”, “customer_name”: “Global Systems”, “region”: “south”, “status”: “pending”, "order_total ": 79 }, { “order_id”: “ORD-024”, “customer_name”: “DataFlow Ltd”, “region”: “east”, “status”: “delivered”, "order_total ": 147 }, { “order_id”: “ORD-025”, “customer_name”: “CloudNine Solutions”, “region”: “west”, “status”: “processing”, "order_total ": 598 }, { “order_id”: “ORD-026”, “customer_name”: “Bright Ideas Co”, “region”: “south”, “status”: “shipped”, "order_total ": 149 }, { “order_id”: “ORD-027”, “customer_name”: “Summit Enterprises”, “region”: “north”, “status”: “delivered”, "order_total ": 98 }, { “order_id”: “ORD-028”, “customer_name”: “Innovate LLC”, “region”: “east”, “status”: “pending”, "order_total ": 99 }, { “order_id”: “ORD-029”, “customer_name”: “Pioneer Tech”, “region”: “south”, “status”: “shipped”, "order_total ": 299 }, { “order_id”: “ORD-030”, “customer_name”: “Nexus Industries”, “region”: “north”, “status”: “delivered”, "order_total ": 298 }, { “order_id”: “ORD-031”, “customer_name”: “Acme Corp”, “region”: “north”, “status”: “processing”, "order_total ": 49 }, { “order_id”: “ORD-032”, “customer_name”: “TechStart Inc”, “region”: “west”, “status”: “shipped”, "order_total ": 298 }, { “order_id”: “ORD-033”, “customer_name”: “Global Systems”, “region”: “south”, “status”: “delivered”, "order_total ": 299 }, { “order_id”: “ORD-034”, “customer_name”: “DataFlow Ltd”, “region”: “east”, “status”: “pending”, "order_total ": 99 }, { “order_id”: “ORD-035”, “customer_name”: “CloudNine Solutions”, “region”: “west”, “status”: “shipped”, "order_total ": 245 }, { “order_id”: “ORD-036”, “customer_name”: “Bright Ideas Co”, “region”: “south”, “status”: “delivered”, "order_total ": 79 }, { “order_id”: “ORD-037”, “customer_name”: “Summit Enterprises”, “region”: “north”, “status”: “processing”, "order_total ": 149 }, { “order_id”: “ORD-038”, “customer_name”: “Innovate LLC”, “region”: “east”, “status”: “shipped”, "order_total ": 299 }, { “order_id”: “ORD-039”, “customer_name”: “Pioneer Tech”, “region”: “south”, “status”: “delivered”, "order_total ": 158 }, { “order_id”: “ORD-040”, “customer_name”: “Nexus Industries”, “region”: “north”, “status”: “pending”, "order_total ": 49 }, { “order_id”: “ORD-041”, “customer_name”: “Acme Corp”, “region”: “north”, “status”: “shipped”, "order_total ": 79 }, { “order_id”: “ORD-042”, “customer_name”: “TechStart Inc”, “region”: “west”, “status”: “delivered”, "order_total ": 99 }, { “order_id”: “ORD-043”, “customer_name”: “Global Systems”, “region”: “south”, “status”: “processing”, "order_total ": 98 }, { “order_id”: “ORD-044”, “customer_name”: “DataFlow Ltd”, “region”: “east”, “status”: “shipped”, "order_total ": 598 }, { “order_id”: “ORD-045”, “customer_name”: “CloudNine Solutions”, “region”: “west”, “status”: “delivered”, "order_total ": 99 }, { “order_id”: “ORD-046”, “customer_name”: “Bright Ideas Co”, “region”: “south”, “status”: “pending”, "order_total ": 298 }, { “order_id”: “ORD-047”, “customer_name”: “Summit Enterprises”, “region”: “north”, “status”: “shipped”, "order_total ": 147 }, { “order_id”: “ORD-048”, “customer_name”: “Innovate LLC”, “region”: “east”, “status”: “delivered”, "order_total ": 79 }, { “order_id”: “ORD-049”, “customer_name”: “Pioneer Tech”, “region”: “south”, “status”: “processing”, "order_total ": 149 }, { “order_id”: “ORD-050”, “customer_name”: “Nexus Industries”, “region”: “north”, “status”: “shipped”, "order_total “: 299 } ] }, “headers”: { " x-assessment-id”: “97f43a08583fa8da285a741ac1386f52”, “hidden”: “hidden”, “accept”: “application/json,text/html,application/xhtml+xml,application/xml,text/;q=0.9, image/;q=0.8, /;q=0.7” }, “method”: “POST”, “uri”: “https://learn.app.n8n.cloud/webhook/course/n8n101/process-orders”, “gzip”: true, “rejectUnauthorized”: true, “followRedirect”: true, “resolveWithFullResponse”: true, “sendCredentialsOnCrossOriginRedirect”: false, “followAllRedirects”: true, “timeout”: 300000, “encoding”: null, “json”: false, “useStream”: true }

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @estemagon, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Ronnie_Ysela_Craig, @Nika - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Look closely at the last node’s output: the key is "order_total " with a trailing space, not "order_total". The API does an exact match on field names, so it treats that as a different key and reports order_total as missing. The 422 is correct.

The stray space is coming from wherever that field name was typed. Most likely spots in this exercise:

  1. The Edit Fields (Set) node before the HTTP Request: open the field named order_total and delete the space after the name.
  2. If the HTTP Request node builds the body itself: in Body Parameters, check the Name field of that entry, or if Specify Body is set to Using JSON, check the key inside the JSON.

n8n keeps whatever you type in a field name, spaces included, and does not trim it. Fix the name, re-run the workflow, and the response should come back 200 with the orders accepted. If it still fails, paste the HTTP Request node’s JSON (select it, Ctrl+C, paste here) so the body can be checked directly.

@blessoftware Thanks for your help, the error was indeed in the space in the “order_total” field.