POST
|
import arcpy,os,sys,time from arcpy import env env.workspace = "<location_of_data>" # Set local variables: address_locator = "Parcel_Maptaxlot_Gazetteer_Locator" try: # Stop the locator service on ArcGIS Server print "Stopping " + address_locator # Another Python script to stop services os.system("agsserver_service_start_stop.py STOP") print "Finished stopping service" time.sleep(15) # Rebuild locator print "Start rebuilding: " + address_locator arcpy.RebuildAddressLocator_geocoding(address_locator) print "Finished rebuilding: " + address_locator time.sleep(15) # Start the locator service on ArcGIS Server print "Starting " + address_locator os.system("agsserver_service_start_stop.py START") print "Finished starting service" except: print "There was a problem" print os.sys.exc_info()[1]
... View more
11-10-2020
07:40 AM
|
0
|
0
|
1215
|
POST
|
Hi folks, we are really struggling with Collector. As a starting point, I am using the documentation for "Offline maps and traditional versioned data". Below is a short description of our setup: Source data projection: Stateplane/EPSG: 2913 ArcMap - publishing environment Portal for ArcGIS - building web map for Collector ArcGIS Server - publishing feature service to server with sync, edit, delete, select capabilities Data Store - established connection to our source data in SDE/Enterprise data base. Data will not be copied to server Global IDs built on feature classes w/in feature dataset With our initial testing, I was able to publish one or two feature classes to ArcGIS Server and build a web map within Portal using an AGOL basemap (outlined w/in document mentioned above). However, one of the requirements is that all data must be in the same spatial reference. The basemap is EPSG: 4326 and the asset data is EPSG: 2913. How do I project the basemap to 2913? Is this done on the fly? Anyway, I built the web map with very little configurations and was able to consume within Collector, edit, and synchronize. Next, I added 30 assets/feature services to my ArcMap session and published with feature service capabilities. In addition, labeling had been enabled within ArcMap (no Maplex). Within Portal, I created a new web map and used Arcade scripting to configure the popups. I made sure that offline was enabled and all features were editable. The new web map is not working. Sometimes user can see the web map, but upon download it hangs. In addition, I created map areas to help reduce the amount of content within the download. Still not working So, what is going on? Are there limitations when using traditional versioning? When publishing a feature service from ArcMap, do all the fields need to be enabled? I'm assuming yes for traditional versioning. Do all the items participating within the web map need to have the same spatial reference? For example, we use Stateplane (EPSG: 2913) as our default projection. However, the basemap we consume from AGOL uses WGS84 Mercator (Auxiliary Sphere | EPSG: 4326). Is this a problem? Did not seem to be an issue when I tested using one feature service. Is there a limitation on the number of features within a web map that will be consumed by Collector? Within the web map, we have customized the pop-ups using Arcade scripting. Will Collector be able to handle this? Any help would be greatly appreciated. Thanks
... View more
11-03-2020
10:25 AM
|
2
|
0
|
415
|
POST
|
Hi folks, got a question regarding dropping a data store connection. We need to test something that would require us to drop the data store. I'm assuming this will break any web map, apps, dashboards that we currently have. Is this a valid assumption? We plan on reconnecting the data store after our testing has completed. Will this automatically reconnect the data in our web maps, apps, dashboards or will they be permanently hosed? Thanks
... View more
07-16-2020
04:51 PM
|
1
|
3
|
875
|
POST
|
Hi folks, I have a Python script that is looping through all the fields in our parcel layer and adding them to a field map object. Afterwards, I am adding the field map object to the field mappings. I recently learned that you cannot add the "Shape" field so I had to write a conditional for that. However, I am running into another problem. It seems like the field OBJECTID cannot be merged. Not sure why. I have tried removing it without success. I also tried removing it and recreating it without any success. Anyone else experience this issue? Python 2.7.16
... View more
06-24-2020
09:16 AM
|
0
|
0
|
343
|
POST
|
Hi Mark, thanks for the response. That is what I figured. However, reading the following article lead me to believe differently and got me confused. Publishing tiles from features: efficient, automatic, and economical If you get the chance, take a look at the article. It infers that the tiles are updated automatically. See the comment below: "when the data in the feature layer changes tiles are automatically updated. This includes when a feature is added, removed, or modified. Tiles for that area will be updated automatically to reflect the new data within a few minutes. With automatic tiles, you don’t have to worry about building your tile cache ahead of time or updating tiles to keep them updated with the latest feature data."
... View more
06-24-2020
08:48 AM
|
0
|
1
|
1534
|
POST
|
Hi folks, I have a hosted tile layer that I created from a hosted feature layer within our Portal Environment. I would like to know if the hosted tile layer is automatically updated when the the feature layer is updated or do I have to recreate the hosted tile layer each time? I check within Server Manager and there is no option to rebuild. Any help would be greatly appreciated. Portal for ArcGIS 10.7.1 ArcGIS Server 10.7.1 Jim L.
... View more
06-23-2020
03:46 PM
|
1
|
3
|
1662
|
POST
|
Well, I solved my own problem. I do like this forum when searching for issues, however, I never get any responses to my questions. Can't figure out why. Am I missing something? Am I posting to the wrong locations? Whatever. I have other resources. So, documentation is not that great. When publishing the feature service you need to publish to an ArcGIS Server, not AGOL. This will provide you with a more robust dialog for publishing options, including the elusive "Advanced Options".
... View more
06-18-2020
04:30 PM
|
0
|
0
|
312
|
POST
|
Hi folks, I am trying to follow a workflow from the following location: Offline maps and traditional versioned data—Documentation | Documentation for ArcGIS Enterprise The problem I am having is related to the feature access settings within the Service Editor. I am using ArcMap 10.7 and the data within my ArcMap session is from our Enterprise Geodatabase and has been versioned. I am using the default version of the data for my test. According to the documentation I should be able to click the "Advanced Options" to display Feature Service Advanced Options. However, there is no button. Why is the function not available? Am I missing something? Any help would be greatly appreciated. Thanks
... View more
06-18-2020
11:07 AM
|
0
|
1
|
352
|
POST
|
Hi Ben, Thanks for your response. One of our users is creating hosted feature layers using the Analysis option within the Map view from Portal. To be exact its Analysis -> Use Proximity -> Plan Routes. My assumption is that since Admin added the Esri Routing Service (Settings -> Utility Services -> Directions & Routing), the Admin account will be charged for the credit usage, not the individuals using it. However, to test my theory I will create a stand-alone routing service (for a generic user) from the same URL/REST endpoint that was used in the Utility Services section. Thanks
... View more
04-21-2020
05:15 PM
|
0
|
0
|
394
|
POST
|
Hi folks, I am trying to figure out why our credit usage is showing up only for Admin instead of individual users. I have setup our internal Portal (intranet) to utilize Esri's routing service. This was done by adding the rest endpoint to the Utility Services -> Directions & Routing within our Portal. However, each time someone (besides Admin) utilizes this service, the credit usage comes out of Admin. Why? How can I update this so the credit usage comes from individual user?
... View more
04-21-2020
03:58 PM
|
0
|
2
|
443
|
POST
|
Hey folks, I have been banging my head on this for the past several days. Here is my scenario, I would like to join our taxlot hosted feature layer with our assessors table. Both data sets reside in our ArcGIS Managed DataStore (PostgreSQL). Using Jupyter Notebook I am able to access both hosted feature layer and hosted feature table. I verify the records by performing a simple query. In addition, I am able to display each service graphically. However, when I try to perform a simple table join (assessor table to taxlots) I receive the following error message: {"messageCode": "AO_100032", "message": "The number of features in tax_genparcels is zero.", "params": {"analysisLayer": "tax_genparcels"}} {"messageCode": "AO_100215", "message": "JoinFeatures failed."} Failed to execute (JoinFeatures). Failed.
I don't get it. I validated that parcels have features:
# Properties of a Feature Layer
feature_layer = taxlot_layer[0]
feature_results = feature_layer.query(where='objectid>0', return_count_only=True)
feature_results
158933
Below is the code I'm using to perform the join:
output = analysis.join_features(target_layer='<string_to_hosted_feature_layer>',
join_layer='<string_to_hosted_table_layer>',
spatial_relationship=None,
spatial_relationship_distance=None,
spatial_relationship_distance_units=None,
attribute_relationship=[{"targetField":"maptaxlot","operator":"equal","joinField":"tlno"}],
join_operation='JoinOneToOne',
output_name='TaxlotAssessmentTest',
context={"extent":{"xmin":-44785405.742,"ymin":18653826.208,"xmax":-44778081.523,"ymax":18660282.372,"spatialReference":{"wkid":102100,"latestWkid":3857},"outSR":{"wkid":102100}}},
)
I have tried setting the spatial relationship to 'identicalto' and it still errors out. Any help would be greatly appreciated.
Thanks and stay safe
... View more
04-09-2020
04:30 PM
|
0
|
2
|
1092
|
POST
|
Hey folks, Got a question regarding updating of data within my Address Locator that I have shared to our Portal Env. The data within our Address Locator is referencing a file geodatabase that resides on our ArcGIS Server. The file geodatabase has been registered with our Datastore so we don't have data copied to the managed Datastore (PostgreSQL). The file geodatabase is updated on a weekly basis. Will I also need to update the Address Locator in Portal? Since the source data is updated I'm thinking I will most likely need to run a rebuild and overwrite the existing Locator Service in Portal. Any thoughts or suggestions would be appreciated. UPDATE: Looks like I might have found my answer Rebuilding address locators using a geoprocessing tool—Help | Documentation "When you make edits to your geocoding reference data, either by adding or deleting features or rows or by editing the address attributes they contain, you must rebuild your address locator if you want to geocode addresses against the current version of the reference data. " So, I wrote a Python script to stop the locator service, rebuild the locator service and start the service back up. Easy as py. Thanks
... View more
03-31-2020
05:40 PM
|
0
|
3
|
1298
|
POST
|
Hi Ken, thanks for the response. Just found the documentation on the Version matrix. Guess we are using Arcade 1.7. It states that ArcGIS Runtime has no support for FeatureSet and this is a function I am using within my web map. The strange thing is that my web map is working just fine. The Arcade expression results are correct. It's just when I create a web app from the web map that the "objectPromise" starts showing up.
... View more
03-10-2020
07:34 AM
|
0
|
0
|
288
|
POST
|
Hi there folks, I created a Web App using the template builder from Portal for ArcGIS (10.7.1). The Web App was built using my Web Map that contained Arcade Expressions for aggregating information. However, within the Web App I am noticing the table results displaying a value of [objectPromise]. Why??? Attached is an example of what I'm seeing. Are Arcade Expressions not supported in Web Apps? Any help would be greatly appreciated. Thank you Jim Lugosi
... View more
03-05-2020
12:01 PM
|
0
|
2
|
345
|
Title | Kudos | Posted |
---|---|---|
1 | 11-12-2019 11:54 AM | |
1 | 06-23-2020 03:46 PM | |
2 | 11-03-2020 10:25 AM | |
1 | 07-16-2020 04:51 PM | |
1 | 03-12-2019 09:39 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|