laptop and a wrench

Bug

The code generated using the Copy As Python Snippet option in the Results window returns a syntax error when the value in the expression ends with quotes.

Last Published: June 10, 2016 ArcGIS for Desktop
Bug ID Number BUG-000094231
SubmittedFebruary 17, 2016
Last ModifiedJune 3, 2025
Applies toArcGIS for Desktop
Version found10.3.1
Operating SystemWindows OS
Operating System Version7.0 64 Bit
Version Fixed10.5.0
StatusFixed

Workaround

Change the string literal in the expression to ensure four consecutive single or double quotes are not used at the end of the expression.

Steps to Reproduce

Bug ID: BUG-000094231

Software:

  • ArcGIS for Desktop

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