--- title: "Export Folder" slug: "export-folder" tags: ["export", "Folders"] updated: 2023-01-17T17:17:59Z published: 2023-01-17T17:17:59Z canonical: "documentation.decisions.com/export-folder" --- > ## 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. # Export Folder | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | System > Advanced > Import - Export | The **Export Folder** step helps to export the folder by providing the folder id and module name of the folder which needs to be exported. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Exclude History Folders | Determines whether hidden items are excluded | Boolean | | Id | The Id of the desired Folder | String | | Include Dependencies | Determines whether dependencies are included | Boolean | | Include Hidden Items | Determines whether hidden items are included | Boolean | | Include Sub Folders | Determines whether subfolders are included | Boolean | | Module Name | The name of the desired module | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | Outputs the file path of the zip file | String | --- ## Example Inputs and Outputs | Id | Module Name | Output | | --- | --- | --- | | 08da6352-eda5-c25f-1f24-222260017f93 | ProjectA | C:\Program Files\Decisions\Decisions Server\Instances\Control\Export\Downloads\ProjectA-17012023-114716.zip | | Null | SalesProject | EXCEPTION MESSAGE | | 08da6352-eda5-c25f-1f24-222260017f93 | Null | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1673974242845.png) --- ## Common Errors ### Object reference not set to an instance of an object. If the Id value is null or empty, the step will cause an error. To correct this, map or enter the correct value. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Export Folder 1[ExportFolder] in flow [Flow 1]: Exception invoking method ExportFolder on class ImportExportSteps ---> DecisionsFramework.LoggedException: Exception invoking method ExportFolder on class ImportExportSteps ---> System.NullReferenceException: Object reference not set to an instance of an object. at DecisionsServiceHost.Modules.ModulesHelper.ExportFolderReturningExportFolder(ExportFolderData data at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportFolder(String id, String moduleName, Boolean includeSubFolders, Boolean excludeHistoryFolders, Boolean includeHiddenItems, Boolean includeDependencies) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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 --- ``` ## ### Value cannot be null. If the Module name value is null or empty, the step will cause an error. To correct this, map or enter the correct value. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Export Folder 1[ExportFolder] in flow [Flow 1]: Exception invoking method ExportFolder on class ImportExportSteps ---> DecisionsFramework.LoggedException: Exception invoking method ExportFolder on class ImportExportSteps ---> System.ArgumentNullException: Value cannot be null. (Parameter 'input' at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg at DecisionsServiceHost.Modules.ModulesHelper.RemoveReservedFileChars(String filename at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ZipDirectoryForModuleDownload(String moduleName, String pathToZip at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportFolder(String id, String moduleName, Boolean includeSubFolders, Boolean excludeHistoryFolders, Boolean includeHiddenItems, Boolean includeDependencies) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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 - [Export Module For Entity](/export-module-for-entity.md) - [Export Single Object Step](/export-single-object-step.md) - [Export Module Into Zip](/export-module-into-zip.md) - [Export Module](/export-module.md)