|
POST
|
Zack: Does your script work for the shapefile but not the geodatabase. For the shapefile you have: arcpy.CalculateField_management(fc,Source,str(fc), "PYTHON") For the geodatabase you have: arcpy.CalculateField_management(fc,Source,"fc","PYTHON") Why is this different?
... View more
01-31-2014
06:45 AM
|
0
|
0
|
2156
|
|
POST
|
I have just run your script on a desktop machine with v10.2. The fields SnowFall and PrecipTotal are being created as Data Type Double and there are blank values, 0 values, and other miscellaneous values from 0.1 to 14.5. Do those values sound correct from the data you let me test with?
... View more
01-31-2014
06:26 AM
|
0
|
0
|
988
|
|
POST
|
Can you publish any services (e.g. simple mapservice)? If not, then maybe you had an EDN license that expired on that specific server?
... View more
01-31-2014
06:10 AM
|
0
|
0
|
8712
|
|
POST
|
Andrew: I changed some paths for my specific environment and ran your script successfully. What field is not getting populated correctly?
... View more
01-31-2014
05:02 AM
|
0
|
0
|
988
|
|
POST
|
Are the sde connections registered with ArcGIS Server? I have not used the AGS publishing tool, but in order to create geocode services I needed to register the sde connections of the associated address locator with AGS. I received an error if I did not complete this step.
... View more
01-30-2014
11:42 AM
|
0
|
0
|
8712
|
|
POST
|
Would you be able to send the data and script in a post so I can try it on both a desktop and server?
... View more
01-30-2014
11:00 AM
|
0
|
0
|
2998
|
|
POST
|
Do you have any error logging included in your python script that could help to identify the problem?
... View more
01-30-2014
10:33 AM
|
0
|
0
|
2998
|
|
POST
|
Could you be running the script in a 32-bit environment on your PC and in a 64-bit environment on your VM server?
... View more
01-30-2014
10:13 AM
|
0
|
0
|
2998
|
|
POST
|
Doug: Thanks for the assistance. I finally found the issue which had to do with the import of the datetime module. I had this statement at the top of my script from datetime import datetime maxdate = datetime.date(2011, 7, 2) throws the error I described previously I had to change this statement to maxdate = datetime(2011, 7, 2) and the error disappeared I did not realize I was using the additional module reference at the beginning of the script
... View more
01-30-2014
06:52 AM
|
0
|
0
|
4018
|
|
POST
|
Are you exporting to the same file geodatabase across the 5 computers? If you are using a file geodatabase local to that problematic computer, maybe the file geodatabase has become corrupted. My organization does not allow automatic Windows updates as you never know what negative impact it can have on the system. We have test computer where we test the automatic Windows updates first before releasing it in the production environment.
... View more
01-29-2014
11:15 AM
|
0
|
0
|
2380
|
|
POST
|
Are you using out-of-the-box tools or do you perform this operation in ModelBuilder or python script? Do you get automatic windows updates? I ask because there is some bug associated with shapefiles and Windows automatic updates that is discussed somewhere in the forums.
... View more
01-29-2014
10:50 AM
|
0
|
0
|
2380
|
|
POST
|
Tony: I would try to avoid using mxd as a variable that is referencing multiple objects.
... View more
01-29-2014
08:51 AM
|
0
|
0
|
1767
|
|
POST
|
I would focus on the configuration of the Spatial Join tool in Model Builder as the export to python shows that the Snow Removal Area feature layer has not been defined in the model. I would also suggest using python (not that big of a learning curve), so you could have more control of the geoprocess that you are building.
... View more
01-29-2014
08:28 AM
|
0
|
0
|
1430
|
|
POST
|
Try changing mxd = workspace + "//" + mxd to mxd = workspace + "/" + mxd Not sure if this will work either as that might be an escape character. Maybe try mxd = workspace + r"/" + mxd
... View more
01-29-2014
07:42 AM
|
0
|
0
|
1767
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-18-2024 01:45 PM | |
| 1 | 08-19-2024 10:38 AM | |
| 1 | 07-08-2026 01:29 PM | |
| 1 | 02-23-2026 05:32 PM | |
| 2 | 02-11-2026 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|