7 Replies Latest reply: Oct 18, 2012 6:50 AM by user10757003 RSS

    Capturing errors from upsShell.exe

      Is there a way to capture the output and any errors from upsShell.exe? I am running the following in a windows cmd batch script, however %ERRORLEVEL% always appears to be 0 even when I force the load to fail by loading a problematic file. Or will this process always succeed?

      Windows CMD command prompt batch script (ignore the extra spaces either side of tildes):
      rem set script variables
      set SHARE=%ENV_SHARES%\*******

      rem get values from params file
      FOR /F "eol=; tokens=1,2,3,4,5,6,7 delims=, " %%i in (%SHARE%\Config\Params.txt) do SET SERVER=%%~i& SET USER=%%~j& SET PASS=%%~k& SET APP=%%~l& SET DB=%%~m& SET DFGEXP=%%~n& SET FDMAPP=%%~o& SET LBSERVER=%%~p

      rem execute fdm batch load
      %EPM_ORACLE_HOME%\products\FinancialDataQuality\SharedComponents\upsShell.exe CustomScriptEx=%FDMAPP%~%USER%~%PASS%~~%LBSERVER%~%SHARE%\Logs~%FDMAPP%_LOAD~1033~1

      rem assess success or failure
      if %ERRORLEVEL% EQU 0 goto NO_ERROR
      goto ERROR
      rem do nothing
      exit 0
      rem do something
      exit 1