First time here? Check our help page!
1

Primary Ruby Script Path not set for passed in measure

Dear Sirs, I am getting an unusual error when attempting to run Pat 1.7. My baseline runs just fine. The error message is: An unhandled exception has occurred. Passed in measure does not have a primaryRubyScriptPath set, which is required for RubyJobBuilder.

Your directions to solve this problem are greatly appreciated. Thank you, Matt

MattStewart's avatar
565
MattStewart
asked 2015-04-14 02:19:20 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-20 15:04:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

That is an odd error, we will look into it. In the meantime, can you see if running scan for tools solves your issue?

Update

The issue is that the 'calibration_reports_copy' measure does not have a 'measure.rb' file in the directory. It seems like this measure was created, added to the workflow, then the measure.rb file was removed. The measure.rb file is the actual code to execute the measure so this is a valid error. However, the apps should catch this without crashing. To fix this right now, remove the 'Calibration Reports Copy' measure from your workflow. You might as well delete it from disk too so you don't get burned by this again.

macumber's avatar
12k
macumber
answered 2015-04-14 07:23:36 -0500, updated 2015-08-18 17:20:19 -0500
edit flag offensive 0 remove flag delete link

Comments

1

Thank you. I tried that and a lot of other stuff related to file location. I am thinking that adding the exterior lighting might be the culprit. I do not see an exterior lighting measure in the measures folders.

MattStewart's avatar MattStewart (2015-04-14 08:38:06 -0500) edit

How did you create the measure that you are trying to run? Did you copy and paste from another measure? If so, you need to change the UUID (unique identified) in the measure.xml file after you copy it. This error indicates to me that you might not have a measure.rb file in the measure you are trying to use?

macumber's avatar macumber (2015-04-14 10:57:28 -0500) edit

Can you zip the measure you are trying to run, upload it somewhere, and post a link here?

macumber's avatar macumber (2015-04-14 11:08:15 -0500) edit

Dan, The add exterior lighting measure was added in Open Studio and not PAT. I have been letting Open Studio and PAT put measures wherever they normally do and have not been moving measures around.
Seems that all measures end up with PAT but I am not entirely sure about that. I can go back to an earlier version of the model that did not have the exterior lighting measure and upload it into PAT then add the exterior lighting. As it stands I would say that OS failed to generate the necessary files to run the measure using PAT.

MattStewart's avatar MattStewart (2015-04-14 14:39:05 -0500) edit

@MattStewart are you still stuck or did you find a solution?

macumber's avatar macumber (2015-04-15 21:26:27 -0500) edit
add a comment see more comments