Validate Fields to Include
- 26 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Validate Fields to Include
- Updated on 26 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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 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 |
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:
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 ---
Was this article helpful?