Asana description error

Hi,

Few days ago I asked for a help about how to add asana task description with proper format and I got help from here How to format asana task description? - #7 by jabbson

Now I’m using same workflow but now getting an error on http request node

{
“errorMessage”: “Bad request - please check your parameters”,
“errorDescription”: “xml_parsing_error”,
“errorDetails”: {
“rawErrorMessage”: [
“400 - "{\"errors\":[{\"error\":\"xml_parsing_error\",\"message\":\"XML is invalid\",\"help\":\"For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors\\\“}]}\”
],
“httpCode”: “400”
},
“n8nDetails”: {
“nodeName”: “HTTP Request”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.2,
“itemIndex”: 0,
“time”: “8/4/2025, 7:05:58 AM”,
“n8nVersion”: “1.100.1 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Bad request - please check your parameters”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1476:10)“,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1762:11)"
]
}
}

I’ve following JSON in http request node:
{
“data”: {
“html_notes”: “{{ $json.notes }}”
}
}

Hi @jabbson can you please guide me further here? Last topic was marked solved and did not allow me to add reply

Could you please share some details about the flow and the inputs you provide to it. Please share and I will try to take a look.

@jabbson Here is the screenshot of workflow. We discussed about adding asana description at How to format asana task description? - #7 by jabbson

Can you please attach the workflow itself? Having inputs to Asana nodes would be beneficial too, please pin them.

Ok, so the problematic node is HTTP Request node and the body is

{
    "data": {
        "html_notes": "<body>{{ $json.notes }}</body>"
    }
}

Could you share the input for this node or change the previously embedded workflow to include that input (pin it in Set TaskID and Notes node)?

Actually issue that I’m facing is, If I go with above sample data, it works fine but when I live thsi workflow and it get new data from circlback, it show me error in http request node.

Set node have following input:

task_id: {{ $('Main Task').item.json.gid }}
notes: {{ $json.data
    .replaceAll('\n', '')
.replaceAll('<h4>', '<h1>')
    .replaceAll('</h4>', '</h1>')
    .replaceAll('"', '”') 
.replaceAll('</li>', ' </li>')

Well I kind of need the data, that actually breaks the flow, maybe go to executions, find the failed one, and get the $json.notes from there?

(post deleted by author)

@jabbson here is the exampe of notes.json

<p>Overview</p><ul><li>ABC's website traffic increased 20% over 12 months, but inquiries haven't increased proportionally, indicating a conversion problem rather than traffic generation issue </li><li>Website contact forms are currently broken, preventing potential customers from submitting inquiries </li><li>Email marketing campaign sent to 5,000 contacts became the #1 traffic source in July with 350 website visits, but bounce rate remains at 5% </li><li>Jewell Projects proposed WP MudDev hosting platform at $350 quarterly to improve website reliability and prevent form failures </li><li>ABC is considering specializing in defense sector (wiring harness manufacturing) rather than remaining a generalist CNC shop, which could significantly impact branding and marketing strategy </li></ul><p>Monthly performance report overview</p><ul><li>ABC achieved 5% increase in organic website traffic </li><li>Average search position improved by 12% for non-brand searches, moving from page four to page two </li><li>Metal fabrication keywords are ahead of the 3-month target schedule and should reach page one by end of August/start of September </li><li>Agency Analytics will send the monthly report today or tomorrow </li><li>Reply.io integration with Agency Analytics is on their wishlist but not currently supported </li></ul><p>Email marketing campaign results</p><ul><li>EDM campaign sent to 5,000 contacts using Reply.io platform </li><li>350 people visited ABC's website after seeing the email, making it the #1 traffic source for July </li><li>Current bounce rate is 5%, down from previous 10% rate </li><li>Email send rate is limited to 900 emails per day across 13 email accounts </li><li>Alex will contact Reply.io support to optimize send rates for 2-day delivery window instead of multiple days </li></ul><p>Website contact form issues</p><ul><li>Sophie reported that website contact forms are not working, preventing customer inquiries </li><li>Forms direct users to email sales@abc.com directly instead of allowing form submissions </li><li>Alex noted this isn't a hosting issue but requires developer intervention </li><li>Flo can provide a quote to fix the forms </li></ul><p>WP MudDev hosting platform proposal</p><ul><li>Clent proposed migrating to WP MudDev hosting platform for $350 quarterly maintenance </li><li>Platform offers dedicated server hosting in Australia with premium care plan </li><li>Includes 13-step maintenance process: backup, plugin updates, security scans, performance optimization, and UX/SEO checks </li><li>Features 24/7 monitoring, automatic rollback capabilities, and comprehensive reporting </li><li>Platform supports programmatic page creation for location-based SEO </li></ul><p>Branding and website redesign discussion</p><ul><li>Sophie expressed concern about ROI on branding investment, wanting every dollar spent to generate two dollars return </li><li>Clent proposed $15,000-$25,000 brand evolution (not $200,000 complete rebrand) including brand identity, messaging workbook, and optimized site map </li><li>ABC wants to delay branding decisions until meeting with defense sector consultant </li><li>Current branding performs well in face-to-face interactions but may not convert online traffic effectively </li></ul><p>Business specialization strategy considerations</p><ul><li>Sophie revealed ABC is exploring defense sector specialization as wiring harness manufacturers </li><li>Defense consultant suggests ABC could manufacture components for ballistic missiles and Bushmaster vehicles </li><li>Defense sector investments typically take 5 years to see returns </li><li>Alex and Boss both recommended specialist approach over generalist, noting all competitors have specialized </li><li>ABC is in a ”massive in the air moment” regarding business direction and facility expansion </li></ul><p>Traffic conversion analysis</p><ul><li>Website traffic increased 20% over 12 months but inquiries haven't increased proportionally </li><li>Alex identified this as a messaging or website conversion issue rather than traffic generation problem </li><li>Conversion tracking improvements needed: Wildjar implementation and UTM tracking on forms </li><li>The broken contact forms are preventing accurate measurement of inquiry conversion rates </li></ul>	

Your issue is that <p> tag is not allowed in html_notes.

Please see here for allowed tags:

Here is an example of notes that will go through:

<strong>Overview</strong><ul><li>ABC's website traffic increased 20% over 12 months, but inquiries haven't increased proportionally, indicating a conversion problem rather than traffic generation issue</li><li>Website contact forms are currently broken, preventing potential customers from submitting inquiries</li><li>Email marketing campaign sent to 5,000 contacts became the #1 traffic source in July with 350 website visits, but bounce rate remains at 5%</li><li>Jewell Projects proposed WP MudDev hosting platform at $350 quarterly to improve website reliability and prevent form failures</li><li>ABC is considering specializing in defense sector (wiring harness manufacturing) rather than remaining a generalist CNC shop, which could significantly impact branding and marketing strategy</li></ul><strong>Monthly performance report overview</strong><ul><li>ABC achieved 5% increase in organic website traffic</li><li>Average search position improved by 12% for non-brand searches, moving from page four to page two</li><li>Metal fabrication keywords are ahead of the 3-month target schedule and should reach page one by end of August/start of September</li><li>Agency Analytics will send the monthly report today or tomorrow</li><li>Reply.io integration with Agency Analytics is on their wishlist but not currently supported</li></ul><strong>Email marketing campaign results</strong><ul><li>EDM campaign sent to 5,000 contacts using Reply.io platform</li><li>350 people visited ABC's website after seeing the email, making it the #1 traffic source for July</li><li>Current bounce rate is 5%, down from previous 10% rate</li><li>Email send rate is limited to 900 emails per day across 13 email accounts</li><li>Alex will contact Reply.io support to optimize send rates for 2-day delivery window instead of multiple days</li></ul><strong>Website contact form issues</strong><ul><li>Sophie reported that website contact forms are not working, preventing customer inquiries</li><li>Forms direct users to email sales@abc.com directly instead of allowing form submissions</li><li>Alex noted this isn't a hosting issue but requires developer intervention</li><li>Flo can provide a quote to fix the forms</li></ul><strong>WP MudDev hosting platform proposal</strong><ul><li>Clent proposed migrating to WP MudDev hosting platform for $350 quarterly maintenance</li><li>Platform offers dedicated server hosting in Australia with premium care plan</li><li>Includes 13-step maintenance process: backup, plugin updates, security scans, performance optimization, and UX/SEO checks</li><li>Features 24/7 monitoring, automatic rollback capabilities, and comprehensive reporting</li><li>Platform supports programmatic page creation for location-based SEO</li></ul><strong>Branding and website redesign discussion</strong><ul><li>Sophie expressed concern about ROI on branding investment, wanting every dollar spent to generate two dollars return</li><li>Clent proposed $15,000-$25,000 brand evolution (not $200,000 complete rebrand) including brand identity, messaging workbook, and optimized site map</li><li>ABC wants to delay branding decisions until meeting with defense sector consultant</li><li>Current branding performs well in face-to-face interactions but may not convert online traffic effectively</li></ul><strong>Business specialization strategy considerations</strong><ul><li>Sophie revealed ABC is exploring defense sector specialization as wiring harness manufacturers</li><li>Defense consultant suggests ABC could manufacture components for ballistic missiles and Bushmaster vehicles</li><li>Defense sector investments typically take 5 years to see returns</li><li>Alex and Boss both recommended specialist approach over generalist, noting all competitors have specialized</li><li>ABC is in a ”massive in the air moment” regarding business direction and facility expansion</li></ul><strong>Traffic conversion analysis</strong><ul><li>Website traffic increased 20% over 12 months but inquiries haven't increased proportionally</li><li>Alex identified this as a messaging or website conversion issue rather than traffic generation problem</li><li>Conversion tracking improvements needed: Wildjar implementation and UTM tracking on forms</li><li>The broken contact forms are preventing accurate measurement of inquiry conversion rates</li></ul>

Thanks

So I update the set field

{{ $json.data
    .replaceAll('\n', '')
.replaceAll('<p>', '<strong>')
.replaceAll('<\p>', </strong>'')
.replaceAll('<h4>', '<h1>')
    .replaceAll('</h4>', '</h1>')
    .replaceAll('"', '”')
.replaceAll('</li>', ' </li>')

Everything is being replaced instead of

tag. Please can you guide what can be the solution?

Is it still the same error about the xml_parsing_error?
Can you show your final value of the $json.notes?

Sorry I miss understand, that was a diferent error

Hi @jabbson ,

I’ve a workflow to automate Circlback meeting notes to asana.

this workflows help me to create main task and sub-tasks. For sub-task, I set AI agent to find the assignee name from meeting notes. Sometime, it get the name who is not added in our asana organization, in that case, I want to keep assignee field empty but this workflows create errors when it does not find assignee ID for that particular person.

For Assignee field, I add {{ $json.assigneeId }} in sub-task node.

Today I get same case and then I got following error

{
“errorMessage”: “Bad request - please check your parameters”,
“errorDescription”: “assignee: Not an email, GID, or “me”: “,
“errorDetails”: {
“rawErrorMessage”: [
“400 - {“errors”:[{“message”:"assignee: Not an email, GID, or \“me\”: ",“help”:“For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors\\“}]}”
],
“httpCode”: “400”
},
“n8nDetails”: {
“nodeName”: “Subtask”,
“nodeType”: “n8n-nodes-base.asana”,
“nodeVersion”: 1,
“resource”: “subtask”,
“operation”: “create”,
“time”: “11/08/2025, 05:03:23”,
“n8nVersion”: “1.100.1 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Bad request - please check your parameters”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1476:10)”,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1762:11)”,
" at ExecuteContext.asanaApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Asana/GenericFunctions.ts:40:9)“,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Asana/Asana.node.ts:1980:22)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1193:9)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1542:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2108:11”
]
}
}

What is the value of $json.assigneeId when you pass it into the node?
If you need to keep it empty, set the assignee object it to null (per documentation).

@jabbson assigneeId is null because that user is not a part of our organization. I don’t simply want to keep null. I want if assigneeId does not exists then keep it null

ok, if you do want to assign it, assign it.

@jabbson I think you did not get my points.

Case is that, AI agent will pass out the assignee Name, assigneeId.

If user is a part of our asana team, then AI agent can pass out assigneeId, otherwise it will be empty.

If I just add a value in assignee filed of subtask node $json.assigneeId

It will only works if there will be any assigneeId from AI agent otherwise workflow will stop and show error.

I want, if there is not assigneeId from AI agent then asana subtask should keep cosnider this as empty and continue workflow