Fix File Line Break
- 10 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Fix File Line Break
- Updated on 10 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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 |
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:
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:
Was this article helpful?