# Workflow execution failed

**URL:** <https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [November 11, 2024, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157 "2024-11-11T13:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackSparrow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jacksparrow/32/19685_2.png) [@JackSparrow](https://developer.sailpoint.com/discuss/u/JackSparrow)\
**Post date:** [November 11, 2024, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157/1 "2024-11-11T13:37:57Z")

</div>

Hi,  
We do see the below error for the failed workflow. But the search query that we use returns only 12 identities when the workflow failed. I believe the limit for the input loop is 100. The workflow is to remove the roles for termed users.

No errors were found other than this in the output. Do I need to take a look on something else? Can someone please suggest/help?

**{“error”:“BadScheduleActivityAttributes: ScheduleActivityTaskCommandAttributes.Input exceeds size limit.”}**

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/a/c/ac837817a490efed5124b45ab49f56784cb46014.png)

---

<div class="post-metadata">

**Author:** ![jesvin90](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jesvin90/32/5301_2.png) [@jesvin90](https://developer.sailpoint.com/discuss/u/jesvin90)\
**Post date:** [November 11, 2024, 2:09pm UTC](https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157/2 "2024-11-11T14:09:55Z")

</div>

Hi @JackSparrow

Can you try adding a query result filter to limit the output size and see if it works for you. I know there is a limit for the allowed size in a WF and in a loop

eg:

```auto
{
    "indices": [
        "identities"
    ],
    "query": {
        "fields": [
            "name"
        ],
        "query": "attributes.uid:123"
    },
    "queryResultFilter": {
        "includes": [
            "id",
            "name"
        ]
    }
}

```

---

<div class="post-metadata">

**Author:** ![JackSparrow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jacksparrow/32/19685_2.png) [@JackSparrow](https://developer.sailpoint.com/discuss/u/JackSparrow)\
**Post date:** [November 11, 2024, 3:28pm UTC](https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157/3 "2024-11-11T15:28:03Z")

</div>

Thanks Jesvin! We are using query to pull the identities in workflow. I’ll can do it via API search query using HTTP operation. Will update you on this.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 10, 2025, 3:28pm UTC](https://developer.sailpoint.com/discuss/t/workflow-execution-failed/89157/4 "2025-01-10T15:28:24Z")

</div>

Closed on January 10, 2025, 3:28pm UTC

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