Page 1 of 1

FTP Receive - Adding Job ID

Posted: Tue Jan 14, 2014 6:10 pm
by webbedft
It appears that Switch is adding it's own unique job ID to my PDF file name when it is grabbed off of an incoming FTP site.



Incoming files is called 555555.pdf



After it comes into switch its named _0004M_555555.pdf



Is there a way to keep switch from adding this job id to the file?

FTP Receive - Adding Job ID

Posted: Tue Jan 14, 2014 8:22 pm
by dkelly
Switch always adds a unique prefix to a new job. This is done to allow multiple jobs with same name. You can tell Switch to drop the prefix when it writes the output file by setting the "Strip unique name" property to false on the last flow element (folder, Email/FTP send).

FTP Receive - Adding Job ID

Posted: Tue Jan 14, 2014 8:37 pm
by webbedft
Thank you that worked. One more questions. Now it's putting the file in a folder with the same name as the PDF file. So for example 555555.pdf is now in a job folder called 555555.



Is there a way to make it not be in a job folder.



I'm moving pages into Prinergy smart hot folder and it won't recognize the files if they are in a folder. They need to be in no folder.

FTP Receive - Adding Job ID

Posted: Tue Jan 14, 2014 10:05 pm
by dkelly
it sounds like the 'ftp receive' element is configured to save the directory hierarchy from the FTP server. Is your last element a regular folder or an 'Archive Hierarchy'?



If your jobs are actually folders then use the "Job dismantler" element to get rid of the folder.



If your job is a file with hierarchy info then use the "Set hierarchy path" element and set it to remove all paths.