POST
|
Not sure whether this addresses your problem but I found it (and then this thread) during my search for solving another issue. Based on it, you may want to check that background geoprocessing is turned off. Can't get reference to result from MakeQueryLayer_management
... View more
05-04-2016
08:07 AM
|
1
|
0
|
1050
|
POST
|
I've begun providing support to a coworker who uses the Geostatistical & Spatial Analyst extensions in ArcMap to model hydrologic phenomena and occasionally will get a set of graphics plunked into his data frame: a point and a text element saying "No Result". I just started looking into the issue and he can't narrow down for me any of the circumstances of his graphics plunkage. A cursory Google search yielded nothing, as did a similarly cursory search of these forums. Is there anyone out there who's seen similar issues and has either an explanation or a fix? Thanks!
... View more
10-08-2014
10:46 AM
|
0
|
1
|
4209
|
POST
|
Well this is crude but it works. Thinking there might be something slightly corrupt about the pou polygon, I decided to try adding this code in place of the last line: newPou = arcpy.Polygon(pou.getPart(0)) self.OutputPou = newPou.JSON And that worked. I'm confident that the polygons I make will have but one part, but if you need to dump it into a for loop to get all parts you can do that too . . .
... View more
09-16-2014
04:02 PM
|
0
|
0
|
205
|
POST
|
Below is a snippet from a python class I created that accepts some esriJSON to create & manipulate some arcpy geometries and returns them as esriJSON. The last line is crashing ArcCatalog 10.1 (with the "Please tell ESRI about this problem" dialog). The "pou" is a fully-functioning arcpy.Polygon object (other than the JSON bit)--I can see its WKT, length, and area; and do other polygonal things with it like buffering & such. Does anyone out there have any experience with this sort of thing? Thanks! Dan pou = tracedLine.buffer(bufferMeters) fPoint = tracedLine.firstPoint lPoint = tracedLine.lastPoint bPod = arcpy.PointGeometry(fPoint,self.sr) ePod= arcpy.PointGeometry(lPoint,self.sr) self.OutputPodB = bPod.JSON self.OutputPodE = ePod.JSON self.OutputPou = pou.JSON ## This crashes Arc (even though all other arcpy.Geometry methods work fine on the pou object).
... View more
09-16-2014
02:18 PM
|
0
|
1
|
2500
|
POST
|
Wow, I had to dig a little for this one. Sorry I never posted anything answering this question. I contacted ESRI support, and we winnowed it down to a problem only with SDE connections. I was in the process of doing more testing when things began working all on their own. From the best we could tell, the only thing that changed was that I uninstalled a .NET add-in that I'd created a couple years earlier. We decided to blame the arcpy problem on some unspecified .NET code that was not entirely compatible with the most recent ArcThis or ArcThat, and we closed the support call at that point. Hope that helps! Dan
... View more
01-22-2014
08:09 AM
|
0
|
0
|
407
|
POST
|
Thanks Doug! Helped a lot. FYI, I altered the table to contain the three new fields (ON_CHANGEGEO, ON_MANUAL, & RUN_WEIGHT) rather than deleting & re-creating, and that worked fine.
... View more
07-16-2013
09:05 AM
|
0
|
0
|
205
|
POST
|
That sure did it. Thanks Mathew! Seems like a bit of a band-aid for some sort of incompatibility between 10.1 & Win7 threading or something like that, but it solves my problem!
... View more
06-06-2013
09:29 AM
|
0
|
0
|
195
|
POST
|
I've got a script tool that I wrote for 10.0 and I'm trying to make it work in 10.1 now. It does in fact work--I can go to where the output file is stored on disk, but the tool never returns anything. The last message in the results window says "Succeeded at [time]" like it always has, but at 10.0 it had a little clock icon next to it & now it has a little thought bubble icon next to it like all the intermediate messages. And the little check mark never appears, and the tool's status never gets set to complete (it keeps the little hourglass icon in the GP results window). Anyone seen this before? Will 10.1 Desktop not correctly run a tool created in 10.0? Below is the code at the beginning & end of the script in case that can help sorting this out. Thanks, Dan # Import system modules import sys, string, os, arcpy, time from arcpy import mapping as mappy """Creates a custom map for a BOE appeal, containing a subject parcel (first parameter) and a list of comps (second parameter)""" def main(args=None): try: # [Stuff that works] arcpy.SetParameterAsText(13,TargetPacketPDF) except: raise if __name__ == "__main__": main(sys.argv[1:])
... View more
06-06-2013
09:00 AM
|
0
|
2
|
408
|
POST
|
Been a long time since this thread was spawned & maybe there's a better way to deal with this by now, but I couldn't find it so I hacked a resolution by adding THREE text graphics for every label I wanted to place in the map: two of them act as a highlight/mask... First to create the three slightly different symbols:
var TextSymbolJson = { // This is the main readable label
"type": "esriTS",
"color": [0, 0, 0, 255],
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"font": {
"family": "Arial",
"size": 16,
"style": "normal",
"weight": "bold",
"decoration": "none"
}
};
// This one is white, partially transparent, a bit bigger & bolder, and offset south 1 pixel from the main label (1st part of the mask)
var TextHighlightJson1 = Object.create(TextSymbolJson);
TextHighlightJson1.color = [255, 255, 255, 245];
TextHighlightJson1.yoffset = -1;
TextHighlightJson1.font.size = 18;
TextHighlightJson1.font.weight = "bolder";
// This one is just like the one above except offset north 1 pixel (2nd part of the mask)
var TextHighlightJson2 = Object.create(TextHighlightJson1);
TextHighlightJson2.yoffset = 1;
Then to use those symbols ...
for (feature in ListOfFeaturesToLabel) {
AddNumText = feature.attributes.PROPADDNUM;
AddNumPoint = feature.geometry.getExtent().getCenter();
var TS = new esri.symbol.TextSymbol(TextSymbolJson);
TS.setColor(layerTextColor);
TS.setText(AddNumText);
var labelPointGraphic = new esri.Graphic(AddNumPoint, TS);
var highlightSymbol1 = new esri.symbol.TextSymbol(TextHighlightJson1);
highlightSymbol1.setText(AddNumText);
var highlightGraphic1 = new esri.Graphic(AddNumPoint, highlightSymbol1);
var highlightSymbol2 = new esri.symbol.TextSymbol(TextHighlightJson2);
highlightSymbol2.setText(AddNumText);
var highlightGraphic2 = new esri.Graphic(AddNumPoint, highlightSymbol2);
map.graphics.add(highlightGraphic1);
map.graphics.add(highlightGraphic2);
map.graphics.add(labelPointGraphic); // Make sure to add the main label to the map last so it's on top of its mask
}
... View more
04-30-2013
12:28 PM
|
1
|
0
|
1441
|
POST
|
Some of our editors are no longer able to open the parcel fabric's job book at all--they click that command, and ArcMap stops responding. Anyone else experience something like this and find a resolution? One user here speculated that perhaps the job book has grown too big for its binding. If we undertake an effort to delete old jobs from the jobs table, will that solve this problem? If so, then is there a setting somewhere that will tell ArcSDE to do that automatically from now on?
... View more
03-07-2013
06:17 AM
|
0
|
1
|
2572
|
POST
|
An interesting twist to this story is that shortly after the above error started happening, ArcMap started crashing whenever I try to start editing (regardless of the workspace or type of workspace). Lovely. I've restarted & even reinstalled, and now I wish I could retire. I'll be logging a service call here in not too long . . .
... View more
12-03-2012
10:02 AM
|
0
|
0
|
407
|
POST
|
I run this code (in a try/except statement and amongst much more):
arcpy.ClearWorkspaceCache_management()
print "1"
SdeVersion = ProductionDatabase(VersionName)
print "2"
SdeFishboneFC = SdeVersion.Fishbone()
print "3"
SdeAddressPointFC = SdeVersion.AddressPoint()
print "4"
AddressPointLayer = AddressPointLayer + "_versioned"
print "5"
FishboneLayer = "Fishbones_versioned"
print "6"
arcpy.MakeFeatureLayer_management(SdeAddressPointFC, AddressPointLayer)
print "7"
arcpy.MakeFeatureLayer_management(SdeFishboneFC, FishboneLayer)
print "8"
print SdeVersion.Path()
edit = arcpy.da.Editor(SdeVersion.Path()) # Create an edit session.
print "9"
edit.startEditing(False, True) # Start the edit session
print "10"
edit.startOperation() # Start an edit operation
print "11"
And I get this output:
1
2
3
4
5
6
7
8
C:\temp\scratchfolder1\Basemap_QcAddress_Fishbone.sde
9
ERROR: FATAL ERROR: Error during post analysis processing: error return without
exception set
FATAL ERROR: Error during post analysis processing: error return without excepti
on set
Traceback (most recent call last):
File "R:\DanN\Automation\Development\CountywideFishboneAnalysis.py", line 216,
in <module>
raise inst
SystemError: error return without exception set
My custom class [SdeVersion = ProductionDatabase(VersionName)] uses arcpy.CreateDatabaseConnection_management() and returns a functioning connection file (as tested manually in ArcCatalog after the script errors out). Line 216 (cited in the error message) is the "raise" statement in my try/except block. Am I utilizing arcpy.da.Editor incorrectly? Is this "without exception set" thing a bug in the data access module itself? Is 9AM too early for a beer? Thanks in advance, Dan
... View more
11-30-2012
06:12 AM
|
0
|
4
|
1278
|
POST
|
Field maps contain a ton if information so they're a bit of a handful when you try to make them from scratch in python. To get your own code, you can perform a spatial join using the tool in ArcCatalog with the field map exactly like you want it, then open the Geoprocessor's Results dialog and copy the field map string from there. Here's some code that I built with that as a starting point.
FieldMapString = "" \
+ """AddressNumber "AddressNumber" true true false 4 Long 0 10 ,First,#,""" + AddressFC+ """,AddressNumber,-1,-1;"""\
+ """AddressNumberFraction "AddressNumberFraction" true true false 3 Text 0 0 ,First,#,""" + AddressFC+ """,AddressNumberFraction,-1,-1;"""\
+ """PreDirection "PreDirection" true true false 2 Text 0 0 ,First,#,""" + AddressFC+ """,PreDirection,-1,-1;"""\
+ """PreType "PreType" true true false 20 Text 0 0 ,First,#,""" + AddressFC+ """,PreType,-1,-1;"""\
+ """CoreStreetName "CoreStreetName" true true false 20 Text 0 0 ,First,#,""" + AddressFC+ """,CoreStreetName,-1,-1;"""\
+ """PostType "PostType" true true false 20 Text 0 0 ,First,#,""" + AddressFC+ """,PostType,-1,-1;"""\
+ """PostDirection "PostDirection" true true false 2 Text 0 0 ,First,#,""" + AddressFC+ """,PostDirection,-1,-1;"""\
+ """PostModifier "PostModifier" true true false 10 Text 0 0 ,First,#,""" + AddressFC + """,PostModifier,-1,-1;"""\
+ """PostalCity "PostalCity" true true false 15 Text 0 0 ,First,#,""" + AddressFC+ """,PostalCity,-1,-1;"""\
+ """SubUnitType "SubUnitType" true true false 15 Text 0 0 ,First,#,""" + AddressFC+ """,SubUnitType,-1,-1;"""\
+ """SubUnitIdentifier "SubUnitIdentifier" true true false 10 Text 0 0 ,First,#,""" + AddressFC+ """,SubUnitIdentifier,-1,-1;"""\
+ """AddressPointID "AddressPointID" true true false 4 Long 0 10 ,First,#,""" + AddressFC+ """,AddressPointID,-1,-1;"""\
+ """PointIssue "PointIssue" true true false 2 Short 0 5 ,First,#,""" + AddressFC+ """,PointIssue,-1,-1;"""\
+ """AddressChange "AddressChange" true true false 2 Short 0 5 ,First,#,""" + AddressFC+ """,AddressChange,-1,-1;"""\
+ """ParcelException "ParcelException" true true false 2 Short 0 5 ,First,#,""" + AddressFC+ """,ParcelException,-1,-1;"""\
+ """PARCEL "PARCEL" true true false 50 Text 0 0 ,First,#,""" + ParcelFC+ """,PARCEL,-1,-1;"""\
+ """ADDRESS "ADDRESS" true true false 60 Text 0 0 ,First,#,""" + ParcelFC+ """,ADDRESS,-1,-1;"""\
+ """CITY_STATE "CITY_STATE" true true false 41 Text 0 0 ,First,#,""" + ParcelFC+ """,CITY_STATE,-1,-1;"""\
+ """PROPADDNUM "PROPADDNUM" true true false 10 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPADDNUM,-1,-1;"""\
+ """PROPPREDIR "PROPPREDIR" true true false 2 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPPREDIR,-1,-1;"""\
+ """PROPSTNM "PROPSTNM" true true false 25 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPSTNM,-1,-1;"""\
+ """PROPSTTYPE "PROPSTTYPE" true true false 10 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPSTTYPE,-1,-1;"""\
+ """PROPPOST "PROPPOST" true true false 2 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPPOST,-1,-1;"""\
+ """PROPUNIT "PROPUNIT" true true false 10 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPUNIT,-1,-1;"""\
+ """PROPUNUM "PROPUNUM" true true false 10 Text 0 0 ,First,#,""" + ParcelFC+ """,PROPUNUM,-1,-1;"""
fieldmappings = arcpy.FieldMappings()
fieldmappings.loadFromString(FieldMapString)
arcpy.SpatialJoin_analysis(AddressFC, ParcelFC, SpatialJoinFC, "JOIN_ONE_TO_MANY", "KEEP_COMMON", fieldmappings)
... View more
05-02-2012
07:35 AM
|
0
|
0
|
266
|
POST
|
Hi Jacob. This is one of my beefs with the fabric--dealing with things in bulk is nigh impossible & you're kinda limited to editing individual features inside ArcMap edit sessions. There's some reasonable logic behind this (bulk changes can easily hose things up with all of the fabric's complex relationships), but in practice this makes for some serious headaches now & again. Anyway I think that ESRI might be working on ways to allow some bulk management of parcel fabric features. In the meantime, there is a workaround but it's ugly and scary (at least to me). If you're running your fabric in SDE then you can connect directly to the RDBMS, find the tables that contain the fabric's features, and find & delete those rogue features using SQL commands (note that you can't just delete the parcel features; you'll have to also delete the lines and points related to the parcels, but you also have to avoid deleting any points that are shared with parcels that you DON'T want to delete). Also note that you'll want to compress back to state zero and disallow editors from editing the fabric while you're doing this to make sure you don't miss anything in the A & D tables. I've done this successfully once before (coincidentally it was with hundreds of road ROWs that I screwed up importing), but I made about seventeen backups of our database and drank an entire bottle of whiskey before I worked up the nerve to attempt it. 🙂 I suppose if you're using a personal GDB then you can do essentially the same thing using MS Access.
... View more
01-11-2012
06:44 AM
|
0
|
0
|
218
|
POST
|
FINALLY getting to read the replies. Thanks both of you. Regarding tweaking the PPM values, there's the first instance of what's sure to be many inadequacies of the user. 🙂 That may be a crucial improvement to our process, but we'll have to see. I'm working on getting a bunch of data together before we chat. You should have that soon. Thanks again!
... View more
01-09-2012
09:41 AM
|
0
|
0
|
364
|
Title | Kudos | Posted |
---|---|---|
1 | 04-30-2013 12:28 PM | |
1 | 05-04-2016 08:07 AM | |
1 | 10-12-2011 09:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|