Need help for Automation FTP Down / Uploader

Hello,

i got the Automation of a Workflow which is triggert all 30min checking and Filter new Data from a FTP and sorting for PDF.
Than Download PDF and upload to Google Drive.

So now the Problem is that the Workflow is uploading the same PDF more than one time?
At starting of the workflow it worked fine but now i got doubles and three times the same PDF:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: 1.15.2
  • Database (default: SQLite): Standard
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Trigger 30min
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**n8n cloud
  • Operating system: / cloud

hello @renoma

I think the issue is with the first Filter node, but it is hard to say what exactly is wrong. Can you provide samples of the node outputs for FTP and FTP1 nodes?

Here FTP:

Blockquote
[
{
“type”: “d”,
“name”: “20240116”,
“modifyTime”: “2024-02-16T01:23:10.000Z”,
“accessTime”: “2024-02-16T01:23:10.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240116”
},
{
“type”: “d”,
“name”: “20240117”,
“modifyTime”: “2024-02-17T01:27:55.000Z”,
“accessTime”: “2024-02-17T01:27:55.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240117”
},
{
“type”: “d”,
“name”: “20240119”,
“modifyTime”: “2024-01-19T18:19:35.000Z”,
“accessTime”: “2024-01-19T18:19:35.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240119”
},
{
“type”: “d”,
“name”: “20240123”,
“modifyTime”: “2024-01-23T12:48:22.000Z”,
“accessTime”: “2024-01-23T12:48:22.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240123”
},
{
“type”: “d”,
“name”: “20240124”,
“modifyTime”: “2024-01-24T17:05:38.000Z”,
“accessTime”: “2024-01-24T17:05:38.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240124”
},
{
“type”: “d”,
“name”: “20240129”,
“modifyTime”: “2024-01-29T11:27:10.000Z”,
“accessTime”: “2024-01-29T11:27:10.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240129”
},
{
“type”: “d”,
“name”: “20240130”,
“modifyTime”: “2024-01-30T12:04:39.000Z”,
“accessTime”: “2024-01-30T12:04:39.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240130”
},
{
“type”: “d”,
“name”: “20240201”,
“modifyTime”: “2024-02-01T14:51:59.000Z”,
“accessTime”: “2024-02-01T14:51:59.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240201”
},
{
“type”: “d”,
“name”: “20240202”,
“modifyTime”: “2024-02-02T14:56:22.000Z”,
“accessTime”: “2024-02-02T14:56:22.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240202”
},
{
“type”: “d”,
“name”: “20240206”,
“modifyTime”: “2024-02-06T17:32:25.000Z”,
“accessTime”: “2024-02-06T17:32:25.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240206”
},
{
“type”: “d”,
“name”: “20240213”,
“modifyTime”: “2024-02-13T13:18:44.000Z”,
“accessTime”: “2024-02-13T13:18:44.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240213”
},
{
“type”: “d”,
“name”: “20240216”,
“modifyTime”: “2024-02-16T11:41:44.000Z”,
“accessTime”: “2024-02-16T11:41:44.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/20240216”
},
{
“type”: “d”,
“name”: “Reports”,
“modifyTime”: “2024-02-17T01:27:58.000Z”,
“accessTime”: “2024-02-17T01:27:58.000Z”,
“rights”: {
“user”: “rwx”,
“group”: “rx”,
“other”: “”
},
“path”: “/Reports”
}
]

Here FTP1 is no result

Ah, I see. You need to update the second filter node to include only files that were modified <30 min ago. As of now, you filtering the folders, but then you still downloading all PDF files from the modified folder. Even those, which were not modified. Plus better to use Ends With instead of Contains condition, as it is possible to grab some.pdf.gz2 file (or another archive)

the first Filter

is setup like that:

I’m talking about the Filter1 Node, not the Filter node.

oh sorry
here is the Filter1


If i add here Date
i can do it fix or by Json,

i think the <30min must be set up by Json right?

So could you help me what i need to set up there?

And for End with / contains you mean the first condition to check the PDF right?

Replace the Filter1 node with that one

you just mean switch them like that?

btw i add “ends with”

By “replace” I mean replace the node…

The complete workflow should be like that

sorry i don´t understand
now i switched the filter back again

Still got feedback that the files will uploaded 3 times:
image