|
POST
|
Brian: A slightly modified version of Jeff's script worked for me where I switched out findAndReplaceWorkspacePath with replaceDataSource to get a group layer to have its connection properties updated. You might want to simplify your script to get it to work and then attempt to rebuild it close to its existing structure.
... View more
05-10-2013
05:09 AM
|
0
|
0
|
915
|
|
POST
|
4Bart: I think I may have found what your issue is. I tried running the simple sample script from a machine remote from the AGS server that had ArcMap v10.0 sp4 installed on it. I received the same error message as you. I then tried running the simple script on the AGS server itself and it worked as expected. I then tried to create an Admin connection to the AGS server from the remote machine using ArcCatalog. This connection failed as per this document: http://support.esri.com/en/knowledgebase/techarticles/detail/39475 It seems that this is a problem with a Windows 2008 Server. If this is the same scenario for you, you could try upgrading the machine you are running the script from to Windows 7.
... View more
05-09-2013
09:50 AM
|
0
|
0
|
2489
|
|
POST
|
You will need to replacedatasource for the individual layer files in the group layer and then do a save of the group layer that holds the individual layers. Try either one of these lines of code: lyr.save() - I think you would put in inLayerFile in () but I'm not sure that will work as the ESRI documentation just shows it blank lyr.saveACopy(inLayerFile) The documentation for this is found at: http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s300000008000000/
... View more
05-09-2013
08:56 AM
|
0
|
0
|
3059
|
|
POST
|
How about changing True to False in the following line? lyr.replaceDataSource(unicode(newPath), 'FILEGDB_WORKSPACE', lyr.datasetName, True)
... View more
05-08-2013
10:16 AM
|
0
|
0
|
3059
|
|
POST
|
You might consider naming your data with schema type names (schemas are supported in RDBMSes). You could have pseudo schemas such as TRANSPORTATION where you have names such as TRANSPORTATION_AIRPORT or TRANSPORTATION_RDCL or HYDROGRAPHY where you have names such as HYDROGRAPHY_HYDRO_LINE or HYDROGRAPHY_HYDRO_LINE. I think you would be able to navigate easier with this setup and it coud prepare you for an Enterprise environment where you could import these feature classes (with their schema names) into a RDBMS. I hope this helps.
... View more
05-08-2013
09:49 AM
|
0
|
0
|
3293
|
|
POST
|
In the following line, lyr.replaceDataSource(unicode(newPath), 'FILEGDB_WORKSPACE', lyr.datasetName, True) can you remove unicode? Is the lyr.datasetName changing? If not, then leave this parameter blank (e.g. ""). Can you print out the variable newPath and post the result in your thread?
... View more
05-08-2013
08:59 AM
|
0
|
0
|
3059
|
|
POST
|
Summeryang yang: In the Attribute Table that you show there are columns named Request Date and Request Time with dates and times, respectively. I have read that the Attribute Table widget currently only allows you to display records as they appear in the table, without the ability to format the data. Was the data in these 2 columns already in the format that you are displaying? Your feedback is greatly appreciated.
... View more
05-08-2013
04:32 AM
|
0
|
0
|
804
|
|
POST
|
4Bart: Here is the response I received from ESRI after I opened an incident: "Thanks very much for the links and details. I was able to call ListMapServices successfully on 10.0 for one server at the office but not for another one, and I don't know what the difference is in their configuration. This function, however, is no longer supported at 10.1: http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000004s000000 Have you tried running Fiddler or other network analysis tool to see if any other details can be obtained? http://fiddler2.com/ There could be some restriction due to permissions, group policy, or other network settings." I hope this info helps you out.
... View more
05-06-2013
04:48 AM
|
0
|
0
|
2489
|
|
POST
|
The below thread shows another user who was unable to use the ListMapServices method in python. It is interesting how ESRI's response did not show this person the correct syntax to actually get this method to work. I have also reproduced your error even on an internal server so it seems something is missing from the ESRI documentation. http://forums.arcgis.com/threads/51961-ListMapServices-and-ExportToPDF-how-to-pull-in-external-layers?highlight=listmapservices I was finally able to make a user connection to http://sampleserver1.arcgisonline.com/arcgis/services from ArcCatalog on my system. There might have been organization network issues (that seemed unrelated) which caused a disruption in being able to connect to ESRI's public server.
... View more
05-03-2013
06:27 AM
|
0
|
0
|
2489
|
|
POST
|
When I try to duplicate your internet connection to this server I am prompted with a dialog box that asks for Proxy Credentials. I can not get past this prompt with either my network credentials or AGOL credentials.
... View more
05-03-2013
05:43 AM
|
0
|
0
|
2489
|
|
POST
|
I would open a ticket with ESRI technical support at this point, as they may be able to point you to a simple function that change a feature class name in mxd or layer file besides the replaceDataSource method.
... View more
05-03-2013
04:52 AM
|
0
|
0
|
1832
|
|
POST
|
I tried to make a User Connection to the ArcGIS Server in ArcCatalog that you referenced in your post, but it asked for credentials. Can you try the same thing in ArcCatalog on your machine? It does not appear you are supplying a username and password in your code. I did try to connect to this server with my ArcGIS Online credentials, but that did not work.
... View more
05-03-2013
04:48 AM
|
0
|
0
|
2490
|
|
POST
|
How about using a spatial view to get the address data from the tax roll table part of the parcel feature class?
... View more
05-02-2013
09:34 AM
|
0
|
0
|
3227
|
|
POST
|
Can't you just set the tax roll table to be the alternative name or alias table?
... View more
05-02-2013
09:22 AM
|
0
|
0
|
3227
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-19-2024 10:38 AM | |
| 1 | 4 weeks ago | |
| 1 | 02-23-2026 05:32 PM | |
| 2 | 02-11-2026 10:42 AM | |
| 1 | 12-22-2025 10:08 AM |
| Online Status |
Online
|
| Date Last Visited |
4 hours ago
|