|
POST
|
You could make a table view first, and filter the fields, similar to Example 2 in the help.
... View more
01-30-2014
06:47 AM
|
0
|
0
|
3554
|
|
POST
|
This is kind of a shot in the dark, but do you have ArcGIS Server installed on that server? If so, my guess is that the file association when you open through PythonWin points you towards the ArcGIS Desktop install of Python, which can access this tool from any license level. If you are running a scheduled task, and not using a .bat file to explicitly set what version of Python you want to run the script with, it is possible it is trying to run the script with the ArcGIS Server Python install (there will be a 32 bit and 64 bit install of Python if you have both products installed). As this functionality matrix points out, the basic license level of Server does not include geoprocessing, so you would want to run these scripts using the Desktop (32-bit) version of Python. My suggestion would be to make a .bat file that calls the 32 bit version of Python to ensure you are using your desktop license. If this is all the case, this blog will help further explain this.
... View more
01-28-2014
03:19 PM
|
0
|
0
|
1003
|
|
POST
|
I'm not sure if this will be helpful if you aren't familiar with Python, but in this case, you would probably want to use a Search Cursor. Since you aren't familiar with Python, a better route might be to use a nested model by creating a second model/iterator, and adding that model to your original model.
... View more
10-18-2013
03:43 PM
|
0
|
0
|
575
|
|
POST
|
If you type import sys, then print sys.version below that, are you running in 64-bit? If so, your issue might be that the tools in the metadata toolset do not run in 64-bit.
... View more
10-03-2013
04:55 PM
|
0
|
0
|
1245
|
|
BLOG
|
The default paths for those are: C:\Python27\ArcGIS10.1 - (32-bit) C:\Python27\ArcGISx6410.1 - (64-bit) This ArcGIS Resource Center blog post explains how to go about utilizing 64-bit geoprocessing in Python, and the ArcGIS Desktop Help has a very informative article on what the advantages are of running geoprocessing operations in 64-bit, as well as some of the limitations. Very briefly, one major advantage is that with 64-bit Background Geoprocessing, you are able to utilize larger amounts of RAM for large geoprocessing jobs that may have failed in 32-bit. However, some limitations that should be noted include processing with certain data types (such as personal geodatabase, Excel tables, and OLEDB) and using certain tools (Metadata conversion tools, geodatabase administration tools, to name a few).The implications of this are that you must be aware of the 64-bit limitations when determining what version of Python you want to use. When running geoprocessing tools in ArcGIS for Desktop, the application knows that if you have the 64-bit patch installed and are using Background Geoprocessing on a tool or data type that does not support it, to just run in 32-bit instead. However, running a standalone script in 64-bit that calls for unsupported data types or tools results in an error. Here are a few different scenarios to be aware of that may cause you some confusion with the two versions of Python, especially if you are executing the script against the 64-bit version unknowingly.
There are undoubtedly more scenarios that could cause confusion with the 32-bit vs. 64-bit versions of Python. However, one thing to remember is that if your script works in ArcMap or ArcCatalog, but fails with an error in an IDE or as a schedule task, make sure to check the version of Python to be sure you are not using an unsupported data type or geoprocessing tool with 64-bit Python.Lucas D. - Desktop Support Analyst |