problem inject lite

Post Reply
rschipper
Newbie
Posts: 12
Joined: Tue Jul 19, 2016 7:40 pm

problem inject lite

Post 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.
Attachments
Schermafbeelding 2016-12-22 om 13.14.20.jpg
Schermafbeelding 2016-12-22 om 13.14.20.jpg (142.64 KiB) Viewed 9201 times
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: problem inject lite

Post by gabrielp »

What does your message log say when the job is put into problem jobs?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
rschipper
Newbie
Posts: 12
Joined: Tue Jul 19, 2016 7:40 pm

Re: problem inject lite

Post 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.
cedric.sintes
Newbie
Posts: 13
Joined: Fri Feb 15, 2013 4:38 pm

Re: problem inject lite

Post 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).
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: problem inject lite

Post by gabrielp »

Please try this version of the script: https://github.com/open-automation/swit ... -validator
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply