FTP Receive - Adding Job ID

Post Reply
webbedft
Newbie
Posts: 2
Joined: Tue Jan 14, 2014 6:04 pm

FTP Receive - Adding Job ID

Post 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?
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

FTP Receive - Adding Job ID

Post 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).
webbedft
Newbie
Posts: 2
Joined: Tue Jan 14, 2014 6:04 pm

FTP Receive - Adding Job ID

Post 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.
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

FTP Receive - Adding Job ID

Post 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.
Post Reply