Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view iterations of Until loop for cancelled run #1258

Open
JamieForsythe opened this issue Dec 4, 2024 · 0 comments
Open

Unable to view iterations of Until loop for cancelled run #1258

JamieForsythe opened this issue Dec 4, 2024 · 0 comments

Comments

@JamieForsythe
Copy link

Describe the Bug

When viewing a run that has been cancelled whilst in an Until loop, you can only view the first iteration of the until loop in the run history, even if multiple iterations occurred before the run was cancelled. There is no option available to view any subsequent iterations that have occurred.

Plan Type

Consumption

Steps to Reproduce the Bug or Issue

  1. Create a logic app with an until loop.
  2. Run the logic app.
  3. Cancel the logic app run while it is in the until loop, but not the first iteration of it.
  4. View the run history - you will only be able to see the details of the first iteration of the until loop.

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        },
        "actions": {
            "Until": {
                "actions": {
                    "Delay": {
                        "type": "Wait",
                        "inputs": {
                            "interval": {
                                "count": 5,
                                "unit": "Second"
                            }
                        }
                    },
                    "Increment_variable": {
                        "runAfter": {
                            "Delay": [
                                "Succeeded"
                            ]
                        },
                        "type": "IncrementVariable",
                        "inputs": {
                            "name": "Int",
                            "value": 1
                        }
                    }
                },
                "runAfter": {
                    "Initialize_variable": [
                        "Succeeded"
                    ]
                },
                "expression": "@greaterOrEquals(variables('Int'),10)",
                "limit": {
                    "count": 60,
                    "timeout": "PT1H"
                },
                "type": "Until"
            },
            "Initialize_variable": {
                "runAfter": {},
                "type": "InitializeVariable",
                "inputs": {
                    "variables": [
                        {
                            "name": "Int",
                            "type": "integer",
                            "value": 5
                        }
                    ]
                }
            },
            "Compose": {
                "runAfter": {
                    "Until": [
                        "Succeeded"
                    ]
                },
                "type": "Compose",
                "inputs": "Int: @{variables('Int')}"
            }
        },
        "outputs": {},
        "parameters": {
            "$connections": {
                "type": "Object",
                "defaultValue": {}
            }
        }
    },
    "parameters": {
        "$connections": {
            "value": {}
        }
    }
}

Screenshots or Videos

Image

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant