--- title: "Get Sample File" slug: "get-sample-file" tags: ["sample file", "data", "csv", "database"] updated: 2022-12-20T20:02:51Z published: 2022-12-20T20:02:51Z canonical: "documentation.decisions.com/get-sample-file" --- > ## 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. # Get Sample File | ## 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 | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1671564309349.png) --- ## 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: ```csharp 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 --- ``` ## Related - [File Exists](/file-exists.md) - [Match File](/match-file.md) - [Add File To Zip](/add-file-to-zip.md) - [Download File to Path](/download-file-to-path.md) - [Touch File](/touch-file.md)