Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Shakib Hikmat
2021-05-17T17:25:31Z
I created a simple job with a rename and move task.
Rename: When a file comes in as "X.txt", rename it to "Y.CSV"
Move: Upload the renamed file to another directory and delete the source file.

But, in this case the file came in as "Y.CSV" which meant that the rename was no longer necessary and it just needed to be uploaded. And for some reason VisualCron deleted the file that did not need to be renamed AND did not move it.

My question: What's the best way to enter a conditional clause so that a rename is only done if necessary, but either way to move the file. Do I have to write a Powershell script?
Sponsor
Forum information
Gary_W
2021-05-17T17:43:02Z
We really need to see the settings for these tasks to diagnose what happened.
Shakib Hikmat
2021-05-17T18:01:33Z
Sorry about that, what kinds of settings do you want to see?

Rename Task:
image.png
image.png
Shakib Hikmat
2021-05-17T18:03:47Z
Sorry about that, what kinds of settings do you want to see?

Rename Task:
image.png
image.png

Upload Task:
image.png
image.png
image.png
Support
2021-05-19T13:17:49Z
Originally Posted by: Shakib Hikmat 

Sorry about that, what kinds of settings do you want to see?

Rename Task:
image.png
image.png

Upload Task:
image.png
image.png
image.png



Uncheck "Delete source file after copy" in the upload task,
Also uncheck "overwrite if existing" (shouldn't be an issue but still).

But if you want in depth troubleshooting for this, please send an email to support@visualcron.com with the screenshots and detailed description of what happened, and also if you are able to reproduce that issue. it would also be good if you included the log file with a timestamp of when exactly that happened. You can find the logfile in the Log folder, log_server*date*
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top