Start the run with out Work Order

vValue = system.production.utils.startRun(‘OEEDemo\Your Enterprise\Site 1\Packaging\Line 2’)
system.gui.errorBox(str(vValue))

I tried starting the production run through above script. It was returning false and run is not started. Can anyone help me out.

I believe there needs to be a product code loaded already. Try:

system.production.utils.startLineProductCode(linePath,productCode)

or system.production.utils.setLineProductCode(linePath,productCode) before using startRun.

KUrt