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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Update Entity error - Participating entity record of stage is not valid

(0) ShareShare
ReportReport
Posted on by 44

Hi all,

i'm having an issue in trying to Update an Entity, in particular, i want to update the active stage of an Opportunity in the BPF and i'm having the error:

'participating entity record of stage is not valid'

Here's the code i'm using:

newActiveStageId = (Guid)pathResp.ProcessStages.Entities[activeStagePosition].Attributes["processstageid"];

// Retrieve the process instance record to update its active stage
ColumnSet cols1 = new ColumnSet();
cols1.AddColumn("activestageid");

Entity retrievedProcessInstance = crmSvc.Retrieve("opportunitysalesprocess", processOpp1Id, cols1);

// Update the active stage to the next stage
retrievedProcessInstance["activestageid"] = new EntityReference("processstage", newActiveStageId);
crmSvc.Update(retrievedProcessInstance);

crmSvc.Update(...); is the line affected by the error.

I've not found any usefull suggestion about this kind of error, so if someone can help it would be great.

Thanks for anyone responding.

I have the same question (0)
  • Verified answer
    ajyendra Profile Picture
    1,738 on at
    RE: Update Entity error - Participating entity record of stage is not valid

    Hi,

    Please check is there anything madatory field in that when to switch to not stage and update . like you are in Qualify stage and now from your code you move to purpose stage means you update the stage but check that Qualify stage have some mandatory field . Sometimes it through error if it is not filled. You can check this from your CRM First

  • Halson Profile Picture
    7 on at
    RE: Update Entity error - Participating entity record of stage is not valid

    Hi, i'm facing the same problem. did you manage to fix this?

  • PS10 Profile Picture
    8 on at
    RE: Update Entity error - Participating entity record of stage is not valid

    Were you able to resolve the error, i am stuck in the similar situation or may be what solution you applied to move from stage 1 to stage 2 with an auto qualify process on a business process flow. 

    Thanks,

    PS

  • Ilir Peposhi Profile Picture
    5 on at
    RE: Update Entity error - Participating entity record of stage is not valid

    Hi,

    Make sure all required steps are filled in (note that boolean fields are considered as not compiled if set to No) not only from the current stage till the target stage (obviously without the steps of the target stage) but also those of the previous stages.

    Please try and confirm if this fixed your problem.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 120 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 119

#3
Erin Lubben Profile Picture

Erin Lubben 73

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans