Showing results for 
Search instead for 
Do you mean 

Value cannot be null.\r\nParameter name: format

New Member
Posts: 4
Country: United_Kingdom

Value cannot be null.\r\nParameter name: format

Hi All,


I'm a beginner at this but here we go.


I am trying to update an ACT field (Stage) using the ACT Framework in C#.NET.


Here is the code:

MutableEntityFieldDescriptor oppStage = framework.Opportunities.GetFieldDescriptor(OpportunityHelper.FindOpportunityFieldByDisplayName(ref framework,"Stage"),true);

oppStage.SetValue(opp, "Reseller Engaged");


at this point I get the exception - "Value cannot be null.\r\nParameter name: format"


Can anyone help?


Posts: 1,163
Country: USA

Re: Value cannot be null.\r\nParameter name: format

Hello zoso,


Since stage is a public property of an opportunity, we don't need to get the field descriptor for it to set the value, this is how I did it:


Opportunity o = ActApp.ApplicationState.CurrentOpportunity;
StageManager sMgr = new StageManager(ActApp.ActFramework);
Stage[] stages = sMgr.GetStages("Initial Communication");           
o.Stage = stages[0];                    
Matthew Wood
Act! SDK Support
Community Moderator