setting printer to fieldname

Incoming data has a field containing a printername.
in workflow i want to print (windows printer driver) using that printername.

So far i’ve tried this

In datamapper add extract step based on javascript

automation.variables.JobInfo9 = data.extract(‘./lijst132/printer’);

In workflow i have the following steps
input folder
create print content
create job
create output
output printer driver

in output printerdriver the printerque is set to %9

When puting sample data (field ‘printer’ contains text) in input folder i get an error in the logfile
W3741 : Printername is invalid “”

Any ideas what I am doing wrong

seems variable %9 does not get filled with any data, did you check that in a debug run?

What if you assign it a fixed string?