|
POST
|
Try adding some print statements to understand what is actually occurring with your script. print("The describe statement is returning " + dsc) - You mau need to convert dsc to a string if it is not by default a string If that returns an expected item then I would continue to add print statements at each critical step to ensure you are getting the expected results. Please provide results of your print statements so I can further assist you.
... View more
08-28-2013
05:15 AM
|
0
|
0
|
2763
|
|
POST
|
Seems to me that you should put the export to pdf statement in the GroupLayer true portion of the if else clause. I would think it is currently exporting every layer out to a pdf since the export to pdf statement is outside the if else clause but within the for loop.
... View more
08-28-2013
04:36 AM
|
0
|
0
|
2357
|
|
POST
|
Are you looking to export to pdf while looping thru each layer or are you just trying to do an export to pdf for the group layer?
... View more
08-27-2013
12:26 PM
|
0
|
0
|
2357
|
|
POST
|
Can you try removing the if lyr.isGroupLayer: and else: Then just try printing the lyr.name property to ensure that you are indeed looping through the layers.
... View more
08-27-2013
11:47 AM
|
0
|
0
|
2357
|
|
POST
|
For this Append vs Insert Cursor discusssion, where is the data in question being stored (SDE database or other container (e.g. file geodatabase(s))? Does it even matter where the data is stored, as it appears insert cursor is faster than append either way?
... View more
08-19-2013
09:23 AM
|
0
|
0
|
2865
|
|
POST
|
Ahmed: Do you currently have mxds that are using feature classes and tables from the existing SDE database? If so, will the replacement database have the same name so it can be referenced in the same way in the SDE connections that are saved in the mxd? This was a task my organization had to go through when creating a replacement SDE database as it had a different name (I'm not sure how you can get around this unless you can turn off the old database and immediately turn on the new database - This is a risky procedure as you might have issues with the new database). As such, we also needed a script that would reroute the SDE connections to the new server, so both SDE databases could be available (This allowed us some time to trouble-shoot any connection issues before retiring the old server).
... View more
08-19-2013
09:14 AM
|
0
|
0
|
2313
|
|
POST
|
Might there be too heavy a load on your ArcGIS Server, as you say you have many services. I use free-software called 123LogAnalyzer to get me a rough idea on how often my AGS services are being hit. I'm not sure if the 123LogAnalyzer will be able to determine too heavy a load, but can you shut down some services (not sure if this is possible in your production environment) and see if the problem still continues.
... View more
08-16-2013
09:53 AM
|
0
|
0
|
903
|
|
POST
|
Does the sample ESRI Network Service cover the entire United States? Does anyone know how accurate (up-to-date) the ESRI Network Service is? Also, what kind of Business needs does this widget address?
... View more
08-16-2013
07:54 AM
|
0
|
0
|
2513
|
|
POST
|
Rhett: Does the table (or table view) need to be in the same geodatabase when the join is created in order for the RemoveJoin_management process to work with the join_name parameter supplied? The reason I ask is because instead of creating a table view in the file geodatabase where the SDE feature class is extracted to, I just used the SDE table to join to the feature class in the file geodatabase. Unfortunately, I still receive an error where "The value is not a member of l ALIASES".
... View more
08-16-2013
05:46 AM
|
0
|
0
|
2651
|
|
POST
|
That's all you should have to do. Can you confirm that python 2.7 is installed at c:\python27\arcgis10.2?
... View more
08-15-2013
12:20 PM
|
0
|
0
|
1393
|
|
POST
|
In my original script I created a table view in a file geodatabase using a table extracted from SDE. I stored the name of the view in a variable that I declared at the beginning of the script. I then used the variable in the AddJoin_management statement to provide the name of the table to join to the feature class. I used multiple permutations of the the table name (variable without quotes, variable with quotes, table view name without quotes, table view name with quotes), but they always failed. The only way to get the RemoveJoin_management statement to execute properly was to leave the join_name parameter blank. As such, I have no idea how to implement RemoveJoin_management by supplying the join_name parameter.
... View more
08-15-2013
08:18 AM
|
0
|
0
|
3246
|
|
POST
|
Rhett: When you created your joins in python, where did you assign the name to the join? I did not give my joins a name in the python script, so I could see why python would not be able to remove the join as it has no idea what the actual join name is.
... View more
08-14-2013
12:10 PM
|
0
|
0
|
3246
|
|
POST
|
I was able to resolve this issue myself using the technique that Steve described. In my python v10.0 based version I entered a join name parameter in the Remove Join method. This parameter was the cause of the error in v10.1. I removed this parameter and the script ran successfully. At this point I'm not sure how the script was able to run successfully at v10.0. Steve: If you have a script where you have multiple joins, then the Remove Join method will remove all the joins even if you might only want 1 of the joins removed. As such if you still needed at least 1 of the other joins, you would need to add that join again. Doesn't that workflow seem like a workaround to a bug where you are unable to remove individual joins?
... View more
08-14-2013
10:44 AM
|
0
|
0
|
3246
|
|
POST
|
I only have 1 ArcGIS Server script where I update caches from a Scheduled Task. It is not a published geoprocessing tool. I have a bat file that calls a python script where parameters for the python script are read in from a config file.
... View more
08-14-2013
10:04 AM
|
0
|
0
|
1685
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-19-2024 10:38 AM | |
| 1 | a month 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 |
6 hours ago
|