POST
|
The same script runs fine with connection to ArcGIS Online. gis = GIS(url="https://www.arcgis.com", username='geop', password='****') However, we need to share it to our portal. Is there a way to register the Portal connection before publishing it as a Web Tool? Related (unanswered) issue: https://community.esri.com/thread/250333-can-the-python-api-be-used-in-a-web-tool-for-managing-portal-items
... View more
06-01-2020
05:32 AM
|
0
|
0
|
3460
|
POST
|
Have you succeeded with publishing your workflow to portal? Can you describe your workaround? I have run into the same issue lately. https://community.esri.com/thread/253890-error-00068-broken-data-source-when-trying-to-publish-web-tool-with-portal-connection
... View more
06-01-2020
04:57 AM
|
0
|
1
|
775
|
POST
|
I am running into an issue when trying to publish our Geoprocessing tool as a Web Tool to our portal. I created the simplest script, to recreate the issue: from arcgis.gis import GIS
import arcpy
gis = GIS(url="https://gis.example.com/portal", username='geop', password='****')
fv = arcpy.GetParameterAsText(0)
if fv=="":
fv = 'DEFAULT'
fv = str(fv)
arcpy.AddMessage("Parameter is: {}, type: {}".format(fv, type(fv)))
arcpy.AddMessage("Finished!") It runs fine in ArcGIS Pro 2.5. When I try to share it as a Web Tool Error 00068 and Warning 24032 pop up, referencing a broken project data source. Script TestScript contains broken project data source: MESSAGEFORMAT=esriAGSInternetMessageFormatBin;SERVERTYPE=esriAGSServerTypeDiscovery;CONNECTIONMODE=esriAGSConnectionModePublisher;SERVERURL=https://gis.example.com/arcgis;USERPORTALANDFEDSERVERTOKEN=-1;PORTALURL=https://gis.example.com/portal I suppose that including ArcGIS API for Python like this in Web Tool is not desired/supported. What is the correct way to include it?
... View more
05-26-2020
05:46 AM
|
2
|
7
|
3591
|
POST
|
No, unfortunately we stopped investigating on this issue, as there seemed to be no convenient solutions that we were aware of.
... View more
05-17-2020
02:05 AM
|
0
|
0
|
322
|
POST
|
It also does not work att all within PyCharm (linked with default arcgispro-py3 environment). Here it returns a Error 999999: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Traceback (most recent call last):
File "C:/EsriTraining/PYTS/Scripts/SummarizeWithinTest.py", line 15, in <module>
arcpy.analysis.SummarizeWithin(mkfn, rkfn, mkrkPolyFc, '', sum_fields)
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 2299, in SummarizeWithin
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 2296, in SummarizeWithin
retval = convertArcObjectToPythonObject(gp.SummarizeWithin_analysis(*gp_fixargs((in_polygons, in_sum_features, out_feature_class, keep_all_polygons, sum_fields, sum_shape, shape_unit, group_field, add_min_maj, add_group_percent, out_group_table), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 511, in <lambda>
return lambda *args: val(*gp_fixargs(args, True)) Yes, the error in Jupyter-Notebook is more a cosmetic issue.
... View more
04-27-2020
03:50 AM
|
0
|
0
|
784
|
POST
|
I'm running an external version of jupyter notebook on a cloned arcgispro-py3 environment.
... View more
04-27-2020
03:45 AM
|
0
|
0
|
784
|
POST
|
I'm using the SummarizeWithin tool with arcpy, running in a Jupyter Notebook. sum_fields = "TOTAL Sum;M_TOTAL Sum;F_TOTAL Sum"
arcpy.analysis.SummarizeWithin("counties", "demographics", "counties_demo", '', sum_fields) On execution I receive a lot of these two errors in the console. TypeError: setGroupParams() missing 2 required positional arguments: 'groupFieldName' and 'fcPath'
AttributeError: 'ToolValidator' object has no attribute 'isLicensed' The tool runs through and gives a correct output FeatureClass. I still would like to get rid of these errors. When executed as a regular Geoprocessing Tool in ArcGIS 2.5 no errors are reported, same when the code snippet is run in the Python Console. Is this a bug, or am I doing something wrong?
... View more
04-23-2020
07:02 AM
|
0
|
5
|
904
|
POST
|
I need to create a two-layered PopUp for ArcGIS Online and Webappbuilder. When initially selecting the feature in the map only basic information should be shown: When clicking hide/show more information the content should extend: I was intending to use HTML in combination with a simple JavaScript command, but it seems that this is not possible. What is the ideal workaround for this? PS: alternatively - instead of clicking hide/show more information - would it be possible to extend the content when maximizing the popup window?
... View more
03-20-2020
02:17 AM
|
0
|
1
|
562
|
POST
|
We are currently setting up a Stream Service and need to use the Latest/Related (L/R) Features for our Webmap. The Stream Service works fine without L/R Features. The WebSocket (WS) connection is created, filter messages of type {“filter”:{“where”:”mmsi = ‘123456’”}} are sent and confirmed (“error”: null) through the WS protocol. Data then proceeds to come through the same connection. Filter can be removed and edited, without issues. With the L/R enabled, the filtering does not work as expected: By filtering for “mmsi” (Track_id), the filter is sent via WS, then a new WS connection is opened with “where=mmsi%20%3D%20%123456%27” added to the WS-URL. By removing/editing the filter again a new WS connection is opened. Data is at least coming through. By filtering for “class” (not a field of Related Features) the filter is sent via WS, no new connection is opened. No data is coming through. I understand that the WS connection cannot be used for filtering for related features, but we did not even do that yet. Is this a known issue? What would be the work around? Kind regards, Markus
... View more
11-27-2019
07:11 AM
|
0
|
1
|
601
|
POST
|
Hello community, I already have a workaround for my problem, but I'm curious if there is a more elegant way to handle it. I receive messages on a UDP port as comma comma-separated values (25 fields). These are never complete. Most of the time I receive geometric information only (ID, coordinates, speed). Occasionally I receive additional information for my IDs (ID, name, measurements, destination). ## Geometrics
#ID, Ycoord, Xcoord, speed, ..., time
000123,9.1543,55.7552,235.89,,,,,,,,,,,,,,,,,,,,05/31/2019, 08:38:10
000123,9.1544,55.7553,250.30,,,,,,,,,,,,,,,,,,,,05/31/2019, 08:38:15
## Additional Information
#ID, ... , name, ... measurements ..., destination, time
000123,,,,,,,,,,Vehicle1,74,,,,8,1,6,5,3,0,6.40,Destination2,05/31/2019, 08:38:00
000123,,,,,,,,,,,74,108,12,10,8,1,,,,,,,05/31/2019, 08:38:30 The geometrics are filtered from the rest in GeoEvent Server. The idea is to later enrich it with the additional information. Normally, I would Update a feature layer with the additional information and use the hosted feature layer to enrich the geometric data. However, as you can see the data contains empty/nan values, which leads to crucial information (Name, Destination) occasionally being unavailable when updating+enriching. How can I update a feature layer while ignoring single empty/nan attributes? I'm sincerely thankful to any suggestions. kind regards, Markus PS: For now, I'm writing everything to csv, and using a python script to group the data, export it to csv/json,and load it to GeoEvent Server. Which seems to me like a unnecessary loop. df2 = df2.groupby('ID', as_index=False).last() The function ignores NaN-values by default.
... View more
06-14-2019
01:46 AM
|
0
|
1
|
369
|
POST
|
Hello, I know that it is possible to define the unique symbols for different attributes of a feature layer by using the url of a custom single image (Change Style reference - Change symbols). However, I have many features (~500) for which I would like to define a custom (png) symbol. The symbols are dynamically created elsewhere and stored in the format: 'id001.png', 'id002.png'...'id500.png'... The id### can be found in the attribute table of the feature layer. Is it possible to create such a layer? I am extremely thankful for any hints. kr, Markus ps: My approach would be to use ArcGIS Online Assistant, but I'm not sure about performance issues and the dynamic updating when new features are added. I would use different zoom-levels, so that only a selection of features will be shown at once.
... View more
06-12-2019
04:55 AM
|
0
|
2
|
405
|
Title | Kudos | Posted |
---|---|---|
2 | 05-26-2020 05:46 AM |
Online Status |
Offline
|
Date Last Visited |
03-02-2022
08:54 AM
|