Replace Text
  • 28 Aug 2024
  • 1 Minute to read
  • Dark
    Light

Replace Text

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version9.3.0
LocationData > Text

The Replace Text step allows users to replace a configured text value with a newly determined value. 

In versions prior to v9.3 the input property "Replace With" could not be set to Null or Ignore, otherwise the step would fail. In v9.3 and later versions the "Replace With" property can be set to Null or Ignore and it will replace the required text with blank spaces. 

 


Properties

Inputs

PropertyDescriptionData Type
Replace WithNew text to replace part of the source with.String
SourceOriginal Text to manipulate.String
To ReplaceText to replace with new text. Will replace ALL instances of desired text. String

Outputs

PropertyDescriptionData Type
None------

Common Errors

Flow Run Error

Setting the "Replace With" input property to Null or Ignore will throw an error for any version below v9.3.

Exception Message

DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Replace Text 1[ReplaceText] in flow [Mapping Editor Flow]: Exception invoking method ReplaceText on class StringSteps ---> DecisionsFramework.LoggedException: Exception invoking method ReplaceText on class StringSteps ---> DecisionsFramework.LoggedException: replaceWith is null at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.StringSteps.ReplaceText(String source, String toReplace, String replaceWith) at InvokeStub_StringSteps.ReplaceText(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- 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 --- at DecisionsFramework.Design.Flow.FlowEngine.Error_RethrowException(String flowTrackingID, String stepTrackingID, Exception ex, String stepName, String flowName, String stepType) at DecisionsFramework.Design.Flow.FlowEngine.Error(String flowTrackingID, String stepTrackingID, Exception ex, String stepName, String flowName, String stepType, FlowStep step, RunningStepData stepData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) at DecisionsFramework.Design.Flow.FlowEngine.RunEngine() at DecisionsFramework.Design.Flow.FlowEngine.RunStepWithTrackingId(String flowTrackingID, FlowStep fs, FlowStateData data, String stepTrackingId, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowEngine.Start(Flow flow, FlowStateData data, Boolean debug, String flowTrackingId, String workQueueName, Boolean startedViaRunFlowAction, DataPair[] initialGlobalExecutionData, PrimaryFlowTrackingData trackingData, DebugParameters parameters) at DecisionsFramework.Design.Flow.Service.Execution.FlowExecutionService.StartFlowAndGetPrimaryFlowTrackingData(Flow flow, DataPair[] data, FlowEngineStartOptions startOptions) at DecisionsFramework.Design.Flow.Service.Execution.FlowExecutionService.StartFlowWithData(String flowId, DataPair[] data, FlowEngineStartOptions options) at DecisionsFramework.Design.Flow.Service.Execution.FlowExecutionService.StartFlowWithData(AbstractUserContext context, String flowID, DataPair[] data, String flowTrackingId, Boolean startedViaRunFlowAction, DebugParameters parameters)

Feature Changes

DescriptionVersionRelease DateDeveloper Task
"Replace With" can now be left blank.v9.3September 11, 2024[DT-041491]



Was this article helpful?

What's Next