laptop and a wrench

Bug

When an apostrophe (') is used in #Description of the Python script in an advanced labeling expression in ArcGIS Pro 2.9, the error message, "Invalid Expression. NameError: name 'FindLabel' is not defined" is returned.

Last Published: January 24, 2022 ArcGIS Pro
Bug ID Number BUG-000145485
SubmittedDecember 21, 2021
Last ModifiedJune 23, 2025
Applies toArcGIS Pro
Version found2.9
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.9.3
StatusFixed

Workaround

  • Use closing punctuation when using pairs of a punctuation mark.
  • Remove any punctuation marks that are in pairs but do not have closing.

Steps to Reproduce

Bug ID: BUG-000145485

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options