EBIFour.com Training Clarify QRGs When the Delete File Adapter Doesn’t Work
When the Delete File Adapter Doesn’t Work
12th January 2020
After going thru multiple iterations of trying to use the Cleo Clarify Delete Adapter, we came up empty handed
Below are some of the Clarify Auditor scenarios that showed each iteration as being unsuccessful
Clarify Auditor Scenarios
Note: Each of the Clarify scenarios below were unsuccessful
Scenario 1 - Use wildcard value: .*.
2019-12-19 09:18:17,694 [INFO ] - Getting the File System connection from the FS Resource Adapter…
2019-12-19 09:18:17,694 [INFO ] - File URL: file:/cst/data/clarify/tradingPartner/ABC/outbox/
2019-12-19 09:18:17,694 [INFO ] - Executing the File System Adapter Interaction…
2019-12-19 09:18:17,694 [DEBUG] - [FSInteraction Instance:][execute] Entering method
2019-12-19 09:18:17,694 [INFO ] - [FSInteraction : ] Executing a DELETE operation…
2019-12-19 09:18:17,694 [INFO ] - Creating Filename Filter using: .*.
2019-12-19 09:18:17,694 [DEBUG] - [execute] Leaving method
2019-12-19 09:18:17,694 [PERSISTENT] - Ending Interface Adapter invocation.
2019-12-19 09:18:17,694 [PERSISTENT] - Completed Task.
Scenario 2 - Use wildcard value: *.*
2019-12-19 09:17:18,631 [INFO ] - Getting the File System connection from the FS Resource Adapter…
2019-12-19 09:17:18,631 [INFO ] - File URL: file:/cst/data/clarify/tradingPartner/ABC/outbox/
2019-12-19 09:17:18,631 [INFO ] - Executing the File System Adapter Interaction…
2019-12-19 09:17:18,631 [DEBUG] - [FSInteraction Instance:][execute] Entering method
2019-12-19 09:17:18,631 [INFO ] - [FSInteraction : ] Executing a DELETE operation…
2019-12-19 09:17:18,631 [INFO ] - Creating Filename Filter using: *.*
2019-12-19 09:17:18,631 [ERROR] - Error executing adapter : Dangling meta character ’*’ near index 0
*.*
^
2019-12-19 09:17:18,631 [ERROR] - java.util.regex.PatternSyntaxException: Dangling meta character ’*’ near index 0
*.*
Scenario 3: - Hardcode filename
2019-12-19 09:12:54,906 [INFO ] - Getting the File System connection from the FS Resource Adapter…
2019-12-19 09:12:54,906 [INFO ] - File URL: file:/cst/data/clarify/tradingPartner/ABC/outbox/
2019-12-19 09:12:54,906 [INFO ] - Executing the File System Adapter Interaction…
2019-12-19 09:12:54,906 [DEBUG] - [FSInteraction Instance:][execute] Entering method
2019-12-19 09:12:54,906 [INFO ] - [FSInteraction : ] Executing a DELETE operation…
2019-12-19 09:12:54,906 [INFO ] - Creating Filename Filter using: SalesData.csv
OS Command – Alternative
As an alternative. to the Cleo Clarify Delete Adapter, we implemented the Clarify OS Command BPS Task (below)
In the task we will call the Linux command: rm
The command will consist of: rm
/cst/data/clarify/tradingPartner/ABC/outbox/
SalesData.csv
By: Sean Hoppe on