I'm being forced to use Loop node 🤔

I’m trying to make some items go to the false branch, but I can only do that if I force my flow to check one item at a time.

I’m pretty sure I’m doing something wrong, but can’t figure out what.

Check the pictures and then the workflows below:


Now the workflows:

.

And here is the sample data to pin in the Code node

[
  {
    "snapshot": {
      "body": {
        "text": "Você não precisa do ambiente perfeito para iniciar.\n\nEu sei que algumas coisas parecem impossíveis de serem realizadas, mas acredite, elas só parecem difíceis enquanto você ainda não começou."
      },
      "brandedContent": null,
      "brazilTaxId": null,
      "byline": null,
      "caption": null,
      "cards": [],
      "ctaText": null,
      "ctaType": null,
      "countryIsoCode": null,
      "currentPageName": "Leandro Ladeira",
      "disclaimerLabel": null,
      "displayFormat": "VIDEO",
      "event": null,
      "images": [],
      "isReshared": false,
      "linkDescription": null,
      "linkUrl": null,
      "pageCategories": [
        "Entrepreneur"
      ],
      "pageEntityType": "PERSON_PROFILE",
      "pageId": "106712754455284",
      "pageIsDeleted": false,
      "pageIsProfilePage": false,
      "pageLikeCount": 29780,
      "pageName": "Leandro Ladeira",
      "pageProfilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456602982_1276096197107860_783880295336583024_n.jpg?stp=dst-jpg_s60x60&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=BVtSaTaODjwQ7kNvgHdDHAT&_nc_ht=scontent-bos5-1.xx&oh=00_AYAkdMhTTBt_RhPe3KckSHdsBEyi_rUFiI4Aw5jbuWq3rQ&oe=66CEE710",
      "pageProfileUri": "https://www.facebook.com/leandroladeiran/",
      "rootResharedPost": null,
      "title": null,
      "videos": [
        {
          "videoHdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/456515416_2213384292350514_1251314704683549839_n.?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Kg0Btyk5EagQ7kNvgHLdqGh&_nc_ht=video-bos5-1.xx&oh=00_AYBVj10X-uTFQn7GMrd30zc-0v2ThCqalxR9kX9uKDG-_A&oe=66CEB3AC",
          "videoPreviewImageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456431073_1233715971089817_866557470581190085_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=CgLWdQDMDYgQ7kNvgGuSkzd&_nc_ht=scontent-bos5-1.xx&oh=00_AYDJMXnhteOErU5hM4ECb7_ZtNEL5bFi_2q-AmEYD3wEJA&oe=66CEC433",
          "videoSdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/274552635_304303465015606_898734437729407308_n.mp4?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=d4-hX-xgKGsQ7kNvgHw2sjm&_nc_ht=video-bos5-1.xx&oh=00_AYDBneEIxWyHLmyZVRDgmJjoLjbpM3Ckw0Ief2q5D31l-Q&oe=66CEBCEB",
          "watermarkedVideoHdUrl": "",
          "watermarkedVideoSdUrl": ""
        }
      ],
      "additionalInfo": null,
      "ecCertificates": [],
      "extraImages": [],
      "extraLinks": [],
      "extraTexts": [],
      "extraVideos": []
    },
    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&start_date[min]={{ $json.start_date.min }}&start_date[max]&view_all_page_id=106712754455284",
    "startDateFormatted": "2024-08-21T07:00:00.000Z",
    "adArchiveId": "2213384232350520",
    "collationCount": 2,
    "collationId": "823511569917338",
    "isActive": true,
    "publisherPlatform": [
      "FACEBOOK",
      "INSTAGRAM"
    ],
    "ad_creative_id": "120211408745020250"
  },
  {
    "snapshot": {
      "body": {
        "text": "Você não precisa do ambiente perfeito para iniciar.\n\nEu sei que algumas coisas parecem impossíveis de serem realizadas, mas acredite, elas só parecem difíceis enquanto você ainda não começou."
      },
      "brandedContent": null,
      "brazilTaxId": null,
      "byline": null,
      "caption": null,
      "cards": [],
      "ctaText": null,
      "ctaType": null,
      "countryIsoCode": null,
      "currentPageName": "Leandro Ladeira",
      "disclaimerLabel": null,
      "displayFormat": "VIDEO",
      "event": null,
      "images": [],
      "isReshared": false,
      "linkDescription": null,
      "linkUrl": null,
      "pageCategories": [
        "Entrepreneur"
      ],
      "pageEntityType": "PERSON_PROFILE",
      "pageId": "106712754455284",
      "pageIsDeleted": false,
      "pageIsProfilePage": false,
      "pageLikeCount": 29780,
      "pageName": "Leandro Ladeira",
      "pageProfilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456602982_1276096197107860_783880295336583024_n.jpg?stp=dst-jpg_s60x60&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=BVtSaTaODjwQ7kNvgHdDHAT&_nc_ht=scontent-bos5-1.xx&oh=00_AYAkdMhTTBt_RhPe3KckSHdsBEyi_rUFiI4Aw5jbuWq3rQ&oe=66CEE710",
      "pageProfileUri": "https://www.facebook.com/leandroladeiran/",
      "rootResharedPost": null,
      "title": null,
      "videos": [
        {
          "videoHdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/456515416_2213384292350514_1251314704683549839_n.?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Kg0Btyk5EagQ7kNvgHLdqGh&_nc_ht=video-bos5-1.xx&oh=00_AYBVj10X-uTFQn7GMrd30zc-0v2ThCqalxR9kX9uKDG-_A&oe=66CEB3AC",
          "videoPreviewImageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456431073_1233715971089817_866557470581190085_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=CgLWdQDMDYgQ7kNvgGuSkzd&_nc_ht=scontent-bos5-1.xx&oh=00_AYDJMXnhteOErU5hM4ECb7_ZtNEL5bFi_2q-AmEYD3wEJA&oe=66CEC433",
          "videoSdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/274552635_304303465015606_898734437729407308_n.mp4?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=d4-hX-xgKGsQ7kNvgHw2sjm&_nc_ht=video-bos5-1.xx&oh=00_AYDBneEIxWyHLmyZVRDgmJjoLjbpM3Ckw0Ief2q5D31l-Q&oe=66CEBCEB",
          "watermarkedVideoHdUrl": "",
          "watermarkedVideoSdUrl": ""
        }
      ],
      "additionalInfo": null,
      "ecCertificates": [],
      "extraImages": [],
      "extraLinks": [],
      "extraTexts": [],
      "extraVideos": []
    },
    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&start_date[min]={{ $json.start_date.min }}&start_date[max]&view_all_page_id=106712754455284",
    "startDateFormatted": "2024-08-21T07:00:00.000Z",
    "adArchiveId": "2213384232350520",
    "collationCount": 2,
    "collationId": "823511569917338",
    "isActive": true,
    "publisherPlatform": [
      "FACEBOOK",
      "INSTAGRAM"
    ],
    "ad_creative_id": "120211408732490250"
  },
  {
    "snapshot": {
      "body": {
        "text": "Você não precisa do ambiente perfeito para iniciar.\n\nEu sei que algumas coisas parecem impossíveis de serem realizadas, mas acredite, elas só parecem difíceis enquanto você ainda não começou."
      },
      "brandedContent": null,
      "brazilTaxId": null,
      "byline": null,
      "caption": null,
      "cards": [],
      "ctaText": null,
      "ctaType": null,
      "countryIsoCode": null,
      "currentPageName": "Leandro Ladeira",
      "disclaimerLabel": null,
      "displayFormat": "VIDEO",
      "event": null,
      "images": [],
      "isReshared": false,
      "linkDescription": null,
      "linkUrl": null,
      "pageCategories": [
        "Entrepreneur"
      ],
      "pageEntityType": "PERSON_PROFILE",
      "pageId": "106712754455284",
      "pageIsDeleted": false,
      "pageIsProfilePage": false,
      "pageLikeCount": 29780,
      "pageName": "Leandro Ladeira",
      "pageProfilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456602982_1276096197107860_783880295336583024_n.jpg?stp=dst-jpg_s60x60&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=BVtSaTaODjwQ7kNvgHdDHAT&_nc_ht=scontent-bos5-1.xx&oh=00_AYAkdMhTTBt_RhPe3KckSHdsBEyi_rUFiI4Aw5jbuWq3rQ&oe=66CEE710",
      "pageProfileUri": "https://www.facebook.com/leandroladeiran/",
      "rootResharedPost": null,
      "title": null,
      "videos": [
        {
          "videoHdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/456515416_2213384292350514_1251314704683549839_n.?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Kg0Btyk5EagQ7kNvgHLdqGh&_nc_ht=video-bos5-1.xx&oh=00_AYBVj10X-uTFQn7GMrd30zc-0v2ThCqalxR9kX9uKDG-_A&oe=66CEB3AC",
          "videoPreviewImageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456431073_1233715971089817_866557470581190085_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=CgLWdQDMDYgQ7kNvgGuSkzd&_nc_ht=scontent-bos5-1.xx&oh=00_AYDJMXnhteOErU5hM4ECb7_ZtNEL5bFi_2q-AmEYD3wEJA&oe=66CEC433",
          "videoSdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/274552635_304303465015606_898734437729407308_n.mp4?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=d4-hX-xgKGsQ7kNvgHw2sjm&_nc_ht=video-bos5-1.xx&oh=00_AYDBneEIxWyHLmyZVRDgmJjoLjbpM3Ckw0Ief2q5D31l-Q&oe=66CEBCEB",
          "watermarkedVideoHdUrl": "",
          "watermarkedVideoSdUrl": ""
        }
      ],
      "additionalInfo": null,
      "ecCertificates": [],
      "extraImages": [],
      "extraLinks": [],
      "extraTexts": [],
      "extraVideos": []
    },
    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&start_date[min]={{ $json.start_date.min }}&start_date[max]&view_all_page_id=106712754455284",
    "startDateFormatted": "2024-08-21T07:00:00.000Z",
    "adArchiveId": "2213384232350520",
    "collationCount": 2,
    "collationId": "823511569917338",
    "isActive": true,
    "publisherPlatform": [
      "FACEBOOK",
      "INSTAGRAM"
    ],
    "ad_creative_id": "120211111949590250"
  },
  {
    "snapshot": {
      "body": {
        "text": "Você não precisa do ambiente perfeito para iniciar.\n\nEu sei que algumas coisas parecem impossíveis de serem realizadas, mas acredite, elas só parecem difíceis enquanto você ainda não começou."
      },
      "brandedContent": null,
      "brazilTaxId": null,
      "byline": null,
      "caption": null,
      "cards": [],
      "ctaText": null,
      "ctaType": null,
      "countryIsoCode": null,
      "currentPageName": "Leandro Ladeira",
      "disclaimerLabel": null,
      "displayFormat": "VIDEO",
      "event": null,
      "images": [],
      "isReshared": false,
      "linkDescription": null,
      "linkUrl": null,
      "pageCategories": [
        "Entrepreneur"
      ],
      "pageEntityType": "PERSON_PROFILE",
      "pageId": "106712754455284",
      "pageIsDeleted": false,
      "pageIsProfilePage": false,
      "pageLikeCount": 29780,
      "pageName": "Leandro Ladeira",
      "pageProfilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456602982_1276096197107860_783880295336583024_n.jpg?stp=dst-jpg_s60x60&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=BVtSaTaODjwQ7kNvgHdDHAT&_nc_ht=scontent-bos5-1.xx&oh=00_AYAkdMhTTBt_RhPe3KckSHdsBEyi_rUFiI4Aw5jbuWq3rQ&oe=66CEE710",
      "pageProfileUri": "https://www.facebook.com/leandroladeiran/",
      "rootResharedPost": null,
      "title": null,
      "videos": [
        {
          "videoHdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/456515416_2213384292350514_1251314704683549839_n.?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Kg0Btyk5EagQ7kNvgHLdqGh&_nc_ht=video-bos5-1.xx&oh=00_AYBVj10X-uTFQn7GMrd30zc-0v2ThCqalxR9kX9uKDG-_A&oe=66CEB3AC",
          "videoPreviewImageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456431073_1233715971089817_866557470581190085_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=CgLWdQDMDYgQ7kNvgGuSkzd&_nc_ht=scontent-bos5-1.xx&oh=00_AYDJMXnhteOErU5hM4ECb7_ZtNEL5bFi_2q-AmEYD3wEJA&oe=66CEC433",
          "videoSdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/274552635_304303465015606_898734437729407308_n.mp4?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=d4-hX-xgKGsQ7kNvgHw2sjm&_nc_ht=video-bos5-1.xx&oh=00_AYDBneEIxWyHLmyZVRDgmJjoLjbpM3Ckw0Ief2q5D31l-Q&oe=66CEBCEB",
          "watermarkedVideoHdUrl": "",
          "watermarkedVideoSdUrl": ""
        }
      ],
      "additionalInfo": null,
      "ecCertificates": [],
      "extraImages": [],
      "extraLinks": [],
      "extraTexts": [],
      "extraVideos": []
    },
    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&start_date[min]={{ $json.start_date.min }}&start_date[max]&view_all_page_id=106712754455284",
    "startDateFormatted": "2024-08-21T07:00:00.000Z",
    "adArchiveId": "2213384232350520",
    "collationCount": 2,
    "collationId": "823511569917338",
    "isActive": true,
    "publisherPlatform": [
      "FACEBOOK",
      "INSTAGRAM"
    ],
    "ad_creative_id": "120211111949730250"
  },
  {
    "snapshot": {
      "body": {
        "text": "Você não precisa do ambiente perfeito para iniciar.\n\nEu sei que algumas coisas parecem impossíveis de serem realizadas, mas acredite, elas só parecem difíceis enquanto você ainda não começou."
      },
      "brandedContent": null,
      "brazilTaxId": null,
      "byline": null,
      "caption": null,
      "cards": [],
      "ctaText": null,
      "ctaType": null,
      "countryIsoCode": null,
      "currentPageName": "Leandro Ladeira",
      "disclaimerLabel": null,
      "displayFormat": "VIDEO",
      "event": null,
      "images": [],
      "isReshared": false,
      "linkDescription": null,
      "linkUrl": null,
      "pageCategories": [
        "Entrepreneur"
      ],
      "pageEntityType": "PERSON_PROFILE",
      "pageId": "106712754455284",
      "pageIsDeleted": false,
      "pageIsProfilePage": false,
      "pageLikeCount": 29780,
      "pageName": "Leandro Ladeira",
      "pageProfilePictureUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456602982_1276096197107860_783880295336583024_n.jpg?stp=dst-jpg_s60x60&_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=BVtSaTaODjwQ7kNvgHdDHAT&_nc_ht=scontent-bos5-1.xx&oh=00_AYAkdMhTTBt_RhPe3KckSHdsBEyi_rUFiI4Aw5jbuWq3rQ&oe=66CEE710",
      "pageProfileUri": "https://www.facebook.com/leandroladeiran/",
      "rootResharedPost": null,
      "title": null,
      "videos": [
        {
          "videoHdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/456515416_2213384292350514_1251314704683549839_n.?_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=Kg0Btyk5EagQ7kNvgHLdqGh&_nc_ht=video-bos5-1.xx&oh=00_AYBVj10X-uTFQn7GMrd30zc-0v2ThCqalxR9kX9uKDG-_A&oe=66CEB3AC",
          "videoPreviewImageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/456431073_1233715971089817_866557470581190085_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=CgLWdQDMDYgQ7kNvgGuSkzd&_nc_ht=scontent-bos5-1.xx&oh=00_AYDJMXnhteOErU5hM4ECb7_ZtNEL5bFi_2q-AmEYD3wEJA&oe=66CEC433",
          "videoSdUrl": "https://video-bos5-1.xx.fbcdn.net/v/t42.1790-2/274552635_304303465015606_898734437729407308_n.mp4?_nc_cat=111&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=d4-hX-xgKGsQ7kNvgHw2sjm&_nc_ht=video-bos5-1.xx&oh=00_AYDBneEIxWyHLmyZVRDgmJjoLjbpM3Ckw0Ief2q5D31l-Q&oe=66CEBCEB",
          "watermarkedVideoHdUrl": "",
          "watermarkedVideoSdUrl": ""
        }
      ],
      "additionalInfo": null,
      "ecCertificates": [],
      "extraImages": [],
      "extraLinks": [],
      "extraTexts": [],
      "extraVideos": []
    },
    "facebookUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&start_date[min]={{ $json.start_date.min }}&start_date[max]&view_all_page_id=106712754455284",
    "startDateFormatted": "2024-08-21T07:00:00.000Z",
    "adArchiveId": "2213384232350520",
    "collationCount": 2,
    "collationId": "823511569917338",
    "isActive": true,
    "publisherPlatform": [
      "FACEBOOK",
      "INSTAGRAM"
    ],
    "ad_creative_id": "120211111949570250"
  }
]
  • n8n version: 1.55.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubuntu 22.04

I also can’t automatically see previous nodes data when opening the Switch node.

I have to change to the table view, pick one of the runs and go back to the Schema. Only then the data shows up again:

Hi @solomon

I thought it was a bug but then I tested it in my own set-up and could not reproduce it.

Since I don’t have the same Notion Database that you are using I had to set up my own scenario, and set it to basically only filter out 2 items and without the loop node it passes those two items on. :thinking:

So I am thinking there must be something else at play.

What are you trying to filter for in the database? I have a feeling that your usage of the Property Name or ID field may be the culprit.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.