Describe the problem/error/question
I’m trying to, from one side, get my latest time entries in Toggle. And on the other side the latest pages (past time entries) that were added to my Notion database.
For then to compare which time entries are already logged in my Notion database to discard them and avoid creating duplicates in the latter.
The problem is that I’m not sure what I’m doing wrong or what nodes should I use. Below you can see the alternatives i’ve used, but each have their own problems. The one that seems to be ideal for this is “Remove duplicates”. However whenever it tries to get the “id” from the Toggl time entry it says “(The number ID) field is missing from some input items”.
What is the error message (if any)?
{
“errorMessage”: “‘3499007641’ field is missing from some input items”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “Remove Duplicates”,
“nodeType”: “n8n-nodes-base.removeDuplicates”,
“nodeVersion”: 1,
“time”: “23/6/2024, 05:03:49”,
“n8nVersion”: “1.45.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: ‘3499007641’ field is missing from some input items”,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.js:188:27)“,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:42)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:664:66",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1079:20"
]
}
}
Please share your workflow
Share the output returned by the last node
[
{
“id”: 3499007641,
“workspace_id”: 6874852,
“project_id”: 187505202,
“task_id”: null,
“billable”: false,
“start”: “2024-06-23T06:16:38+00:00”,
“stop”: “2024-06-23T07:16:40+00:00”,
“duration”: 3602,
“description”: “XXXXXXXX”,
“tags”: ,
“tag_ids”: ,
“duronly”: true,
“at”: “2024-06-23T06:16:54+00:00”,
“server_deleted_at”: null,
“user_id”: 8979694,
“uid”: 8979694,
“wid”: 6874852,
“pid”: 187505202,
“permissions”: null
},
]
Information on your n8n setup
- n8n version: 1.45.1
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): I don’t know
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Windows 10