Is This Content Helpful?
We're glad to know this article was helpful.
When attempting to verify or execute an advanced Java Script labeling expression, the following error occurs:
"No features found. Could not verify expression."
The labeling expression parser expects a field name to be enclosed in square brackets. In Java Script, the square brackets refer to functions such as an array, which results in the error.
Use VBScript instead of Java Script to return an array in the labeling expression. An example of a Java Script function that produces the error and the VBScript equivalent that executes are shown below.
Java Script example which produces the error:
function FindLabel ( [Name] )
var strArray = [Name].split(" ");
return( strArray );
Function FindLabel ( [Name] )
pArr = split([Name]," ")
pStr = pArr(0)
FindLabel = pStr