--- title: "Fix File Line Break" slug: "fix-file-line-break" tags: ["File Management", "file steps", "Line Break", "format"] updated: 2025-07-11T13:53:12Z published: 2025-07-11T13:53:12Z canonical: "documentation.decisions.com/fix-file-line-break" --- > ## 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. # Fix File Line Break | ## Step Details | | --- | | **Introduced in Version** | 3.0.0 | | **Last Modified in Version** | 8.0.0 | | **Location** | File Management or under Data/Text | The Fix File Line Break step removes line break characters within a file. This step will convert these characters into actual line breaks for a file. This step uses FileData as an input and will output a new updated file containing the fix, which will need to be downloaded. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Data | The File being used as an input to the step | FileData | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | The outputted file which contains linebreaks. This file must be downloaded to view the changes. | FileData | --- ## Example Inputs and Outputs | Input | Output | | --- | --- | | .txt file type | FileData object containing the line break changes | | Null input | EXCEPTION MESSAGE | | .doc or .docx file type | FileData object containing the line break changes | | .csv file type | FileData object containing the line break changes | | .pdf file type | FileData object containing the line break changes | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1658258704770.png) --- ## Common Errors ### Passing in a Null File If a Null value is passed into the step, then the step will throw the following error. To ensure this does not happen, pass the file in as a Constant. #### Exception Message: ```cpp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Fix File Line Breaks 1[FixFileLineBreaks] in flow [Testing Flow]: Exception invoking method FixFileLineBreaks on class FileSteps ---> DecisionsFramework.LoggedException: Exception invoking method FixFileLineBreaks on class FileSteps ---> System.NullReferenceException: Object reference not set to an instance of an object. at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.FileSteps.FixFileLineBreaks(FileData data) --- 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 Forum Posts: - [Inserting Text Into Word Documents](https://community.decisions.com/discussion/108/inserting-text-into-word-documents)