--- title: "Add Expected Sub State" slug: "add-expected-sub-state" tags: ["expected state", "sub state", "process folder"] updated: 2023-01-31T16:21:47Z published: 2023-01-31T16:21:47Z canonical: "documentation.decisions.com/add-expected-sub-state" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Add Expected Sub State | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | Flow Management > Data > Sub State | The **Add Expected Sub State** step allows users to specify a Sub State to a State in a Process Folder. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Color | Allows a user to set the color of the Sub State | DesignerColor | | State Name | Allows a user to set the State to add the Sub State to | String | | Sub State Name | Allows a user to specify the Sub State to add to the State | String | --- #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1674584683395.png) --- ## Common Errors ### Parameter count mismatch If the input fields for the step are not configured, the step will cause an error. To correct this, ensure that a value is entered or mapped into each field. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Add Expected Sub State 1[AddExpectedSubState] in flow [Flow 1]: Incorrect Parmater Count, Data Not Mapped Correctly ---> DecisionsFramework.LoggedException: Incorrect Parmater Count, Data Not Mapped Correctly ---> System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` --- Related Information Documentation: [Creating a Process Folder](https://documentation.decisions.com/docs/creating-a-process-folder) [Using Process Folders](https://documentation.decisions.com/docs/using-process-folders) ## Related - [Complete Sub State](/complete-sub-state.md) - [Add File To Sub State](/add-file-to-sub-state.md) - [Is Complete With Sub State](/is-complete-with-sub-state.md) - [Add Comment To Sub State](/add-comment-to-sub-state.md) - [Add Expected State With Sub States](/add-expected-state-with-sub-states.md)