web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Sales forum / Opportunity process an...
Sales forum

Opportunity process and stage invalid stage transition

(0) ShareShare
ReportReport
Posted on by

Hi,

Im saving a opportunity with stageid and processid. And im getting this error below. Im not sure what it mean. Is the stage "Step_59" doesn't exist? Or just not allowed because is not in the process active path? What might causing this error?

"Invalid stage transition. Transition to stage Step_59 is not in the process active path."

Categories:
I have the same question (0)
  • Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi ulymag,

    Can you provide some screen shots of the Business Process Flow (BPF)?  The BPF seems to be configured incorrectly.

  • Community Member Profile Picture
    on at

    Hi all,

    I have the same issue for opportunity business process flow on Dynamics 365. I need to know what does this issue message mean and what causes this issue.

    "Invalid state transition.Transition to stage Step_114 is not in the process active path."

  • Community Member Profile Picture
    on at

    Thank you for the answer. We found out the issue. The issue is the old process is deactivated and a new process is created. We temporarily set the stage id to null for now until we can figure out how to mapped it with the new process stage id.

  • Community Member Profile Picture
    on at

    Hi all,

    I just experienced the same error with an slighlty different error message. I tried to programmatically set the stageid on an Opportunities Business process when i encountered this error. My assumption is that you are not able to skip stages so easily. You have to follow the path of the Business process flow. For example if you are in "Stage A" and try to go to the "Stage C" while you skip "Stage B" CRM won´t allow it. I can´t tell what´s the reason behind this, probably some possible conditions between the stages, but i can´t tell for sure. My Workaround for now is to progamatically loop through the stages and update the opportunity stage by stage. This is of course an Overkill, but considered that i only have three stages this will do the Job for now until i find a better solution.

  • Suggested answer
    Yadnyesh Kuvalekar Profile Picture
    4,102 on at
  • Suggested answer
    Community Member Profile Picture
    on at

    Depending on your scenario, this can be the result of a bug in CRM.  If you have a BPF that has a conditional branch and you remove that branch then those records on a stage that was in a removed branch will be stuck.  The only way I have found for fixing this is to use advanced find to query the BPF entity itself and delete the record from CRM...then you can refresh the record which had the BPF entity association and it will appear as no BPF is applied.  From this point, you can use the "Process" button in the ribbon to set the active process.

    If you're doing this for the Lead to Opportunity process, and you've Qualified the Lead already, then after you perform the same steps as above, you have to reopen the Lead, set the active process on that record, choose the next stage button and choose the already related opportunity, and then both will connect via the BPF flow.  The problem is the Lead is still open and if you use the Qualify button then another Opportunity would get created or the BPF will error, so you can instead write a User On-demand workflow to Change the Lead Record status to Qualified.

  • Community Member Profile Picture
    on at

    Hi Nino,

    I have a similar situation now. Can you provide me the template of the code. I will try to reuse in my plugin.

  • Suggested answer
    makepeace Profile Picture
    45 on at

    We had the same error with customized business process flows. I was able to fix all of them simply by deactivating each process and then re-activating them. It was necessary to do this in the process window individually for each process instead of simply deactivating and re-activating all of them together in the grid.

    I also made some changes to the order of phases in one stage, clicked save and validate, and then reverted the changes with save and validate, but I think it wasn't necessary to get them fixed.

  • Choudhary Amit Dynamics Profile Picture
    on at

    Hi Nino,

    Can you please share the code snippet how did you achieve that.

  • Suggested answer
    gkinstler Profile Picture
    on at

    I received an error like this recently, but I was trying to update a BPF without deactivating it first.  I had to close the BPF without being able to save my changes (which wasn't much), truly deactivate the flow, make changes, then reactivate.  No errors.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Sales

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans