--- title: "Validate Fields to Include" slug: "validate-fields-to-include" updated: 2023-01-26T19:33:58Z published: 2023-01-26T19:33:58Z canonical: "documentation.decisions.com/validate-fields-to-include" --- > ## 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. # Validate Fields to Include | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.12.0 | | **Location** | Database | The **Validate Fields to Include** step is used to display any validation warnings for a Decisions object when being saved to the Database. The step requires the [full type name](/step-library/docs/get-type-full-name-step) and a list of fields from a Decisions entity representing potential fields that will be updated for an entity. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Field Names | A list of Field Names represent potential fields | List of String | | Type Name | The full type name for a Decisions object | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Warnings | A list of validation warnings found if the listed field values are updated | String | --- ## Example Inputs and Outputs | Field Names | Type Name | Warnings | | --- | --- | --- | | String_Field, List_String_Fields, Nulls_Allowed | MyApps.ExampleDBStructure | Warnings: "id is not included. Any uploads will create new entities" | | String_Field, List_String_Fields, Nulls_Allowed, ID | MyApps.ExampleDBStructure | No validation warnings | | String_Field, List_String_Fields, Nulls_Allowed, ID | ExampleDBStructure | EXCEPTION MESSAGE | | Empty String List | MyApps.ExampleDBStructure | Warnings: "id is not included. Any uploads will create new entities" | | String_Field, List_String_Fields, Nulls_Allowed, ID | NULL Value | EXCEPTION MESSAGE | | NULL Value | MyApps.ExampleDBStructure | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2022-12-08_11h03_05.png) --- ## Common Errors ### Value cannot be null Values for the Field Names or the Type Name fields cannot be null. Ensure that either field does not have null values as inputs. #### Exception Message: ```cpp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Validate Fields To Include 1[ValidateFieldWarnings] in flow [Testing Flow]: Value cannot be null. (Parameter 'source') ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer) at DecisionsFramework.Design.Flow.CoreSteps.DataBase.ValidateFieldWarnings.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 --- ```