Problem getting full pathname for file which triggered job - VisualCron - Forum

Community forum

jordan_c
2022-08-01T15:19:25Z
I'm using a Write file task to write the full path of the file which triggered the job but errors - {TRIGGER(7071e3c8-0bb0-4db7-ac7f-8fee5b0c6e2f|LastTrigger|File.Result.FullPath)}
gives me in the file:
TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string: {TRIGGER(7071e3c8-0bb0-4db7-ac7f-8fee5b0c6e2f|LastTrigger|File.Result.FullPath)}
jordan_c
2022-08-01T15:46:36Z
{TRIGGER(7071e3c8-0bb0-4db7-ac7f-8fee5b0c6e2f|LastTrigger|File.Folder)} gives me the correct response:
\\pruned\ftp\ftp_root\39007\tofrs
But anything involving {TRIGGER(7071e3c8-0bb0-4db7-ac7f-8fee5b0c6e2f|LastTrigger|File.Result.<PropertyGoesHere>)} gives me an error:
Result.Folder: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.TriggerFolder: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.FileMask: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.ChangeType: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.Name: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.FullPath: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:
Result.OldName: TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string:

The file which triggered the job was named:
\\pruned\ftp\ftp_root\39007\tofrs\CO050072022.pgp

This filename (with the full path) should have been written to this file:
\\pruned\ftp\temp\PGPFiles\pgppath.txt
Joey S
2022-08-08T20:41:59Z
seems like you are doing everything correct but check that you are using these variables in your "write" task
image.png

I did the same thing and used these in my write task
image.png

it all seemed to work
image.png

I am in v9.8.5

If you verify everything
Scroll to Top