Hold Configurator

Post Reply
arothenberger
Newbie
Posts: 12
Joined: Thu May 29, 2014 10:48 am

Hold Configurator

Post by arothenberger »

It seems simple enough, but it's kicking my butt. A third party automated system is pushing files to a folder that is being monitored by Switch. There will always be three files but all three files will not be sent at the same time. I have my hold condition set properly but here's the issue. The third party automation creates the folder directory in the Switch folder, once Switch starts to monitor the folder it adds the "hidden" unique ID prefix. The Switch unique ID is not hidden to this outside software, it is seen as if the folder UNC path has changed, so it creates a new Parent folder when files are pushed. I set the folder to scan every 30 minutes, that works but on occasion the above scenario happens. If partial files were upload and then 31 minutes later the final file was sent for that job, the last file be placed in a new Parent folder.

Any ideas?
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Hold Configurator

Post by gabrielp »

I would ungroup/split them and assemble them again based on the parent name of the folder, which Switch can do without the hidden _prefix_.

So if you have:

Code: Select all

_123ABC_MyJob1/
---- AFile.pdf
---- AnotherFile.pdf
_456XYZ_MyJob1/
---- OneMoreFile.pdf
You would split them into the flow as separates while maintaining the parent folder name (MyJob1):

Code: Select all

---- AFile.pdf
---- AnotherFile.pdf
---- OneMoreFile.pdf
And assemble them back based on that parent folder name:

Code: Select all

MyJob1/
---- AFile.pdf
---- AnotherFile.pdf
---- OneMoreFile.pdf
Or you could, you know, have your client drop the files in a folder Switch is not watching and for-go this mess. :D
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
arothenberger
Newbie
Posts: 12
Joined: Thu May 29, 2014 10:48 am

Re: Hold Configurator

Post by arothenberger »

I was thinking of this same thing... Set a secondary hold connection to pass through folders containing less than 3 three files that has been siting for longer than 45 minutes. All file names start with the same first 13 digits. So a regroup with using the first 13 characters would be simple.

Thanks... I was looking for some magic sauce, looks like the hold connection is the best route.

Thanks for the reply.
arothenberger
Newbie
Posts: 12
Joined: Thu May 29, 2014 10:48 am

Re: Hold Configurator

Post by arothenberger »

Just if anyone cares to know. The 13 digits can be random in the file name. The files can still be combined based on those 13 digits with using [Job.NameProper:Search="([0-9]{13})"].
Post Reply