Topic Options
#55995 - 05/21/18 02:36 PM Accommodating multiple output files with same name
hiskeys Offline
OL Newbie

Registered: 02/22/11
Posts: 17
We switched from a local Windows 2003 server to a remote Windows 2012 server at the beginning of the year. We also upgraded PlanetPress at about the same time, to 7.6.2.9999.

Even though our daily output PDF files apply a 4-digit time stamp at the end of the file name, if they process at the same time of day (as some do), then sooner or later, some will have the exact same 4 digits at the end. (For example: Pre-Validation Letter3214 and Pre-Validation Letter 3214)

As of now, the file with an exact same file name of one that's already in the folder is overwriting the existing one. But our old server used to be able to handle multiple files with the same name.

Could this have anything to do with the PlanetPress upgrade, or should I pursue this with our IT department as a server issue (a preference setting, for example)?

Thanks!

Top
#55998 - 05/22/18 05:30 PM Re: Accommodating multiple output files with same name [Re: hiskeys]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 474
Loc: Québec, Canada
The behaviour is the default one of Windows. 2 files with the same name in he same folder will overwrite each other.

Now in your Send to folder step, you can check the Concatenate file option so they are concatenated into a single one.

Another option is to add %u at the end of your filename in the Send to folder step, which will add a unique string at the end of the name, preventing duplication of filename.

Hope that helps.

Top
#56001 - 05/24/18 06:36 AM Re: Accommodating multiple output files with same name [Re: hiskeys]
Tyblu Offline
OL Newbie

Registered: 02/07/03
Posts: 30
Loc: South Coast, UK
Originally Posted By: hiskeys
We switched from a local Windows 2003 server to a remote Windows 2012 server at the beginning of the year. We also upgraded PlanetPress at about the same time, to 7.6.2.9999.

Even though our daily output PDF files apply a 4-digit time stamp at the end of the file name, if they process at the same time of day (as some do), then sooner or later, some will have the exact same 4 digits at the end. (For example: Pre-Validation Letter3214 and Pre-Validation Letter 3214)

As of now, the file with an exact same file name of one that's already in the folder is overwriting the existing one. But our old server used to be able to handle multiple files with the same name.

Could this have anything to do with the PlanetPress upgrade, or should I pursue this with our IT department as a server issue (a preference setting, for example)?

Thanks!


In the past, we have made use of a time stamp when saving a file, including seconds, to make any possible duplicate filenames unique. For example, filename_%d%m%y_%h%n%s

Top
#56002 - 05/24/18 10:27 AM Re: Accommodating multiple output files with same name [Re: Tyblu]
Yannick Fortin Offline
OL Expert

Registered: 08/25/00
Posts: 349
Loc: Objectif Lune Montréal
Using seconds doesn't make a filename unique if two happens to be created within the same second. ;-) You are better off using %u, which is guaranteed to be unique.
_________________________
Yannick Fortin, Team OL

Top
#56004 - 05/24/18 04:51 PM Re: Accommodating multiple output files with same name [Re: hiskeys]
hiskeys Offline
OL Newbie

Registered: 02/22/11
Posts: 17
Thank you for your responses. I found the list of commands by right clicking in the file output and going to variables.

So I'm using the month and day, in addition to the minute and second that was already there. Since the files mentioned only come out once daily, there will be no chance now of them overwriting.

Thanks again for your suggestions!

Top