# Unable to go back to the first step in the same stage

**URL:** <https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667>\
**Category:** General\
**Tags:** 8-8, case-management\
**Created:** [June 21, 2023, 11:43pm UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667 "2023-06-21T23:43:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CloeW938](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CloeW938](https://forums.pega.com/u/CloeW938)\
**Post date:** [June 21, 2023, 11:43pm UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/1 "2023-06-21T23:43:49Z")

</div>

Hello,

I simply want to go back to the first step within the same stage. I usually use **pxChangeStage** OOTB activity when I want to move to a different stage, but it seems this activity can’t be used if it is in the same stage. System displays an error message, “_The requested stage to change to is the same as the current stage_”.

 ![Unable to move to current stage.png](https://pega1.discourse-cdn.com/pega/original/2X/7/7561b79cffe45046654c4742b3b1807ad98af61f.png)

How can I go back to the first stage in the same stage?

Regards,

---

<div class="post-metadata">

**Author:** ![KarthikEppili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/karthikeppili/32/1830_2.png) [@KarthikEppili](https://forums.pega.com/u/KarthikEppili)\
**Post date:** [June 22, 2023, 12:07am UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/2 "2023-06-22T00:07:00Z")

</div>

@CloeW938

GoToPreviousTask might help. If this does not help, try to use tickets.

---

<div class="post-metadata">

**Author:** ![SiddhantJivane](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/siddhantjivane/32/5907_2.png) [@SiddhantJivane](https://forums.pega.com/u/SiddhantJivane)\
**Post date:** [June 22, 2023, 1:43am UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/3 "2023-06-22T01:43:41Z")

</div>

@CloeW938 ,

Please use ‘pxRestartStage’ if you are restarting the same stage.

Also, check if that step is configured as ‘retry on re-entry’ from case type rule.

---

<div class="post-metadata">

**Author:** ![ArulDevan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/aruldevan/32/23602_2.png) [@ArulDevan](https://forums.pega.com/u/ArulDevan)\
**Post date:** [June 22, 2023, 1:49am UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/4 "2023-06-22T01:49:56Z")

</div>

Hi @CloeW938: Please check [this](https://support.pega.com/question/how-restart-stage). You can use pxRestartStage to start back the stage.

Thanks.

---

<div class="post-metadata">

**Author:** ![CloeW938](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CloeW938](https://forums.pega.com/u/CloeW938)\
**Post date:** [June 26, 2023, 1:00pm UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/5 "2023-06-26T13:00:41Z")

</div>

@SiddhantJivane, @ArulDevan

Thank you, and I was able to go back to the first step in the same stage by calling **pxRestartStage** activity. However, I have one more question. Actually I am launching an optional process from _pyDefault_ Case Type rule. I am planning to call pxRestartStage activity at the end of this optional process, but I would need to delete all assignments before optional process begins. How can I accomplish this?

Regards,

---

<div class="post-metadata">

**Author:** ![KenshoTsuchihashi](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/kenshotsuchihashi/32/16482_2.png) [@KenshoTsuchihashi](https://forums.pega.com/u/KenshoTsuchihashi)\
**Post date:** [June 26, 2023, 1:17pm UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/6 "2023-06-26T13:17:04Z")

</div>

@CloeW938

We had a similar requirement and had to delete all existing assignments when an optional process is launched. We used **pxDeleteAssignmentsForWork** activity to achieve cleaning up. Maybe you can give it a try.

 ![pxDeleteAssignmentsForWork.png](https://pega1.discourse-cdn.com/pega/original/2X/a/a1caf75bf9401e0c514cc7336b4f407725418533.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![CloeW938](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CloeW938](https://forums.pega.com/u/CloeW938)\
**Post date:** [June 28, 2023, 10:20am UTC](https://forums.pega.com/t/unable-to-go-back-to-the-first-step-in-the-same-stage/4667/7 "2023-06-28T10:20:12Z")

</div>

@KenshoTsuchihashi

Thank you, this approach also worked!

Regards,
