Get Sample File
  • 20 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Get Sample File

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationDatabase

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

PropertyDescriptionData Type
Field NameDefines the field names for the Type List of String
Type NameDefines the Type nameString

Outputs

PropertyDescriptionData Type
Sample FileOutputs a CSV file with the field namesFileData

Example Inputs and Outputs

Field NameType NameOutput
Name, Email AddressUserCSV file
Name, AgeNullEXCEPTION MESSAGE
NullUserEXCEPTION 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?

What's Next