--- title: "Load and Move File" slug: "load-and-move-file" updated: 2025-07-11T14:14:15Z published: 2025-07-11T14:14:15Z canonical: "documentation.decisions.com/load-and-move-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. # Load and Move File | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.12.0 | | **Location** | File Management | The **Load and Move File** step stores a file in memory during a Flow's runtime and will move the file to a new location. The step requires the full path to both the file and the new location, similar to the [Move File](/step-library/docs/create-delete-move-file) step. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | File Name | The full path to the file, including the file name and extension. | String | | Move To | The new location to the file. The file name must be included in the path | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | The contents of the files loaded as a FileData type. | FileData | --- ## Example Inputs and Outputs | Input | moveTo | Output | | --- | --- | --- | | C:\Examples\example.txt | C:\Program Files\Decisions\Decisions Server\example.txt | Relocates the file to C:\Program Files\Decisions\Decisions Server\ and loads a copy of the file in memory | | C:\Examples\example.txt | C:\Examples\[newfilename].txt | Relocates and renames the file in the new directory | | C:\Examples\example.txt | Null Value | EXCEPTION MESSAGE | | C:\Examples\example.txt | Empty String | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1674245663357.png) --- ## Common Errors ### File already exists If a file with the same name and extension exists within the directory defined, then the following error will be thrown. Ensure that no file shares the same name and extension. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Substring 1[Substring] in flow [Display Steps]: Exception invoking method Substring on class StringSteps ---> DecisionsFramework.LoggedException: Exception invoking method Substring on class StringSteps ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.Substring(Int32 startIndex, Int32 length) --- 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 Information Example Labs: - [Downloading a File from Decisions](https://documentation.decisions.com/projects/docs/downloading-a-file-from-decisions) Forum Posts: - [Give Load and Move File Shared Folder Access](https://community.decisions.com/discussion/1416/give-load-and-move-file-shared-folder-access) - [Using Files From Directory](https://community.decisions.com/discussion/3323/using-files-from-directory)