Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Find Files by Extension

Prev Next

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationFile Management

The Find Files With Extension step lists all files in a directory with a similar extension.


Properties

Inputs

PropertyDescriptionData Type
ExtensionThe string containing the extension name for a file.String
Search TextSearches the path of the directory for the file.String

Outputs

PropertyDescriptionData Type
OutputA 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 ---