Forum Discussion
Hi Susan,
You can use the Directory Browser snap to filter the required files then use the file delete snap.
Ex: In Directory Browser snap for the field Directory give the full path of the directory and for the field File filter use the value as samplefile_*.csv. With this step, you will get all the files which satisfy the condition. Then you can $Path to delete these files using file delete snap.
When I insert my schema this is what I get.
Could not compile expression: Date.parse($MODDATE,“yyyyMMdd … (Reason: Invalid token: ‘“’ for expression: Date.parse($MODDATE,“yyyyMMdd …; Resolution: Please check expression syntax)
Can you give me the complete expression you are providing and the error as well.
Of course,
expression:
Date.parse($MODDATE,“yyyyMMdd hhmmss”).toLocaleDateTimeString({“format”:“yyyy-MM-dd hh:mm:ss”})Validation errors:
property_map.settings.transformations.value.mappingTable.value[2].expression.value: Could not compile expression: Date.parse($MODDATE,“yyyyMMdd … (Reason: Invalid token: ‘“’ for expression: Date.parse($MODDATE,“yyyyMMdd …; Resolution: Please check expression syntax)
Related Content
- 2 years ago
- 2 years ago
- 11 months ago