POST
|
Ok, for what it is worth I have been doing some testing. I my specific case using the Export Data tool, I was removing the Feature Set layer being created when I was publishing. If I leave it there and let it copy it to the server, I am now able to create the Web Tool successfully now.
... View more
10-23-2018
02:08 PM
|
1
|
0
|
891
|
POST
|
I am getting exactly the same errors here. Using ArcGIS Enterprise 10.6.1 with ArcGIS Pro 2.2. I am trying to use the ExportData tool for a few different themes, so there will be multiple services like this. The weird thing is that I was able to publish two of these Web Tools, but now I cannot publish anymore. I even tried to publish on of my previous ones that worked with a different name but got the same error. This is becoming urgent now.
... View more
10-23-2018
12:49 PM
|
1
|
2
|
3249
|
POST
|
Hi Amir. I do mine a little different. I don't use arcpy to get my workspace path. I find mine takes a lot quicker as it does not have to call arcpy every time, saving a few seconds. With this method you can also use any geodatabase type (.sde, .gdb or .mdb). accessRoadFc = r"D:\Data\GISData\data\received\Transport.gdb\Routing\AccessRoad"
wkspSplit = accessRoadFc.split(".")
wkspExt = wkspSplit[1].split("\\")[0]
workspace = "{}.{}".format(wkspSplit[0], wkspExt)
... View more
07-20-2018
12:15 AM
|
1
|
1
|
2195
|
DOC
|
Hey Robert. I was wondering if you are going to look at the option to select a line from a feature service to generate the profile graph? This would be very useful. Is this also available using a 3D WAB app? Thanks. Julian
... View more
06-13-2018
07:20 AM
|
2
|
0
|
5742
|
DOC
|
Hi Xabier. Your widget looks really great and I am trying to implement it here. I am using WAB Developer 2.7. I keep getting an error that says :Create widget error: widget/IndentificacionAvanzada/Widget. I even tried to simplify the whole config script in case I has something incorrect. I am using a MapServer service and not a FeatureServer service. Do you know what could be causing this error? Here is the error: Here is my simplified config: { "radioIdentificacionPoligonos": 1, "factorPaddingIdentificacionPuntosLineas": 3, "serviciosAIdentificar": [ { "id": "cadastre", "idWebMap": "CityMap_9136_7", "camposServicio": [ "*" ] } ], "factorZoomPoligono": 1.5, "ajusteZoomPunto": 2, "interfazUsuario": { "mostrarTitulo": true, "mostrarCheckBoxHabitilarIdentificacion": true, "textoValorNull": "", "paneles": [ { "titulo": "Property", "abiertoInicialmente": true, "serviciosGIS": [ { "id": "cadastre", "resaltarTodos": true, "informacionCatastroAsociada": false, "campos": [ { "campo": "SGCODE" } ] } ] } ] } }
... View more
02-08-2018
05:22 AM
|
0
|
0
|
4693
|
POST
|
For what it is worth now, I kind of found a way to indirectly do this. Although it is not directly altering the field alias in the MXD, this way does seem to work. I create a data inventory of my feature classes in the gdb in a csv file. I then update all my aliases and stuff in the csv. I then run my next script that uses the AlterField tool to make the changed in my csv file to my feature classes. All pretty standard and non-mxd(ish) up until now. From here, I made use of T. Wayne Whitley reply from this thread which actually goes through to update the field visibility setting for the relevant layers using fieldInfo. Once the new layer is added/updated, the feature classes field alias seems to be updated also. I then use mxd.saveACopy to make a new output mxd. Hope this helps. Julian
... View more
07-22-2017
01:12 AM
|
1
|
0
|
1525
|
POST
|
I am not sure if this is still valid, but I was having the same issue in 10.4.1. I found that I had to Assign the Domain to the field first, then I was able to add the Domain to the SubTypes (this seems to also go for when you need to delete a domain associated with SubTypes). So in you sample code you would need to add an initial AssignDomainToField just for the field. See second line below: subtypeVal = [1,2,3,4,5]
arcpy.AssignDomainToField_management(FeatureClass, Field, Domain)
for value in subtypeVal:
try:
arcpy.AssignDomainToField_management(FeatureClass, Field, Domain, value )
except:
pass
... View more
01-23-2017
03:12 AM
|
2
|
1
|
868
|
POST
|
I am running through the “Clone Portal users, groups and content” sample notebook and I am running into a few issues. My source is an AGOL Subscription and target is a 60 day trial subscription. 1. When I try the copy_user(target, user, ‘TestPassword@123′) , it does not want to create the new user (HTTPError: HTTP Error 404: Not Found). 2. When I try and copy the group ( tgt_group = copy_group(target, source, group) ) I get a runtime error (RuntimeError: Unable to reassign group. You already have a group named ‘Admin Tools for AGOL’. Try a different name. (Error Code: 400)) It seems as though the problem is if the target portal is a 60 day trial. I went from the 60 day trial to my on-premise portal and it ran fine. Am I doing something wrong here? Thanks Julian.
... View more
12-21-2016
07:53 PM
|
1
|
15
|
2316
|
DOC
|
Thanks for the feedback Robert. Just a note on it, if someone is returning 1000 unique options in a dropdown list, they might need to have a re-look at their search . We searching properties with around 100 000 features (and in another case around 240 000) and have a unique value on the area name (which is around 40 unique areas). I have noticed that if I search on a property number and hit search before it has returned all the unique values for my area names, it does not return anything. I presume this is normal as it cannot find the value for the second parameter in the search query. It would be great if both options were available in the config for this. If I misunderstood your reply, my apologies for that.
... View more
10-01-2015
07:11 AM
|
0
|
0
|
3819
|
DOC
|
Hi Robert, thanks for the update to WAB 1.2. I am busy with some migrations from 1.1. I noticed that when I use the Unique option it takes a while to go through the list of features to get the unique list. Before this was pretty much instant. I remember something about a change make this faster. Has this changed in the new 1.2 version? Would it be possible to either change it back or to have an option of which method to use. Thanks very much. Julian.
... View more
10-01-2015
12:33 AM
|
0
|
0
|
3819
|
DOC
|
Thanks Robert, if you didn't know it already, you are awesome .
... View more
08-03-2015
11:18 PM
|
0
|
0
|
3274
|
DOC
|
Hi Robert, unfortunately this did not work. I am still getting the complete list for my first definition query. I even added a new entry to this area and it is now available in all the other area options.
... View more
08-01-2015
09:13 PM
|
0
|
0
|
3274
|
DOC
|
Here is my config with some screenshots. ############################################### { "layers": [ { "name": "In Progress (Amahlati)", "url": "http://localhost/arcgis/rest/services/Amathole/ApplicationStatusSearch/MapServer/0", "definitionexpression": "LM = 'Amahlathi'", "spatialsearchlayer": false, "zoomScale": 10000, "shareResult": false, "addToAttrib": false, "expressions": { "expression": [ { "alias": "Application ID", "textsearchlabel": "Search by Application ID", "values": { "value": [ { "fieldObj": { "name": "AppID", "label": "Application ID", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "allu" }, "prompt": "Application ID", "textsearchhint": "150725_...", "sqltext": "AppID = '[value]'", "operation": "stringOperatorIs", "uniquevalsfromfield": "AppID" } ] } } ] }, "titlefield": null, "fields": { "all": false, "field": [ { "name": "SGCODE", "alias": "SG Code" }, { "name": "AppID", "alias": "Application ID" }, { "name": "ApplicationType", "alias": "Application Type" }, { "name": "ApplicationStatus", "alias": "Application Status" }, { "name": "ApplicationDate", "alias": "Date", "isdate": true }, { "name": "MAPLABEL", "alias": "Erf No." }, { "name": "PORTIONNO", "alias": "Portion" }, { "name": "SGNUMBER", "alias": "SG No." }, { "name": "FARMTOWNNA", "alias": "Area Name" }, { "name": "GISAREA", "alias": "Area (m²)", "isnumber": true }, { "name": "LM", "alias": "LM Name" }, { "name": "LM_ZONE", "alias": "LM_ZONE" } ] }, "links": { "link": [] }, "showattachments": false, "layersymbolfrom": "config" }, { "name": "In Progress (Nkonkobe)", "url": "http://localhost/arcgis/rest/services/Amathole/ApplicationStatusSearch/MapServer/0", "definitionexpression": "LM = 'Nkonkobe'", "spatialsearchlayer": false, "zoomScale": 10000, "shareResult": false, "addToAttrib": false, "expressions": { "expression": [ { "alias": "Application ID", "textsearchlabel": "Search by Application ID", "values": { "value": [ { "fieldObj": { "name": "AppID", "label": "Application ID", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "allu" }, "prompt": "Application ID", "textsearchhint": "150725_...", "sqltext": "AppID = '[value]'", "operation": "stringOperatorIs", "uniquevalsfromfield": "AppID" } ] } }, { "alias": "Erf No.", "textsearchlabel": "Search by Erf No.", "values": { "value": [ { "fieldObj": { "name": "MAPLABEL", "label": "Erf No.", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Erf No.", "textsearchhint": "1024", "sqltext": "Upper(MAPLABEL) = Upper('[value]')", "operation": "stringOperatorIs" }, { "fieldObj": { "name": "FARMTOWNNA", "label": "Area Name", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "allu" }, "prompt": "Area Name", "textsearchhint": "FORT BEAUFORT", "sqltext": "FARMTOWNNA = '[value]'", "operation": "stringOperatorIs", "uniquevalsfromfield": "FARMTOWNNA", "operator": "AND" } ] } } ] }, "titlefield": null, "fields": { "all": false, "field": [ { "name": "SGCODE", "alias": "SG Code" }, { "name": "AppID", "alias": "Application ID" }, { "name": "ApplicationType", "alias": "Application Type" }, { "name": "ApplicationStatus", "alias": "Application Status" }, { "name": "ApplicationDate", "alias": "Date", "isdate": true }, { "name": "MAPLABEL", "alias": "Erf No." }, { "name": "PORTIONNO", "alias": "Portion" }, { "name": "SGNUMBER", "alias": "SG No." }, { "name": "FARMTOWNNA", "alias": "Area Name" }, { "name": "GISAREA", "alias": "Area (m²)", "isnumber": true }, { "name": "LM", "alias": "LM Name" }, { "name": "LM_LANDUSE", "alias": "Landuse" }, { "name": "LM_ZONE", "alias": "LM_ZONE" } ] }, "links": { "link": [] }, "showattachments": false, "layersymbolfrom": "config" }, { "name": "In Progress (All)", "url": "http://localhost/arcgis/rest/services/Amathole/ApplicationStatusSearch/MapServer/0", "definitionexpression": "", "spatialsearchlayer": false, "zoomScale": 10000, "shareResult": false, "addToAttrib": false, "expressions": { "expression": [ { "alias": "Application ID", "textsearchlabel": "Search by Application ID", "values": { "value": [ { "fieldObj": { "name": "AppID", "label": "Application ID", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "allu" }, "prompt": "Application ID", "textsearchhint": "150725_...", "sqltext": "AppID = '[value]'", "operation": "stringOperatorIs", "uniquevalsfromfield": "AppID" } ] } } ] }, "titlefield": null, "fields": { "all": false, "field": [ { "name": "SGCODE", "alias": "SG Code" }, { "name": "AppID", "alias": "Application ID" }, { "name": "ApplicationType", "alias": "Application Type" }, { "name": "ApplicationStatus", "alias": "Application Status" }, { "name": "MAPLABEL", "alias": "Erf No." }, { "name": "PORTIONNO", "alias": "Portion" }, { "name": "SGNUMBER", "alias": "SG No." }, { "name": "FARMTOWNNA", "alias": "Area Name" }, { "name": "GISAREA", "alias": "Area (m²)", "isnumber": true }, { "name": "LM", "alias": "LM Name" }, { "name": "LM_ZONE", "alias": "LM_ZONE" } ] }, "links": { "link": [] }, "showattachments": false, "layersymbolfrom": "config" } ], "initialView": "text", "multipartgraphicsearchchecked": false, "addpointtolerancechecked": false, "limitsearch2mapextentchecked": false, "keepgraphicalsearchenabled": true, "autozoomtoresults": true, "mouseovergraphics": false, "toleranceforpointgraphicalselection": 6, "bufferDefaults": { "bufferUnits": { "bufferUnit": [ { "name": "UNIT_FOOT", "label": "Feet" }, { "name": "UNIT_STATUTE_MILE", "label": "Miles" }, { "name": "UNIT_METER", "label": "Meter" } ] }, "bufferDefaultValue": 5, "bufferWKID": 102003, "simplefillsymbol": { "color": [ 1, 185, 253, 128 ], "outline": { "color": [ 1, 185, 253, 204 ], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, "spatialrelationships": { "spatialrelationship": [ { "name": "esriSpatialRelContains", "label": "entirely contained in" }, { "name": "esriSpatialRelIntersects", "label": "intersected by" }, { "name": "esriSpatialRelEnvelopeIntersects", "label": "intersected by envelope of" } ] }, "graphicalsearchoptions": { "enablepointselect": true, "enablelineselect": true }, "symbols": { "simplemarkersymbol": null, "picturemarkersymbol": { "url": "/widgets/eSearch/images/i_search.png", "height": "20", "width": "20", "type": "esriPMS", "angle": "0" }, "simplelinesymbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 204 ], "width": 2 }, "simplefillsymbol": { "color": [ 255, 0, 0, 128 ], "outline": { "color": [ 255, 0, 0, 204 ], "width": 2, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } } ###############################################
... View more
07-31-2015
01:33 AM
|
0
|
0
|
3274
|
DOC
|
Hi Robert. I have just implemented this in my WAB. I am trying to use the same service for multiple variations of the search. More specifically, my service is for my entire area, but I would like to have individual searches per sub area (a field in my service). Instead of having to create multiple services per sub area, I am using the Definition Expression to add the expression for each sub area. When setting each of them up, the dropdown list when using Unique values in the Update Expression Value windows shows the correct values for that sub area, however, when actually running the tool in my map, all the Unique value dropdown lists for all the sub areas only show the list for my first sub area. Am I doing something wrong here? Thanks. Julian.
... View more
07-30-2015
05:45 AM
|
0
|
0
|
3274
|
POST
|
I am also having an issue with this, but for me it is when I run my script as a GP Service (no problems when running it in ArcMap). My error comes when I edit.startEditing(False, True) - and yes, my data is versioned (in a feature dataset if that makes a difference). I am not 100% sure, but it might be something to do with the numpy version. I have not tried this yet so I am not sure if upgrading to a more recent version of numpy will either break my ArcMap, python or if it will actually make a difference with this error. I will try and test this on a VM first and will post back here. Might also be a thing between running the script using python 32bit and python 64bit. "SystemError: error return without exception set" when indexing with -1 · Issue #4285 · scipy/scipy · GitHub
... View more
07-25-2015
10:53 PM
|
0
|
0
|
1323
|
Title | Kudos | Posted |
---|---|---|
1 | 10-23-2018 12:49 PM | |
1 | 07-22-2017 01:12 AM | |
8 | 09-06-2011 03:50 AM | |
1 | 12-21-2016 07:53 PM | |
2 | 01-21-2015 03:54 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|