PROBLEM
In some instances, users are unable to use VBScript to create label expressions in ArcMap. The labelling of a feature class in a geodatabase cannot be completed using the Label Expression window. This problem persists even after performing an ArcGIS Desktop soft reset. Sometimes, ArcMap returns the error message Error: The expression contains an error. Modify the expression and try again.
Possible causes include:
Depending on the cause, use the workarounds below to resolve the issue.
Check and edit settings or reinstall antivirus software where applicable
Note: The following workaround may require the assistance and permission of a system administrator. Consult a qualified computer systems professional if necessary.
Check and reinstall antivirus software where applicable to resolve the issue. Refer to Error: The expression contains an error. Modify the expression and try again for more information.
Run the script on a 32-bit operating system platform
VBScript does not run on 64-bit Windows operating systems. Refer to Problem: VBScript and JScript geoprocessing scripts do not run on a 64-bit Windows OS and ArcMap: 24046: Tool <value> cannot use VB expressions for services for more information.
Get help from ArcGIS experts
Download the Esri Support App