POST
|
is the token you are using current / not expired? If logging in to ArcGIS Enterprise, check that there are no ssl certificate errors (this should not be the case with AGOL) if there is, see if adding verify_cert=False fixes the problem. if this fixes the problem with AGOL logins this could be an issue with python SSL handling. gis = GIS("https://www.arcgis.com, "arcgis_python", "P@ssword123", verify_cert=False) alternatively you may need to generate a new token. (response.text in the example below will contain the token). note that in this example you will need to register a client id for your application import requests url = "https://www.arcgis.com/sharing/rest/oauth2/token" payload = "client_id=CLIENT_ID_FROM_YOUR_APPLICATION&client_secret=CLIENT_SECRET_FROM_YOUR_APPLICATION&grant_type=client_credentials" headers = { 'content-type' : "application/x-www-form-urlencoded" , 'accept' : "application/json" , 'cache-control' : "no-cache" , 'postman-token' : "11df29d1-17d3-c58c-565f-2ca4092ddf5f" } response = requests.request( "POST" , url, data=payload, headers=headers) print(response.text)
... View more
10-25-2020
08:29 PM
|
0
|
0
|
154
|
POST
|
check the feature service on server / portal first, within the forms themselves the service is only identified via its ID. within the form.info file you have identified that the URL being used is HTTP, which would return the error shown in your screenshot if HTTPS only has been enabled since the form was first published and/or upgrades to recent versions of enterprise with only support HTTPS. you may need to recreate the survey form again using a HTTPS URL, however it might be possible to edit the url in the form.info file to a HTTPS rather than HTTP url (provided that the service in question has a HTTPS endpoint).
... View more
10-25-2020
06:45 PM
|
0
|
1
|
63
|
POST
|
What are the URLs used within the survey/form itself, in comparison to the URLs presented by the server? the 403 component of the error message suggests that the form is attempting to access the feature service using HTTP, and however the server requires HTTPS.
... View more
10-22-2020
08:31 PM
|
0
|
3
|
63
|
POST
|
this might be useful: https://community.esri.com/docs/DOC-15525-httpssimplemapscomdataus-zips
... View more
10-22-2020
06:18 PM
|
0
|
0
|
114
|
POST
|
If you had the data matching zipcodes to cities and states you would simply perform a join. however if all your data is geospatial (polygons etc..) and you wish to update the fields you could perform the following: however if you have the cities and states as shapefiles adding the fields would be done along these lines: # Import system modules import arcpy # Set environment settings arcpy.env.workspace = "C:/data/" # Set local variables inFeatures = "zipcodes.shp" fieldName1 = "city" field_length1 = 8 fieldName2 = "state" fieldLength2 = 10 # Execute AddField twice for two new fields arcpy.AddField_management(inFeatures, fieldName1, "TEXT" ,field_length=field_length1 ) arcpy.AddField_management(inFeatures, fieldName2, "TEXT" , field_length=fieldLength2) once the fields are added they could be updated using something similar to this: cityFC = r"C:\data\city_polygons.shp" stateFC = r"C:\data\state_polygons.shp" arcpy.MakeFeatureLayer_management(infeatures, "index_fl") searchRows = arcpy.da.SearchCursor(cityFC, ["SHAPE@","CITY_NAME"]) for searchRow in searchRows: geomObj, cityName = searchRow arcpy.SelectLayerByLocation_management("index_fl", "INTERSECT", geomObj, "", "NEW_SELECTION") arcpy.CalculateField_management(infeatures, "city", "'" + cityName + "'", "PYTHON", "") searchRows = arcpy.da.SearchCursor(stateFC, ["SHAPE@","STATE_NAME"]) for searchRow in searchRows: geomObj, stateName = searchRow arcpy.SelectLayerByLocation_management("index_fl", "INTERSECT", geomObj, "", "NEW_SELECTION") arcpy.CalculateField_management(infeatures, "city", "'" + stateName + "'", "PYTHON", "")
... View more
10-22-2020
06:08 PM
|
0
|
0
|
114
|
POST
|
Hi ahmad hasan , The following workflow may be useful for your situation, where the public URL to access the server has changed after federation: Update the administrator URL for the federated server. Log in to the Portal Sharing API (https://mywebadaptormachine.mydomain.com/portal/sharing/rest/portals/ ) as an administrator. From your user page, click the link for Org ID. Under the Child Resources section, click Servers, then select the Server ID of your federated server. Click Update Server. In the dialog box, enter the fully-qualified Server Admin URL of your new machine. Click Update. this avoids having to unfederate / refederate (which breaks all services on that ArcGIS server in the process).
... View more
10-20-2020
07:35 PM
|
2
|
1
|
70
|
POST
|
Thanks Kyle, have you selected add to display for the outputs you would like added to the map (right click on the outputs and select from the menu)? try this with both the dfn_%Name% output and the dfn_mar_layer output. If you add another netCDF file to the directory, does it iterate through the second file or remains stuck on the first? what version of ArcGIS / Pro are you using?
... View more
09-29-2020
04:20 PM
|
1
|
1
|
47
|
POST
|
Hi Bethany, Are you able to post the output (text) that is generated when the model is run, as well as the parameters of the iterator please? Regards, Matthew Brown
... View more
09-28-2020
07:11 PM
|
1
|
3
|
47
|
POST
|
Hi Helena, Check to ensure that you are not using apps or templates that are retired or incompatible with the upgraded enterprise system. Instead of user levels users are licenced by user type. ensure that you have the appropriate number of user licences and that user types have been migrated across correctly after the upgrade. you will need to set up a default user type and role to enable new users to automatically create a new account. if you have any custom scripts or tools that interact with the enterprise API directly - there are some changes in the API that occurred at version 10.7.
... View more
09-28-2020
04:06 PM
|
1
|
0
|
68
|
Online Status |
Offline
|
Date Last Visited |
11-16-2020
10:06 PM
|