Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Primary Ruby Script Path not set for passed in measure

asked 2015-04-14 02:19:20 -0500

MattStewart's avatar

updated 2017-08-20 15:04:17 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-04-14 07:23:36 -0500

updated 2015-08-18 17:20:19 -0500

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.

edit flag offensive delete link more

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2015-04-14 02:19:20 -0500

Seen: 299 times

Last updated: Aug 18 '15