logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

LogicApp For-Each Loop stopping at 1,000 Iterations

Open JackBruceShell opened this issue 1 year ago • 1 comments

Describe the Bug with repro steps

Foreach Loop makes more than 1k iterations through data

What type of Logic App Is this happening in?

Standard (Portal)

Which operating system are you using?

MacOS

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "For_each_Tables": {
                "actions": {
                    "For_each_Entities": {
                        "actions": {
                            "Delete_Entity": {
                                "inputs": {
                                    "parameters": {
                                        "partitionKey": "@items('For_each_Entities')?['PartitionKey']",
                                        "rowKey": "@items('For_each_Entities')?['RowKey']",
                                        "tableName": "@items('For_each_Tables')?['tableName']"
                                    },
                                    "serviceProviderConfiguration": {
                                        "connectionName": "azureTables",
                                        "operationId": "deleteEntity",
                                        "serviceProviderId": "/serviceProviders/azureTables"
                                    }
                                },
                                "type": "ServiceProvider"
                            }
                        },
                        "foreach": "@body('Query_Entities')?['entities']",
                        "runAfter": {
                            "Query_Entities": [
                                "SUCCEEDED"
                            ]
                        },
                        "type": "Foreach"
                    },
                    "Query_Entities": {
                        "inputs": {
                            "parameters": {
                                "filter": "Timestamp lt datetime'2024-09-19T09:32:29.6481079Z'",
                                "tableName": "@items('For_each_Tables')?['tableName']"
                            },
                            "serviceProviderConfiguration": {
                                "connectionName": "azureTables",
                                "operationId": "queryEntities",
                                "serviceProviderId": "/serviceProviders/azureTables"
                            }
                        },
                        "type": "ServiceProvider"
                    }
                },
                "foreach": "@body('List_tables')?['tables']",
                "runAfter": {
                    "List_tables": [
                        "SUCCEEDED"
                    ]
                },
                "type": "Foreach"
            },
            "List_tables": {
                "inputs": {
                    "serviceProviderConfiguration": {
                        "connectionName": "azureTables",
                        "operationId": "listTables",
                        "serviceProviderId": "/serviceProviders/azureTables"
                    }
                },
                "runAfter": {},
                "type": "ServiceProvider"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "Recurrence": {
                "recurrence": {
                    "frequency": "Day",
                    "interval": 1,
                    "schedule": {
                        "hours": [
                            "4"
                        ]
                    },
                    "timeZone": "UTC"
                },
                "type": "Recurrence"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Browser

Chrome

Additional context

No response

JackBruceShell avatar Sep 19 '24 10:09 JackBruceShell

Doesn't seem like a UX issue, you might want to file a support ticket with the service actually or you can file one here - https://github.com/Azure/logicapps/issues

takyyon avatar Sep 19 '24 14:09 takyyon

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Nov 03 '24 17:11 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 17 '24 17:11 github-actions[bot]