laptop and a wrench

Error

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

Última publicación: August 25, 2014 ArcGIS for Desktop
Número de ID del error NIM090420
EnviadoApril 8, 2013
Última modificaciónJune 5, 2024
Relacionado conArcGIS for Desktop
Versión encontrada10.1
Sistema operativoWindows OS
Versión de sistema operativo7 64 Bit
Versión corregida10.2.1
EstadoFixed

Solución alternativa

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.

Pasos para reproducir

ID del error: NIM090420

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga