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 :
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

    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

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

  • PS10 Profile Picture
    8 on at

    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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 101 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 72

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans