Step Details |
Introduced in Version | 4.0.0 |
Last Modified in Version | 7.12.0 |
Location | File Management
|
The Find Files With Extension step lists all files in a directory with a similar extension.
Properties
Inputs
Property | Description | Data Type |
---|
Extension | The string containing the extension name for a file. | String |
Search Text | Searches the path of the directory for the file. | String |
Outputs
Property | Description | Data Type |
---|
Output | A List of File names which match the criteria list. | List of String |

Common Errors
Index and length must refer to a location within the string
If the Length paired with the defined Start Index is longer than the length of the Input, the step will cause an error.
To correct this, change the length or the starting index not to exceed the input's length.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Substring 1[Substring] in flow [Display Steps]: Exception invoking method Substring on class StringSteps
---> DecisionsFramework.LoggedException: Exception invoking method Substring on class StringSteps
---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
--- 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 ---