.dat files that should be .pdf

Hello,
we still use an older version of PlanetPress. I have this process:


It takes a pdf, stores it into one folder. Then a script is running to upload it via FTP.
The other side also stores the same PDF and stores it in a backupfolder.

What is super strange is that in the left side, the files are stored with .dat, while on the right side, the files get the correct .pdf ending.

This does not make sense to me at all and I don’t know how to troubleshoot any further.

Another info, I can see that the log also confirms that two different file-endings:

DEBUG: Starting plugin An Ordner senden - 12:48:08
DEBUG: Path: C:\PlanetPress\epost\backup\mahnwesen2
DEBUG: Parsed path: C:\PlanetPress\epost\backup\mahnwesen2
DEBUG: Filename: %f
DEBUG: Parsed filename: job010HH7Y5MQV01162EA5C10C.pdf
INFO : File sent : C:\PlanetPress\epost\backup\mahnwesen2\job010HH7Y5MQV01162EA5C10C.pdf, size: 26349 bytes
INFO : Plugin An Ordner senden completed successfully - 12:48:08 (elapsed time: 00:00:00:005)

DEBUG: Starting plugin An Ordner senden - 12:48:07
DEBUG: Path: C:\PlanetPress\epost\mahnwesen2
DEBUG: Parsed path: C:\PlanetPress\epost\mahnwesen2
DEBUG: Filename: %f
DEBUG: Parsed filename: job010HH7Y5N9AJT1E2EA5C15B.dat
INFO : File sent : C:\PlanetPress\epost\mahnwesen2\job010HH7Y5N9AJT1E2EA5C15B.dat, size: 26349 bytes
INFO : Plugin An Ordner senden completed successfully - 12:48:07 (elapsed time: 00:00:00:003)

As soon as you use a branch (or a condition) in your Workflow, the data file is copied to a temporary file name with a .DAT extension. That’s why you branch saves the file as .dat. You should use the Rename task inside that branch to ensure the file gets the proper name.