laptop and a wrench

Bug

Comma-separated value (CSV) files created using Python do not display properly in ArcGIS 10.1.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM090420
SubmittedApril 8, 2013
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.1
Operating SystemWindows OS
Operating System Version7 64 Bit
Version Fixed10.2.1
StatusFixed

Workaround

Use the CSV module to create the file. For example:import arcpy, csv, sys, osrelPath = sys.path[0]tableFile2 = relPath + os.sep + "address_module.csv"theTXTfile2 = open(tableFile2, 'wb')writeTXTfile = csv.writer(theTXTfile2, delimiter=',')writeTXTfile.writerow(["STREET", "ZIP"])writeTXTfile.writerow(["123 ESRI WAY", "95817"])theTXTfile2.close()Note: The original script appends a new line "\n" to the field names line, but not to the data lines. If it is appended after the address, the original script will work. This is the step that the Python CSV module adds to make it work.

Steps to Reproduce

Bug ID: NIM090420

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