Get Sample File
- 20 Dec 2022
- 1 Minute to read
- Print
- DarkLight
Get Sample File
- Updated on 20 Dec 2022
- 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 | 5.0.0 |
Location | Database |
The Get Sample File step collects a list of Field Names belonging to the same Type Name and exports them into a sample CSV file.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Field Name | Defines the field names for the Type | List of String |
Type Name | Defines the Type name | String |
Outputs
Property | Description | Data Type |
---|---|---|
Sample File | Outputs a CSV file with the field names | FileData |
Example Inputs and Outputs
Field Name | Type Name | Output |
---|---|---|
Name, Email Address | User | CSV file |
Name, Age | Null | EXCEPTION MESSAGE |
Null | User | EXCEPTION MESSAGE |
Common Errors
Value cannot be null
If the input value is null, an error will occur.
To correct this, ensure that the value for the input fields exists.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Sample File 1[GetSampleFileStep] in flow [Flow 2]: 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.TryGetLast[TSource](IEnumerable`1 source, Boolean& found
at DecisionsFramework.Design.Flow.CoreSteps.DataBase.GetSampleFileStep.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?