POST
|
Hi, Try: Verify you have your Service with Sync capability in the operations allowed (in service Capabilities in Server Manager) and the option to work offline in the Service definitions (in AGOL). In your enterprise GDB you have added global IDs to your mobile component (dataset) and have at least archiving enabled. In Collector do not save credentials to Login.
... View more
11-30-2016
02:24 AM
|
0
|
0
|
398
|
POST
|
We have in AGOL a published map to use in Collector. It is shared with the organization. Opening the map in Collector (v 10.4.0.0 for Windows 10) we get an error saying the layer is not accessible (error bellow). Opening that map in the same version of Collector for Android it works but we need to have it running on W10. Cannot find description for the layer access error: "expecting value type to be value_int32". Anyone with this situation?
... View more
11-02-2016
09:16 AM
|
0
|
1
|
1111
|
POST
|
Hi, We are facing an issue trying to download a map from a published feature service in order to work with it offline mode. Download operation gives the error message: "... Error in obtaining version for Sync" (see image bellow) Collector reinstalled and folders of ArcGIS_Collector deleted. Problem remains. Using Collector 10.3.7.0 running on Android 5.1.1 Someone with this issue?
... View more
08-12-2016
10:10 AM
|
0
|
2
|
1479
|
POST
|
Debug logs on server do not report anything. (Created on purpose error in another service and server returned debug errors in the log related with it). Can you clarify what should we find as error logs in the db? Thank you.
... View more
08-11-2016
03:02 AM
|
0
|
2
|
594
|
POST
|
We have a service published in AGOL so we can use it in Collector (10.3). Collecting and editing features via online works fine but trying to sync features (points or lines) collected in offline mode (with or without attachments) it fails the communication with the sever (messages attached). Some things were tried such as restart service, service only 1 type of geometry, tried to sync only 1 feature, Collector 10.3.7 running on Android 5.1.1 (device Samsung) and Windows 10... We have AGS (10.3) and SDE stored in MS SQL Server 2008 R2. Features have global IDs, are registered as versioned, no archiving enabled neither editor tracking. Have contacted 2 consultants at Esri Portugal who are enrolled with our project but they could not find the problem. Russell Roberts found in GeoNet you could help people with Collector issues, do you have some suggestion for this? Thanks in advance,
... View more
08-08-2016
09:01 AM
|
0
|
5
|
2239
|
POST
|
Exactly Jon Lynch our current challenge is how to list all nodes and their childs. Ww appreciate if you can give more details on how you solved that
... View more
06-17-2016
02:04 AM
|
0
|
0
|
1201
|
POST
|
Jonathan Quinn Joshua Bixby How can we access to all the data (map service properties) in xml format/structure? Thank you,
... View more
06-16-2016
07:13 AM
|
0
|
1
|
1201
|
POST
|
Need to publish web service using arcpy tuning up its properties through the parameter names passing them into function parameter_toggle (see code bellow). We are getting error (see picture bellow) in the parse of XML (output of sddraft analysis) with xml.dom.minidom for the parameters: - "recycleInterval" - "recycleStartTime" - "keepAliveInterval" These parameters represent service properties: Specify Recycling Settings: - Recycle this configuration every - Starting at Specify Health Check Settings: - Check and repair instances every def mapService(wrkspc, con, service):
...
return (sddraft, analysis) # (out_sddraft, out_analysis)
def capability_toggle(doc, server_type, status):
type_names = doc.getElementsByTagName('TypeName')
for type_name in type_names:
if type_name.firstChild.data == "{}".format(server_type) and status.lower() == 'on':
type_name.parentNode.getElementsByTagName("Enabled")[0].firstChild.data = "true"
def parameter_toggle(doc,'maxRecordCount', 'MaxInstances', 'recycleInterval', 'recycleStartTime', 'keepAliveInterval'):
keys = doc.getElementsByTagName('Key')
for key in keys:
if key.firstChild.data == "{}".format(maxRecordCount) : key.nextSibling.firstChild.data = 100000
if key.firstChild.data == "{}".format(MaxInstances) : key.nextSibling.firstChild.data = 5
if key.firstChild.data == "{}".format(recycleInterval) : key.nextSibling.firstChild.data = 20
if key.firstChild.data == "{}".format(recycleStartTime) : key.nextSibling.firstChild.data = '04:00'
if key.firstChild.data == "{}".format(keepAliveInterval) : key.nextSibling.firstChild.data = 86400 #seconds
def publishService(out_analysis, out_ssdraft, sd, con):
...
def main():
# workspace
wrkspc = "path_to_workspace"
# server connection (publisher)
con = os.path.join(wrkspc, "file.ags")
service = "service_name"
# outputs mapservice
(out_sddraft, out_analysis) = mapService(wrkspc, con, service)
# parse of XML (from sddraft analysis)
doc = dom.parse(out_sddraft)
### ERROR HERE PARSING XML ###
with open(out_sddraft, 'w+') as xml:
capability_toggle(doc, 'WMSServer', 'on')
parameter_toggle(doc,'maxRecordCount', 'MaxInstances', 'recycleInterval', 'recycleStartTime', 'keepAliveInterval')
doc.writexml(xml)
sd = os.path.join(wrkspc,service + '.sd')
publishService(out_analysis, out_sddraft, sd, con)
if __name__ == '__main__':
main()
... View more
06-08-2016
04:22 AM
|
0
|
8
|
4989
|
POST
|
Blake Terhune We could manage a filter on block introducing an if condition inside the loop "for utm in distinct_utm". At a block filter level makes sense to use a single value. Would be interesting contemplating also a filter on sheet. How could we manage this? Thank you
... View more
05-09-2016
03:45 AM
|
0
|
2
|
536
|
POST
|
Blake Terhune Taking the feature class to shapefile processing organized by utm (sheet) location ( folder: block, subfolder: sheet ) in the case we need to filter the exported output, in other words, create only shapefiles of a specific location (e.g. Block 1: "B1"), what would be the way to accomplish it? That filter-variable would be given as input to the script.
... View more
05-05-2016
10:15 AM
|
0
|
4
|
536
|
POST
|
Blake Terhune That is it thank you I am glad you could survive to it --> Another question-opinion related with this geoprocessing. The real FCs we have in the SDE have more fields other than those in the file attached to this post. The most complex FC has a relation with a Table. We investigated FC and Table attributes to get those to build the join. Creating a lyr of the FC we processed the join of it with the Table. Then using fieldmappings we defined the fields we wanted to keep in the final FC (the one attached) as this snippet shows : ws = "path to workspace"
fieldmappings = arcpy.FieldMappings()
fieldmappings.addTable(os.path.join(ws, gab_und_crt_dic[0]))
for inputfield in fieldmappings.fields:
if inputfield.name not in ["ID_UND_CRT","st_UND_GEOL","DSCR_UND_CRT","DSCR_UND_CRT_LG","FOL_250K","ID_UND_LITO",
"DSCR_UND_GEOL", "DSCR_UND_LITO", "IDE_CRON_INF", "IDE_CRON_SUP"]:
fieldmappings.removeFieldMap(fieldmappings.findFieldMapIndex(inputfield.name))
# export FC with selected fields to shp
arcpy.FeatureClassToFeatureClass_conversion(gab_und_crt_dic[0], gdb2shp_selected_fields.gdb, "gab_und_crt_dic", field_mapping = fieldmappings) Would you take this approach or another way?
... View more
04-28-2016
05:24 PM
|
0
|
1
|
536
|
POST
|
Blake Terhune Made 2 adjustments to get what we need. Line 22 delim = "_" Line 28 delim_index+1
... View more
04-28-2016
04:48 PM
|
0
|
1
|
536
|
POST
|
Blake Terhune Missed the "_" in the field. FOL_250K returns the correct value. If you run the snippet above with that variable/FC, fol_250k_value = B3_SULC33U
... View more
04-28-2016
03:12 PM
|
0
|
1
|
536
|
POST
|
Blake Terhune When I posted the problem I wrote "UTM_grid" to give it a more readable name 😃 The file/FC contains the real names. FOL_250K is UTM_grid. FOL_250K shows those labels (e.g. BLOCO1 - SULD33T - Chibia) but the value is B1_SULD33T. We do not need to dissolve FOL_250K. with arcpy.da.SearchCursor(gab_und_crt_dic, ['FOL_250K' , 'OBJECTID']) as cursor:
for row in cursor:
fol_250k_value = row[0]
oid_value = row[1] fol_250k_value returns a value in the format (B1_SULD33T). Output structure we need: B1 .. SULD33S .... B1_SULD33S_<featureClassName>.shp .. SULD33T .... B1_SULD33T_<featureClassName>.shp B3 .. SULC33U .... B3_SULC33U_<featureClassName>.shp (in this case <featureClassName> will be gab_und_crt_dic)
... View more
04-28-2016
12:50 PM
|
0
|
4
|
754
|
Title | Kudos | Posted |
---|---|---|
2 | 08-25-2015 07:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|