--- title: "Load and Rename File" slug: "load-and-rename-file" updated: 2025-07-11T14:14:51Z published: 2025-07-11T14:14:51Z canonical: "documentation.decisions.com/load-and-rename-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 Rename File | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.12.0 | | **Location** | File Management | The **Load and Rename File** step loads a file in memory and renames the source file. The new file name must include the file extension. --- ## Properties The **Load and Rename File** step loads a file in memory and renames the source file. The new file name must include the file extension. #### Inputs | Property | Description | Data Type | | --- | --- | --- | | File Name | The full path to the file, including the file name and extension. | String | | New Name | The new name for the source file. This name must include the file extension | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | The contents of the files loaded as a FileData type. | FileData | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2022-12-08_11h03_05.png) --- ## Common Errors ### File extension is missing If the file extension is missing, the step will throw the following error. Ensure that under the File Name input that the file extension is included. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Load And Rename File 1[LoadAndRenameFile] in flow [Testing]: Exception invoking method LoadAndRenameFile on class FileSteps ---> DecisionsFramework.LoggedException: Exception invoking method LoadAndRenameFile on class FileSteps ---> System.IO.FileNotFoundException: Could not find file 'C:\Examples\newfilename.txt'. File name: 'C:\Examples\newfilename.txt' at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.File.ReadAllBytes(String path) at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.FileSteps.LoadFile(String fileName) at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.FileSteps.LoadAndRenameFile(String fileName, String newName) --- 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)