Reports are not running successfully

Document ID : KB000006648
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Reports are not running successfully and in the logs for the failed reports, lines such as the below are seen:

 

Error: Symbol undefined for Stats (appService) inboundPortUtil noInbPortActWCal. 

Report failed. 

Environment:
eHealth and all supported versions and operating systems
Cause:

It is likely that when setting up the report it was done via the command line and the -vars switch was entered with data that was surrounded by double quotes ("), for example:

$NH_HOME/bin/nhReport -scheduled -rptType trend -rptName Standard -subjType element -elemType routerSwitch -subjName 10002@1001389 subCompsType appService -autoRange lastMonth -vars "inboundPortUtil noInbPortActWCal" -protocols all -divBy time -namesType aliases -chartType line -chartOpts standard -gran asIs -web  $(SUBJECT)_$(DATE)_$(TIME) -webUser admin -namesType names

Resolution:

For the -vars switch you need to specify multiple variables separated by comma WITHOUT double quotes.  For example:

$NH_HOME/bin/nhReport -scheduled -rptType trend -rptName Standard -subjType element -elemType routerSwitch -subjName 10002@1001389 subCompsType appService -autoRange lastMonth -vars inboundPortUtil noInbPortActWCal -protocols all -divBy time -namesType aliases -chartType line -chartOpts standard -gran asIs -web  $(SUBJECT)_$(DATE)_$(TIME) -webUser admin -namesType names