Fix File Line Break
  • 10 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Fix File Line Break

  • Dark
    Light

Article summary

Step Details

Introduced in Version3.0.0
Last Modified in Version8.0.0
LocationFile 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

PropertyDescriptionData Type
DataThe File being used as an input to the stepFileData

Outputs

PropertyDescriptionData Type
OutputThe outputted file which contains linebreaks. This file must be downloaded to view the changes.FileData



Example Inputs and Outputs

InputOutput
.txt file typeFileData object containing the line break changes
Null inputEXCEPTION MESSAGE
.doc or .docx file typeFileData object containing the line break changes
.csv file typeFileData object containing the line break changes
.pdf file typeFileData 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?

What's Next