locked
CRM Online, The traversed path should end with the new active stage RRS feed

  • Question

  • Hi,

    In a plugin (registered in Create Message, post Operation, Asynch. mode), I tried to update a custom field in Opportunity.  I got error: "The traversed path should end with the new active stage".  Then, I programmatically match the last stage in 'traversedpath' field to 'stageid' field, it's still not working with the same error.  Here is the code, and any idea?  Thanks.

    if (opp != null)
    {                        
          if (context.MessageName == "Create")
         {                            
               opp.Attributes["traversedpath"] = myTraversedpath;  // last id in CVS format is the same as that in 'stageid' field
         }                      
                               
         opp.Attributes["myCustField"] = myCustText;                        
         service.Update(opp);
               
    }

    Monday, January 25, 2016 5:54 PM