Skip to main content
Made title better match question
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I am getting an error when I try to use the save method in python scrpting Debugging AttributeError: 'Result' object has no attribute 'save' from ArcPy script?

added 7 characters in body; edited tags
Source Link
Chris W
  • 15.8k
  • 2
  • 29
  • 47

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message:

Error message:
Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in <module>
    result3.save('C:\GEP_662\\Final_Project\\satersym')
AttributeError: 'Result' object has no attribute 'save'
 

Code:

import arcpy

rasterLayer = "C:\GEP_662\\Final_Project\\TOC_IDW1.lyr"
rasterLayerName = 'TOC_IDW_LYR'

# Apply the symbology from the symbology layer to the input layer
outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer)
outputraster.save('C:\GEP_662\\Final_Project\\rastersym')

print "symbology update done"

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message:
Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in <module>
    result3.save('C:\GEP_662\\Final_Project\\satersym')
AttributeError: 'Result' object has no attribute 'save'
 
import arcpy

rasterLayer = "C:\GEP_662\\Final_Project\\TOC_IDW1.lyr"
rasterLayerName = 'TOC_IDW_LYR'

# Apply the symbology from the symbology layer to the input layer
outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer)
outputraster.save('C:\GEP_662\\Final_Project\\rastersym')

print "symbology update done"

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message:

Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in <module>
    result3.save('C:\GEP_662\\Final_Project\\satersym')
AttributeError: 'Result' object has no attribute 'save'

Code:

import arcpy

rasterLayer = "C:\GEP_662\\Final_Project\\TOC_IDW1.lyr"
rasterLayerName = 'TOC_IDW_LYR'

# Apply the symbology from the symbology layer to the input layer
outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer)
outputraster.save('C:\GEP_662\\Final_Project\\rastersym')

print "symbology update done"
Added code indentation and syntax highlighting
Source Link
dmahr
  • 11.9k
  • 41
  • 68

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message: Traceback (most recent call last): File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript exec codeObject in main.dict File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in result3.save('C:\GEP_662\Final_Project\satersym') AttributeError: 'Result' object has no attribute 'save'

import arcpy

rasterLayer = "C:\GEP_662\Final_Project\TOC_IDW1.lyr" rasterLayerName = 'TOC_IDW_LYR'

Apply the symbology from the symbology layer to the input layer

outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer) outputraster.save('C:\GEP_662\Final_Project\rastersym')

print "symbology update done"

Error message:
Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in <module>
    result3.save('C:\GEP_662\\Final_Project\\satersym')
AttributeError: 'Result' object has no attribute 'save'

import arcpy

rasterLayer = "C:\GEP_662\\Final_Project\\TOC_IDW1.lyr"
rasterLayerName = 'TOC_IDW_LYR'

# Apply the symbology from the symbology layer to the input layer
outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer)
outputraster.save('C:\GEP_662\\Final_Project\\rastersym')

print "symbology update done"

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message: Traceback (most recent call last): File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript exec codeObject in main.dict File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in result3.save('C:\GEP_662\Final_Project\satersym') AttributeError: 'Result' object has no attribute 'save'

import arcpy

rasterLayer = "C:\GEP_662\Final_Project\TOC_IDW1.lyr" rasterLayerName = 'TOC_IDW_LYR'

Apply the symbology from the symbology layer to the input layer

outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer) outputraster.save('C:\GEP_662\Final_Project\rastersym')

print "symbology update done"

I Keep getting this error message when i run the code below, can anyone tell me why?

Error message:
Traceback (most recent call last):
  File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\GEP_662\Final_Project\Final_Project1.py", line 65, in <module>
    result3.save('C:\GEP_662\\Final_Project\\satersym')
AttributeError: 'Result' object has no attribute 'save'

import arcpy

rasterLayer = "C:\GEP_662\\Final_Project\\TOC_IDW1.lyr"
rasterLayerName = 'TOC_IDW_LYR'

# Apply the symbology from the symbology layer to the input layer
outputraster = arcpy.ApplySymbologyFromLayer_management(rasterLayerName, rasterLayer)
outputraster.save('C:\GEP_662\\Final_Project\\rastersym')

print "symbology update done"
Source Link
Keri
  • 43
  • 5
Loading