Teamwork - Create Task - Custom Field Missing CustomFieldId

Status
Not open for further replies.

Andrew L

Member
Your Task History ID
IjU3NjUwNTY5MDYzMjA0M2M1MjZiNTUzNjUxM2I1MTZhNTQzNjBmMzIi_pc
Hi, we have a workflow that uses the Teamwork - Create Task action. It works well, but occasionally the workflow fails and it gives this error:

{ "MESSAGE": "Invalid custom field: Custom field missing customFieldId property", "STATUS": "Error" }

I cannot really understand why we're getting this error.

Although I suspect this is related when I look at the task "data in":

{ "api_endpoint_url": "https://echowebsolutions.teamwork.com/tasklists/3448092/tasks.json", "todo-item": { "tasklistId": "3448092", "content": "Ticket name", "description": "Stuff here", "start-date": "", "due-date": "", "responsible-party-id": "580538", "notify": "false", "priority": "", "tagIds": "", [B]"customFields": { "pabbly_custom_fields": [ { "customFieldId": "{{pabbly_custom_key}}", "value": "{{pabbly_custom_value}}" } ][/B] } } }

The thing is I'm not even using the custom fields. I'm leaving them blank. I've tried the opposite and filling them in, either way I'm getting the same error and it's very frustrating.

I've tried using stuff like {{pc_skip_field}} and {{pc_skip_field_with_parent}} from this article, makes no difference. Anyone got advice for how to get around it? The it otherwise works fine most of the time, but everytime it fails we lose time manually creating the Teamwork task.
 

ArshilAhmad

Well-known member
Staff member
Hi @Andrew L,


The issue appears to have been related to the presence of double quotes in the data you were passing in the Description field. We used a Text Formatter to replace the double quotes with single quotes, and it seems to have resolved the issue.
1747953973273.png
 
Status
Not open for further replies.
Top