Community forum

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


osirisja
2012-09-14T12:34:40Z
Hi Support

I am using a function in order to fetch a Folder name in order to set a FileCopy task, however I am getting errors in the filecopy.

The function string is set up as follows:

User variable @actlog = {LOOP(CurrentValueXArray,0)}

(where the single iteration of {LOOP(CurrentValueXArray,0)} results in:

Variable '@actlog' was updated to: \\9.90.90.9\Pro_DATA\@VC\reccy\in\f86507ae-04ff-41e8-b7d9-3d46b0fee27e_Color_Simplex_Test Envelope C5_Premier 2-Day CBC.tkt

Then I set a variable:

User variable @appfolder = {PATH(GetDirectoryName|{USERVAR(@actlog)}}

However, @appfolder provides the result:

Variable '@appfolder' was updated to: {PATH(GetDirectoryName|\\9.90.90.9\Pro_DATA\@VC\reccy\in\f86507ae-04ff-41e8-b7d9-3d46b0fee27e_Color_Simplex_Test Envelope C5_Premier 2-Day CBC.tkt}

I would expect this function to result in:

Variable '@appfolder' was updated to: \\9.90.90.9\Pro_DATA\@VC\reccy\in


In my File Copy Task, I am using the same function for the Folder field ({PATH(GetDirectoryName|{LOOP(CurrentValueXArray,0)}}) And this results in an exception:

Exception in Task: Illegal characters in path.
Exception in Task: No file(s) copied

I have also tried '{PATH(GetDirectoryName|{USERVAR(@actlog)}}' but I still get the same error

Any ideas where it is going wrong?

Cheers

Andy

EDIT - should add I am running V 6.1.3
Sponsor
Forum information
Support
2012-09-14T12:42:17Z
Most probably you need to just check "Translate to constant when running" on the appfolder variable.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
osirisja
2012-09-14T12:53:58Z
Hi Henrik

Translate to Constant is checked (also tried it unchecked but no difference)

Also changed my COPY command to hard code the paths but I'm still getting the exception:

Exception in Task: Illegal characters in path.
Exception in Task: No file(s) copied

From what I can tell the path is absolutely fine (see attached screen shot). The Path is defined in Network Drives and can be accessed no problem (as I'm doing in a File List task).

Cheers

Andy

osirisja attached the following image(s):
trevinom
2012-09-17T20:00:31Z
I had this same problem.
I had to set the variable to the output of the task using the specific task id to get this to work.
The key was using the output of the task id.
Support
2012-09-18T11:49:17Z
Osirisja,

could you send a sample Job that can reproduce this here. Your setup seems somewhat complex and I want to make sure that I get the same results.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Users browsing this topic
Scroll to Top