Page 1 of 1

problem inject lite

Posted: Thu Dec 22, 2016 1:41 pm
by rschipper
I am having a small problem with inject lite function in switch 13.1.

If I choose at Target --> jobpath, a fixed path/file the function works fine. If the file is present it will go trough the "succes line" and if the file isn't present the job go trough the "error line".

When I change a part of the fixed path by a job variabele the fuction doesn't work anymore. If the file is present it will go trough the "succes line" but when the target file is not present it goes to the problem jobs.

Re: problem inject lite

Posted: Sun Dec 25, 2016 10:11 pm
by gabrielp
What does your message log say when the job is put into problem jobs?

Re: problem inject lite

Posted: Tue Dec 27, 2016 1:22 pm
by rschipper
The log says:
Dynamic property 'JobPath' has invalid value '/Users/switch/Desktop/Robert/test inject/barcode/135038_VELD_WLB_90_665_905_Barcoded.pdf'

The file is not present at that path, so it should go to the error out line? The path is existing. only the file isn't.

Re: problem inject lite

Posted: Fri Aug 04, 2017 11:19 am
by cedric.sintes
Hello,

I have same problem and I use "Job repository" instead of "Specific job".
Specific Job doesn't work with variable.
It will redirect file in Error folder if doesn't exist (like you need).

Re: problem inject lite

Posted: Fri Aug 04, 2017 5:02 pm
by gabrielp
Please try this version of the script: https://github.com/open-automation/swit ... -validator