Forum Discussion

sjakathi's avatar
sjakathi
New Contributor II
2 years ago

Directory Browser

Hi All
I have a requirement to browse the directory and filter the files by expression like below

I want to select the text files which is having the below naming convention.
in file filter field i have given the expression as below but it is giving the error.
($groupBy.whse+'_'+$groupBy.transaction_date+'_'+$groupBy.transaction_type)+*.txt 

Thanks 

 

2 Replies

  • Hello sjakathi.

    The File filter property in the Directory Browser Snaps expects a string, in your case just add quotes to the file extension part.

    ($groupBy.whse+'_'+$groupBy.transaction_date+'_'+$groupBy.transaction_type)+'*.txt' 

    Try the above expression and let me know if this solves your problem, otherwise please provide more detailed error message so we can get more details on what might be the cause.

    Regards,

    Aleksandar.

  • sjakathi's avatar
    sjakathi
    New Contributor II

    Even though i have files but it is not returning any of the files.