Bug With Loop In Workflow

Hello, It seems that in version 1.3.22 Loops don’t work when accessing an array:
This is the trigger objects:

{
  "data": {
    "id": 17,
    "createdAt": "2024-09-18T10:50:49.236Z",
    "updatedAt": "2024-09-18T10:50:49.236Z",
    "startAt": "2024-09-03T23:00:00.000Z",
    "nameAr": "test2",
    "nameEn": "test2",
    "status": "Open",
    "type": "Cup",
    "description": null,
    "organizingCountry": "DZ",
    "endAt": "2024-09-08T23:00:00.000Z",
    "f_xj39wkyp1oq": "false",
    "numberOfTeams": 8,
    "NumberOfGroups": "2",
    "createdById": 26,
    "updatedById": 26,
    "f_uz8n3m3u85q": [
      {
        "createdAt": "2024-09-18T10:50:49.263Z",
        "updatedAt": "2024-09-18T10:50:49.263Z",
        "f_qss85qxrt8b": 17,
        "Name": "GroupA",
        "id": 11,
        "createdById": 26,
        "updatedById": 26,
        "Teams": [
          {
            "id": 17,
            "createdAt": "2024-08-26T16:50:18.773Z",
            "updatedAt": "2024-09-18T08:36:10.626Z",
            "shortNameEn": "ARB",
            "shortNameAr": "ARB",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "النادي العربي",
            "fullNameEn": "Al-Arabi Sports Club",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 56,
            "updatedById": 26,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.289Z",
              "updatedAt": "2024-09-18T10:50:49.289Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 17
            }
          },
          {
            "id": 23,
            "createdAt": "2024-09-16T19:42:14.564Z",
            "updatedAt": "2024-09-18T09:12:50.393Z",
            "shortNameEn": "EST",
            "shortNameAr": "EST",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "EST",
            "fullNameEn": "EST",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 56,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 23
            }
          },
          {
            "id": 24,
            "createdAt": "2024-09-16T19:43:40.591Z",
            "updatedAt": "2024-09-18T10:07:28.472Z",
            "shortNameEn": "CAB",
            "shortNameAr": "CAB",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "CAB",
            "fullNameEn": "CAB",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 1,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 24
            }
          },
          {
            "id": 25,
            "createdAt": "2024-09-16T19:44:03.771Z",
            "updatedAt": "2024-09-16T19:44:14.657Z",
            "shortNameEn": "ESS",
            "shortNameAr": "ESS",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "ESS",
            "fullNameEn": "ESS",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 1,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 25
            }
          }
        ]
      }
    ]
  },
}

This is the loop target:

Failed with 0:

Am I doing something wrong ?

Please provide more informations about the failed nodes in the loop. In common scenario, some failed nodes in the loop will cause this.

The number result of loop node means not even one loop is completed, so it is 0.

Hello, It is looping over this object so It should loop once since there is 1 object in the array:

"f_uz8n3m3u85q": [
      {
        "createdAt": "2024-09-18T10:50:49.263Z",
        "updatedAt": "2024-09-18T10:50:49.263Z",
        "f_qss85qxrt8b": 17,
        "Name": "GroupA",
        "id": 11,
        "createdById": 26,
        "updatedById": 26,
        "Teams": [
          {
            "id": 17,
            "createdAt": "2024-08-26T16:50:18.773Z",
            "updatedAt": "2024-09-18T08:36:10.626Z",
            "shortNameEn": "ARB",
            "shortNameAr": "ARB",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "النادي العربي",
            "fullNameEn": "Al-Arabi Sports Club",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 56,
            "updatedById": 26,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.289Z",
              "updatedAt": "2024-09-18T10:50:49.289Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 17
            }
          },
          {
            "id": 23,
            "createdAt": "2024-09-16T19:42:14.564Z",
            "updatedAt": "2024-09-18T09:12:50.393Z",
            "shortNameEn": "EST",
            "shortNameAr": "EST",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "EST",
            "fullNameEn": "EST",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 56,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 23
            }
          },
          {
            "id": 24,
            "createdAt": "2024-09-16T19:43:40.591Z",
            "updatedAt": "2024-09-18T10:07:28.472Z",
            "shortNameEn": "CAB",
            "shortNameAr": "CAB",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "CAB",
            "fullNameEn": "CAB",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 1,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 24
            }
          },
          {
            "id": 25,
            "createdAt": "2024-09-16T19:44:03.771Z",
            "updatedAt": "2024-09-16T19:44:14.657Z",
            "shortNameEn": "ESS",
            "shortNameAr": "ESS",
            "establishedDate": null,
            "association-ID": 8,
            "f_rn4254v6ku7": null,
            "team-manager-email": null,
            "fullNameAr": "ESS",
            "fullNameEn": "ESS",
            "country": null,
            "f_odt8vh0blfk": null,
            "createdById": 1,
            "updatedById": 1,
            "t_gkaqa4o0gl7": {
              "createdAt": "2024-09-18T10:50:49.290Z",
              "updatedAt": "2024-09-18T10:50:49.290Z",
              "f_yvedi6w3ohn": 11,
              "f_hi1j3jdssfi": 25
            }
          }
        ]
      }
    ]

It really seems to be a bug. I just tried this in my environment and I didn’t have this problem. Maybe it’s related to your version. This topic discusses to the same issue:


Processing: image.png…

Could you try to do as a post-action workflow when a form is submitted and it includes a sub form like in this exemple:

It was indeed a bug and by removing the table and recreating another one it works

From workflow loop node failure aspect, I may still need your all flow graph inside the loop as I mentioned above:

Please provide more informations about the failed nodes in the loop. In common scenario, some failed nodes in the loop will cause this.

The number result of loop node means not even one loop is completed, so it is 0.

One of the failed node inside the loop maybe the nearest cause.