PROBLEM

Unable to use the VBScript expressions in ArcMap

Last Published: October 19, 2021

Description

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.

Cause

Possible causes include:

  • The machine's antivirus software restricts the use of VBScript.
  • The machine runs on a 64-bit Windows operating system.

Solution or Workaround

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.

Article ID: 000026316

Software:
  • ArcMap 10 6
  • ArcMap 10 7
  • ArcMap 10 8

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options