I am polling for a file using the File IO adapter. Almost everything works fine, except the filename that I receive has a timestamp appended to it. It looks more like the working filename whereas I need the original filename.
I am not sure any fix is available for this. I could not find in advantage.
However, the best practice is not to poll the data file directly. Instead of having one polling directory separately and put a small empty polling.txt file after the data file is being exported to the data directory. Once the polling is completed a file read operation can be configured to read the data file. In this case the polling file can have time stamp.
This solved one more big issue that in case the data file is too large, the file poll ommits the half data and moves the file into completion with partial read.
Alternative workaround for the problem: if you really need to use or interrogate the filename in your IC, then you could write a simple java common operation to strip off the date/time stamp from the file name as it’s passed into the IC.
Writing it as a common operation, rather than coding it into the IC, means that you can then call the same function from any other file-based IC to perform the same task.
Not an ideal solution, but a work-around nonetheless.