POST
|
Hi Owen, Here is a test example for demonstration purposes. It is not public, but maybe you can get to it (I've shared it within my organization). Also, here is the web map embedded in a test web app (created in WebApp Builder), which works as expected. Clicking a point brings up a pop-up with embedded (linked) image. Clicking the transect line brings up a pop-up with embedded (linked) video. All links use https. Thanks, Len
... View more
07-22-2020
12:01 PM
|
0
|
2
|
2787
|
POST
|
I created a web map using a hosted feature service that includes an <iframe> link to a video as a field in the attribute table. It displays the linked video in a pop-up just fine when viewing the web map. When I embed the map in a storymap, however, it's just a blank pop-up. No issue with linked images in pop-ups, it just seems to be an issue with the iframe code. I'm using the approach (for the web map) described here: How To: Embed a video in pop-ups in ArcGIS Online for a hosted feature service.
... View more
07-21-2020
02:37 PM
|
1
|
6
|
2873
|
POST
|
Hi. I am trying to update/overwrite a hosted feature layer, following the logic given near the end of a tutorial on learn.arcgis (Update Real-Time Data With Python). It uses the following to overwrite the feature layer: # Replace file manager = arcgis.features.FeatureLayerCollection.fromitem(item).manager status = manager.overwrite(updated_sd) Everything else is working except this step, which returns an error: status = manager.overwrite(updated_sd) Traceback (most recent call last): File "<ipython-input-45-b7a0406a969f>", line 1, in <module> status = manager.overwrite(updated_sd) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py", line 1269, in overwrite published_item = related_data_item.publish(publish_parameters, overwrite=True) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 8780, in publish serviceitem_id = self._check_publish_status(ret, folder) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 9007, in _check_publish_status raise Exception("Job failed.") Exception: Job failed. I have found a couple of relevant threads about this, one says it's a bug (Phil Larkin, Dec. 12, 2018 2:31PM: This is in fact associated with the bug. The severity is logged as low. BUG-000115253: When using the overwrite method from arcgis.features.managers.FeatureLayerCollectionManager, ArcGIS API for Python returns the error "Exception: Job Failed.'' BUG-000115253: When using the overwrite method from arcgis.features.. Another thread (very last comment) says: While I was trying these solutions, I was simultaneously working with ESRI Support, and we came up with a different workflow which publishes a new SD file. That is working well, so I won't need to pursue this solution, though it appears it would be a simpler script. Can anyone point me to a workaround, or the 'different workflow which publishes a new SD file' referred to here? Thanks, Len
... View more
01-15-2020
05:48 AM
|
3
|
1
|
1848
|
Title | Kudos | Posted |
---|---|---|
1 | 07-21-2020 02:37 PM | |
3 | 01-15-2020 05:48 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|