DOC
|
Than you @Jianxia for sharing this. Tihs is a great overview and needed information to decide on the successor of individual Web App Builders. I do believe, however, that there is a mistake. For Basemap Gallery it says it will not be planned for the Experience Builder. The online documentation, however, indicates it is already available in ArcGIS Online and AGE 11.2. Basemap Gallery widget—ArcGIS Experience Builder | Documentation . Is this an error or are we talking about a different widgets? I also wonder if these pdf documents will be updated through this url or whether a new url will be provided if there is an update. I see you have attached the documents to the post, but is there a central location where these documents will be updated? Thank you in advance. best regards, Jelle Stuurman
... View more
03-21-2024
09:40 AM
|
0
|
0
|
2888
|
IDEA
|
The code block section in (model builder) geoprocessing tools need several improvements: ability to enlarge the block so that you have more room and see longer bits of code Consistent code block format in all tools. Some tools have a big box, others a small one. When writing python, it needs better syntax feedback if tab indentations are used instead of 4 spaces. Even better, it should be able to use tabs indentation instead of 4 spaces. Or, When pressing enter within a function , 4 spaces should be given and not a tab. Now you need to manually adjust the indentation tabs into spaces. No clear syntax error feedback is privided if tabs are userd instead of spaces. Improve syntax error handling by providing interactive feedback if functions or variables are not recognised. I refer to the code block in the ‘calculate fields (multiple)’ tool. I know other tools have a larger code block section, hence my second suggestion to uniform the code block sections across all tools.
... View more
03-19-2024
01:28 PM
|
2
|
0
|
168
|
POST
|
Thank you for making me aware that the append tool uses another URL. The append tool does not seem to work even in the portal UI. It looks like some underlying authentication issues. I will continue this issue ESRI support. Should a solution be found, I will post it back here.
... View more
03-04-2024
08:18 AM
|
1
|
0
|
148
|
POST
|
thank you for your note Kepa. is there another format with which we can append in AGE? I checked the equivalent rest endpoint in environment and it looks less eleborate. Maybe AGE 10.9.1 has some limitations in how to append through python?
... View more
02-28-2024
12:11 PM
|
0
|
2
|
176
|
POST
|
After some further research, came across this post,that uses the edit_features function. I edited the suggested code in the post to my dataset and I replaced the pandas module with reguar oython dctionaries. I also removed the geometries because I don't have that. # Import necessary modules
from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection, FeatureLayer
import arcpy
# Get input parameters
fgdb = "<path _to_fgdb>"
# Make GIS connection
gis = GIS(<portal_url>, "", "")
# Create a list to store features as dictionaries
features_as_dicts = []
# Use SearchCursor to iterate through the features in the feature class
with arcpy.da.SearchCursor(fgdb, '*') as cursor:
for row in cursor:
feature_dict = {
'created_user': row[3],
'created_date': row[4],
'last_edited_user': row[5],
'last_edited_date': row[6],
'webapp_id': row[7],
'webapp_titel': row[8],
'notities': row[9],
'opvolging_nodig_input': row[10],
'details_opvolger': row[11],
'status_uitfasering': row[12],
'datum_uitfasering': row[13],
'portal': row[14]
}
features_as_dicts.append(feature_dict)
#search for the hosted feature layer/service
featureLayer_item = gis.content.search('type: "Feature Service" AND title:"<title>"')
#access the item's feature layers
feature_layers = featureLayer_item[0].layers
#query all the features
fset = feature_layers[0].query()
features_to_be_added = []
#template_hostedFeature = {"attributes": {"webapp_id": None, "created_user": None, "status_uitfasering": None, "globalid": None, "details_opvolger": None, "last_edited_user": None, "datum_uitfasering": None, "webapp_titel": None, "last_edited_date": None, "opvolging_nodig_input": None, "created_date": None, "notities": None, "portal": None, "objectid": None}}
for row in features_as_dicts:
new_feature = {"attributes": {"webapp_id": None, "created_user": None, "status_uitfasering": None, "details_opvolger": None, "last_edited_user": None, "datum_uitfasering": None, "webapp_titel": None, "last_edited_date": None, "opvolging_nodig_input": None, "created_date": None, "notities": None, "portal": None, "objectid": None}}
# assign the updated values
new_feature["attributes"]['created_user'] = row['created_user']
new_feature["attributes"]['created_date'] = row['created_date']
new_feature["attributes"]['last_edited_user'] = row['last_edited_user']
new_feature["attributes"]['last_edited_date'] = row['last_edited_date']
new_feature["attributes"]['webapp_id'] = row['webapp_id']
new_feature["attributes"]['webapp_titel'] = row['webapp_titel']
new_feature["attributes"]['notities'] = row['notities']
new_feature["attributes"]['opvolging_nodig_input'] = row['opvolging_nodig_input']
new_feature["attributes"]['details_opvolger'] = row['details_opvolger']
new_feature["attributes"]['status_uitfasering'] = row['status_uitfasering']
new_feature["attributes"]['datum_uitfasering'] = row['datum_uitfasering']
new_feature["attributes"]['portal'] = row['portal']
features_to_be_added.append(new_feature)
feature_layers[0].edit_features(adds = features_to_be_added) Script works fine, uti it tries the editfeatures function. None connections seems to be lost after 5 minutes or so ( I have removed the references to the portal url): Traceback (most recent call last):
File "test.py", line 87, in <module>
feature_layers[0].edit_features(adds = features_to_be_added)
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py", line 3408, in edit_features
return self._con.post_multipart(path=edit_url, postdata=params)
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1244, in post_multipart
raise requests.exceptions.ConnectionError(
requests.exceptions.ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='<portal_url>, port=443): Max retries exceeded with url: /arcgis/rest/services/Hosted/survey123_.../FeatureServer/0/applyEdits (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, 'De externe host heeft een verbinding verbroken', None, 10054, None))) It looks like it is not able to apply edits. I am a portal admin so I should have the correct privilidges.
... View more
02-28-2024
04:43 AM
|
0
|
0
|
187
|
POST
|
Hi Jake, Thank you for your swift reply and the suggestion which you provided. Originally I used the append tool from ArcGIS Pro. I have made a model builder in which I append data to the survery123 hosted feature service. I added the hosted feature service to the map and then added it from there to my model. Within model builder the append tool works fine. Once I export the model builder as a python script and then run it through a python command, I get the following error about the hosted feature service ERROR 000732: Target Dataset: Dataset feature service\js3Items Notities Toevoegen\survey does not exist or is not supported When trying to add the feature service itself into the model builder as input, the append tool does not recognise it as a valid input: I therefore came to the conclusion that using the regular append tool does not work when you want to update a feature service through python. Therefore I tried the way explained in my original post. I tried this method trying to mimic the way you would update a feature service through the user interface in Portal: I believed that updating a feature service with an offline file geodatabse was therefore possible. But maybe through Prtal's user interface, another tool is used on the background than the python REST arcgis.feature append tool. The returned error in my original post now makes sense as this tool only works with online data sources. My question therefore is how I can append data from an offline source to a hosted feature service using python and outside of ArcGIS Pro. Do I simply create access using GIS(), call the hosted feature service and the use ArcGIS Pro's append tool in python? Hopefully I have clearly explained the workflow which I want to achieve. Thank you in advance for your help.
... View more
02-27-2024
08:18 AM
|
0
|
0
|
208
|
POST
|
Hi, Using the ArcGIS Pro 3.1 python library, I am trying to append data to a survey123 hosted feature service in ArcGIS Enterprise 10.9.1, . The file geodatabase that I am trying to append has the exact same attributes as the hosted feature service. There is no GlobalID field in the file Geodatabase and it is not necessary for any relations afterwards. It is sufficient that the globalID is added once it the data is appended to the survey123 hosted feature service. # Import necessary modules
from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection, FeatureLayer
import arcpy, sys
# Get input parameters
# Make GIS connection
gis = GIS(<portalURL>, "", "")
# Get survey123 Feature Service
surveyItem = gis.content.get(portalId)
fs = FeatureLayerCollection.fromitem(surveyItem)
# Get layer within survey123 feature service
lyr = FeatureLayer(fs.layers[0])
# get input features
inputFeatures = <input file geodatabase path>
# Update features in the feature layer
result = lyr.append(source_table_name = inputFeatures, upload_format = "filegdb")
# Print the result
arcpy.AddMessage(result) When running the above script, the hosted feature service can correctly be found. I do get, however, the following error: raceback (most recent call last):
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16931, in _hydrate
self._refresh()
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16905, in _refresh
raise e
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16894, in _refresh
dictdata = self._con.post(
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1372, in post
if url.find("://") == -1:
AttributeError: 'FeatureLayer' object has no attribute 'find'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 34, in <module>
result = lyr.append(source_table_name = inputFeatures, upload_format = "filegdb")
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py", line 2785, in append
if self.properties.supportsAppend == False:
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16954, in _hydrate
self._refresh()
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16905, in _refresh
raise e
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 16894, in _refresh
dictdata = self._con.post(
File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1372, in post
if url.find("://") == -1:
AttributeError: 'FeatureLayer' object has no attribute 'find' I don't understand the cause of this error. Can aybody help me or know how I can append a file geodatabase to a survey123 hosted feature service using python? best, Jelle Stuurman
... View more
02-26-2024
05:39 AM
|
0
|
7
|
293
|
POST
|
great to read that this feature is registered as an enhancement. Is the status of this feature to be found somewhere online? Or else, can you provide an update? Also, am I correct that this workaround only works when using survey123Connect?
... View more
02-26-2024
05:18 AM
|
0
|
0
|
120
|
POST
|
Together with ESRI support we have found the issue. Everytthing was set up correctly, but the settings were somehow not saved correctly. The edit settings on the hosted view tables (see screenshot below) were reconfigured by first turning the edit functions off and saving the settings. And then turing it back 'on' (inlcuiding a refresh of my cache). This resynched the settings, after which the mode=edit worked and the globalid parameter was read correctly.
... View more
02-16-2024
08:10 AM
|
0
|
0
|
167
|
POST
|
Hi Zach, Thank you for your reply. I have tried several variation of 'globalid'. None of them worked.
... View more
02-16-2024
05:54 AM
|
0
|
0
|
175
|
POST
|
Hi, I am having issues with editing a survey123 response. I try to edit a response in the web browser. The survey is open for responses and editing. I get the error that editing is not possible because the globalid parameter is not provided. In the console I get the error that the globalid parameter is invalid. From the screenshot you can see that the survey (published on ArcGIS Enterprise 10.9.1 with survey123 version 3.19) loads correctly. I have used the following URL scheme: https://survey123.arcgis.com/share/<formID>?portalUrl=<portalURL>&mode=edit&globalId=<globalId> . Anybody any idea why the globalid parameter is not recognized? best, Jelle Stuurman
... View more
02-12-2024
12:58 PM
|
0
|
3
|
352
|
POST
|
I would like to add tags that can be found by all Portal users throughout an organisation. Currently, when adding tags to an item, you get a dropdown of the tags that are present within your own content. Is there a way to make tags so that they are searchable within the whole organisation? I am using ArcGIS Enterprise 10.9.1. best, Jelle Stuurman
... View more
02-09-2024
02:00 AM
|
0
|
0
|
220
|
POST
|
in the settings of the item, go to data source and change the URL using your correct portal/agol url and correct item id. Maybe use another web app to see how the URL is built up. Also make sure that the Purpose below is set to 'Ready to Use' and the API to 'JavaScript'.
... View more
02-08-2024
01:59 AM
|
0
|
0
|
186
|
IDEA
|
I think this idea has been implemented now 😄 A hug for group layers: show only one layer at a time with exclusive visibility (esri.com)
... View more
01-30-2024
12:17 AM
|
0
|
0
|
100
|
POST
|
Did you check the data source URL under the settings of the instant app? Most likely this URL is invalid/broken and then it will redirect you to the random instant app. I never understood why it redrects you to this random Instant App but I do know this is what happens when the data source URL is not refering to the webapp id of the corresponding app.
... View more
01-25-2024
10:48 AM
|
0
|
2
|
259
|
Title | Kudos | Posted |
---|---|---|
2 | 03-19-2024 01:28 PM | |
1 | 03-04-2024 08:18 AM | |
1 | 01-24-2024 12:43 AM | |
1 | 03-02-2022 11:50 AM | |
1 | 08-08-2023 05:00 AM |
Online Status |
Offline
|
Date Last Visited |
04-02-2024
11:51 AM
|