# NERM - Pending Request Created without completing the request either or when information is not filled

**URL:** <https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, nerm\
**Created:** [May 20, 2024, 8:20pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354 "2024-05-20T20:20:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajmerasunny1](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ajmerasunny1](https://developer.sailpoint.com/discuss/u/ajmerasunny1)\
**Post date:** [May 20, 2024, 8:20pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354/1 "2024-05-20T20:20:41Z")

</div>

I have used Create/Update Type workflow for Create Contractor or Update Contractor workflow and when a performer clicks on these workflows, a pending request is created even if performer doesn’t fill the form or without completing the request. This seems to causing lot of confusion for the end-users.

Is there a way to avoid creating pending request when performer doesn’t provide the required information.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/2/25d8bbb72264ff085e2ee7f4eeb229a1f054e42c.jpeg)

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/f/fb84434ee5ca0379ce91f9944ce526cf2e1bcc55.png)

---

<div class="post-metadata">

**Author:** ![ZackTarantino-Woolson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zacktarantino-woolson/32/8372_2.png) [@ZackTarantino-Woolson](https://developer.sailpoint.com/discuss/u/ZackTarantino-Woolson)\
**Post date:** [May 20, 2024, 10:55pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354/2 "2024-05-20T22:55:16Z")

</div>

Could you post a screenshot of the Workflow configuration? (Feel free to block out anything / action descriptions that you don’t want to share)

I am guessing you have steps configured like:

1. Set Attribute Values action (Or similar non-user-presented action)
2. Request Form

In a case like that, the sessions is already “active” when it gets to the Request Form action - its waiting for the Request Form to be submitted. So, if the user does not submit the Request Form, the Workflow Session will stay “active” and waiting for the Form to be submitted. We have no way of automatically closing a sessions if it is waiting on a User’s input.

If a User starts a workflow, but does not want to continue it - they should use the “ **Cancel Request** ” button when in the request so that it is closed properly.

---

<div class="post-metadata">

**Author:** ![ajmerasunny1](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ajmerasunny1](https://developer.sailpoint.com/discuss/u/ajmerasunny1)\
**Post date:** [May 21, 2024, 4:40pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354/3 "2024-05-21T16:40:42Z")

</div>

Hi @ZackTarantino-Woolson Yes, my workflow has set attribute value action as a first step, here is the screenshot of it

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/d/da3a2fe7a572ea35fcac3a4c1936ceedddddae45.png)

Is there a way to automatically close the sessions which are pending for let’s say 7 days, just the request where form has not been submitted?

Also, if the workflow contains Request Form as a first step and then set attribute value action as following step, will it behave the same way, in terms of creating a pending request even when the form is not submitted?

---

<div class="post-metadata">

**Author:** ![ZackTarantino-Woolson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zacktarantino-woolson/32/8372_2.png) [@ZackTarantino-Woolson](https://developer.sailpoint.com/discuss/u/ZackTarantino-Woolson)\
**Post date:** [May 21, 2024, 6:13pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354/4 "2024-05-21T18:13:00Z")

</div>

There is no automated way to close out old sessions - at least not natively in the product. The /Workflow\_sessions API endpoint could be used to pull a report of sessions that are Pending Request - so you could set up some kind of external script or application to pull that data. Otherwise, Admins could review Pending sessions within the application periodically and cancel sessions that are old.

If a Request Form is the first step - The behaviors would be the same if they submit that first for but don’t submit the second one.

Zooming out, when a Workflow is run, a Request (or “Session”) is created - essentially while the first Action is executing. If the first action of the Workflow is an action that does not need User input (Like REST API, Set Attribute Value, Auto Assign, Notification, etc), the session is generated as the action completes. If the Action requires input (Request Form), the session is not generated until the form is Submitted.

You can see that difference in the page URL when running a workflow. If the workflow has a Request Form (or similar) as the first step, the url would like `/workflows/b4c1a1cf-efd5-4f7c-9297-5ac4cf585bfc/workflow_sessions/new`. On a workflow like yours, you might see the url like `/workflows/226e8387-dc08-4607-a53f-7391828dc50b/workflow_sessions/f0d00f2c-c011-433a-a4f7-0a6c499ed47f`

If the User backs out of the Workflow when the session is not yet generated (its in “new” still), there will be no hanging Pending request. If the User back out of the Workflow after a session is fully created, it will stay as Pending until someone (the user or an Admin) cancels/closes the Session.

---

<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:** [July 20, 2024, 6:13pm UTC](https://developer.sailpoint.com/discuss/t/nerm-pending-request-created-without-completing-the-request-either-or-when-information-is-not-filled/57354/5 "2024-07-20T18:13:23Z")

</div>

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