We've encountered a pretty annoying issue and I just wanted to mention it here in case anyone else comes across it. When processing jobs in Switch, if you have Switch deliver those files to another hotfolder workflow, you may find that the other system watching the hotfolder does not pick the files up, and in some cases, may error out.
In the case of our BCC integration, the error was something like this:
Code: Select all
08/05/2015 10:31:01.124 >> .~#~247_Z-2969011-2969661_R-uni_1438782349_BCC.csv : File Found
08/05/2015 10:31:01.359 >> .~#~247_Z-2969011-2969661_R-uni_1438782349_BCC.csv : File no longer available
In both cases, you can get the files to process by stopping and starting the service that watches those hotfolders (restart BCC or Creo) and it will pick them up the existing files. And in both cases, if you manually drag a file into those hotfolders from Finder or Explorer, it works fine. The issue is just with Switch passing the files off. And of course, "strip unique name" was set to "Off" in the destination folder and we also tried archiving which was also unsuccessful.
I think a clue to what is going on can be found in the BCC error:
It seems that Switch moves the file to the hotfolder with some sort of internal naming convention prefix ".~#~" and then, in an instant, removes the prefix with a rename. It seems that within the time of the move and the rename, Switch is locking up the file so that these external hotfolder systems can't process the file and they just get stuck.08/05/2015 10:31:01.124 >> .~#~247_Z-2969011-2969661_R-uni_1438782349_BCC.csv : File Found
The solution for us was to write a script that would make Switch, instead of moving the files regularly, would execute a cp command to move the files to the destination via CLI. Here is the script for anyone interested: https://github.com/dominickp/SwitchCopy ... yUnixCp.js