If you have more than one work repository in ODI , you should add workrepository parameter into your sh load script.Otherwise you can face with an error message like this:
com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVersion ; SnpScen does not exist
The reason to get this error , ODI (in default mode) checks the odi params file and get reporsitory information.If the scenario you suppose to run inside of another repository then It raises the error we specify above.
Here it is a sample for correct usage:
sh startscen.sh SCENARIO_NAME 001 -WORK_REPOSITORY=WORKREP2