POST
|
I have a very simple Integromat scenario: a Survey123 watch survey, an HTTP get a file, and an Email send an email. The goal is also simple: An individual submits a survey and an email is sent to me with the content of the survey and, when applicable, an attachment. However, that's the problem. When I include an attachment, everything works perfectly. However, if there is no attachment, I receive a Make message indicating that the scenario Integration Survey123, Email has stopped due to an error and the scenario is deactivated. The problem is that, without an attachment, the URL parameter for the HTTP get is non-existent ("Invalid URL in parameter 'url'.") I do not want the attachment to be required, so how do I work around this for the HTTP get a file to only "trigger" when there is actually an attachment? I assume it involves setting up a filter, but as I am brand new to both webhooks and Make, I have no idea how to do this. My attempts thus far have failed. Thanks.
... View more
06-28-2022
02:49 PM
|
0
|
3
|
615
|
POST
|
I found a solution. It is ugly and if there is a better way to do this, I would sure like to do it. I used ArcGIS Online Assistant and edited the JSON (which they caution is unsupported) to include the missing layer. It worked, but there's got to be a better way. Also, I have read about an option to "Update View," but that tool is not available in my hosted feature layer settings. The quest to resolve this continues.
... View more
05-12-2022
07:32 AM
|
0
|
0
|
202
|
POST
|
Were you able to resolve this? I have the same issue. And this persists whether or not I am logged in as the owner of an item or just as an administrator.
... View more
05-12-2022
06:53 AM
|
1
|
0
|
440
|
POST
|
Yes. I have had success with this using the ArcGIS Online Assistant.
... View more
05-12-2022
06:28 AM
|
1
|
0
|
285
|
POST
|
We have a feature service with multiple layers in AGOL that was published from a file geodatabase. Recently, we updated the data. However, when we did so, one of the layers (which is new in the update) does not show in the layer list in the items view of AGOL (the layer is entitled pct2020_001): However, if we click on the Feature Service to view the ArcGIS services directory, the new layer is there: Side note: If I create a new layer from the existing feature layer, the new layer shows in the list. Also, if I start from scratch and upload a zip file with the GDB, it also shows. However, this is not a tenable solution because we have too many dependencies on the existing feature layer (and we have 77 counties for which we need to do this). Does anyone know why this is and how to resolve it? Thank you.
... View more
05-11-2022
02:50 PM
|
0
|
1
|
282
|
POST
|
Our sysadmin was able to fix it. Here's the steps he sent me: I didn’t have to go through the process of actually un-federating. I was able to update the services URL from the Sharing API interface on portal, since it doesn’t affect anything previously published. 1) Log into the Sharing API as an Administrator through https://machine.domain.com:7443/arcgis/sharing/rest 2) In your account information page, there will be an Org ID property with a link to 0123456789ABCDEF. Click on that link 3) All the way at the bottom, click on Servers under the Child Resources section 4) Click on the Server ID link and then Update Server 5) Enter the new services URL and the existing Admin URL and click Update. You'll then need to go through everyone's content and update any URLs to any services that are not hosted services. I didn’t have to do for your server, nothing published prior to Portal install had the wrong interface. 1) Go into a users content in the Sharing API, (https://machine.domain.com:7443/arcgis/sharing/rest/content/users/<user>/items/ for example) 2) Select a non-hosted service and at the bottom, select Update Item 3) Enter the new URL in the URL parameter box You can use the Python API to traverse through each user and their content, find all non-hosted services and update the URLs if you want. You'll need to republish hosted services for the URL to update.
... View more
03-29-2022
06:33 AM
|
1
|
1
|
2196
|
POST
|
We are trying to create a new hosted feature layer, but are receiving the following error: Unable to load https://<url>/rest/admin/services/Hosted/FeatureServer/addToDefinition status: 404 If I try to publish from ArcGIS Pro, as well, the feature layer is not published (though no error is shown). What is intriguing is that URL https://<url>/rest/admin/ doesn't exist. Rather, we have https://<url>/arcgis/rest/ I am guessing there is a configuration problem somewhere. Any ideas?
... View more
03-23-2022
07:56 AM
|
0
|
5
|
2283
|
POST
|
My guess (and that is all it is) that is unfortunately true. My experience is having to completely log out and in again.
... View more
03-15-2022
09:26 AM
|
0
|
0
|
2093
|
POST
|
I appreciate your assistance on this. I see I still have a lot to do to completely wrap my head around Attribute Rules and Arcade.
... View more
02-03-2022
07:39 AM
|
0
|
0
|
769
|
POST
|
Greetings Attribute Rules community. Though a long-time GIS user, I am new to both Attribute Rules and Arcade. I have what I believe to be a fairly simply problem and hope someone can help. I have a colleague who would like me to develop a field map for her that includes a linear feature called transects. She then needs to derive the starting vertex X,Y, centroid X,Y, and ending vertex X,Y of the newly created feature. I figured that an attribute rule that automatically calculates it would be great. The centroid rule seemed pretty easy--Round(Centroid($feature).X, 6) and Round(Centroid($feature).Y, 6) to calculate the X and Y centroids, respectively. Hurray. Well, no. It works, but it appears to be calculating the centroid for the boundary geometry of the feature rather than the actual centroid of the linear feature (i.e. actually a point ON the line). Suggestions? As for the beginning and ending vertices X,Y, I am at a loss. I can use something like Round(Geometry($feature).Y, 6) to find the coordinate of a point, but how can I implement this for a vertex in a line or polygon? Lastly, and this is more philosophical, I suppose. Is there a way to calculate a spatial relationship with Arcade? (Again, being new to this, this may be a no brainer). For instance, if I plot a point that is within the geometry of a polygon, I would like to do some equivalent of a spatial join to assign the point attribute(s) from the polygon. Thanks in advance.
... View more
02-02-2022
03:24 PM
|
0
|
2
|
911
|
POST
|
You know, it is really embarrassing when the solution is something so simple that it could appear as a running joke on the IT Crowd. Have you tried turning it off and on! I actually completely quit the app multiple times, but never signing out and in again. All that fancy education for nothing!!! I jest, of course. I like easy solutions and like to laugh at myself. MUCH appreciated. That obviously worked.
... View more
01-28-2022
10:26 AM
|
0
|
0
|
2173
|
POST
|
Hello--I am new to Tracker and am trying to set it up. However, I am getting "Tracker is unavailable" in Field Maps. First, I enabled tracking in my Organization's AGOL: Next, I assigned Tracker to myself to ensure I had access to it: However, when I go into Field Maps, I get this: I am sure I am missing something really ridiculously easy, but here I am. Any guidance would be great. I am trying to setup a Field Map for a colleague and tracking is going to be an essential part of this. Many thanks. Todd
... View more
01-28-2022
10:00 AM
|
0
|
7
|
2201
|
POST
|
Thank you, Robert. I love it that you are listed as "MVP Esteemed Contributor." I can attest to this. Cheers.
... View more
01-24-2022
06:48 AM
|
0
|
1
|
2333
|
POST
|
As I continued to search for a solution to this issue, I came across an older post and a solution by @RobertScheitlin__GISP that does, more or less, what I want. However, it was written for 3.23. I am trying to get it to week with 4.22, though, because it will be part of a larger project that is otherwise functioning well. In a nutshell, I would like to use the search widget to perform a search and query a feature layer based on the results of this search. For instance, say I have a PLSS layer and when one enters an address or set of coordinates, the PLSS layer is queried at that search location and the pop-up returns the PLSS attributes associated with that location. I hope to solve this first, but to add a little more complexity to the issue, I am actually searching multiple sources. Searching by multiple layer sources works great when the appropriate search term is entered (e.g. township, range, and section) information, but I essentially want a reverse geocode type solution in which someone types an address or enters coordinates and the PLSS layer is queried at that location and those results are returned. At issue (among many other things) is I am not particularly savvy when it comes to JS. I can take others' code and modify it to my needs, but that is the extent of it--so I basically need a lot of handhold. Below is the code I have working that includes everything except the spatial query. The feature layers I am using in it are just place holders and are not the ones I will actually be using going forward (so the attributes that pop up are a bit nonsensical at the moment). <html>
<head>
<meta name="description" content="DevLav: Query a feature layer">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>PLSS Coordinate Calculator</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
.esri-view:fullscreen {
background-color: #fff;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.22/esri/css/main.css">
<script src="https://js.arcgis.com/4.22/"></script>
</head>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/widgets/CoordinateConversion",
"esri/layers/GroupLayer",
"esri/layers/FeatureLayer",
"esri/layers/MapImageLayer",
"esri/widgets/Home",
"esri/widgets/Search",
"esri/widgets/BasemapGallery",
"esri/widgets/LayerList",
"esri/widgets/Expand",
"esri/renderers/SimpleRenderer",
"esri/geometry/Extent",
"esri/geometry/SpatialReference",
"esri/tasks/support/Query",
"esri/tasks/QueryTask",
"esri/Graphic",
"esri/widgets/Fullscreen"
],
function(
Map,
MapView,
CoordinateConversion,
GroupLayer,
FeatureLayer,
MapImageLayer,
Home,
Search,
BasemapGallery,
LayerList,
Expand,
SimpleRenderer,
Extent,
SpatialReference,
Query,
QueryTask,
Graphic,
Fullscreen
) {
//map extent: Need this since no basemap; otherwise extent is pretty wonky
var bounds = new Extent({
"xmin":-103.5,
"ymin":33.0,
"xmax":-93.5,
"ymax":37.5,
"spatialReference":{"wkid":4326} //this is for the extent only; need to set map spatial reference in view.
});
// Oklahoma Counties Layer
var okcounties = new FeatureLayer({
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/ArcGISServer_Counties/FeatureServer",
title: "Oklahoma Counties",
});
var trtemplate = {
// autocasts as new PopupTemplate()
title: "<strong>{label2} Centroid</strong>:",
content: "DD Centroid: {label2}<br> Level II Ecoregion: {label2}<br> Level I Ecoregion: {label2}"
};
// Township/Range
var townships = new FeatureLayer({
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/PLSS/MapServer/0/",
outFields: ["*"],
title: "Township/Range"
//popupTemplate: template
});
// Sections
var sections = new FeatureLayer({
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/PLSS/MapServer/1/",
outFields: ["*"],
title: "Section"
//popupTemplate: template
});
// Create GroupLayer for PLSS data
var PLSS = new GroupLayer({
title: "PLSS Data",
visible: false,
visibilityMode: "independent",
layers: [townships, sections]
});
var map = new Map({
//basemap: "satellite",
layers: [PLSS, okcounties]
});
var view = new MapView({
container: "viewDiv",
map: map,
//center: [-98.762150, 35.287798],
//zoom: 8,
extent: bounds,
spatialReference: 3857 //spatial reference of map; different from the extent
});
//Home button
var homeBtn = new Home({
view: view
});
// Add the home button to the top left corner of the view
view.ui.add(homeBtn, "top-left");
// create a search widget
var searchWidget = new Search({
view: view,
sources: [{
layer: new FeatureLayer({ //Notice the property is called layer Not featureLayer new to 4.11
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/PLSS/MapServer/0/",
popupTemplate: trtemplate,
//{ // autocasts as new PopupTemplate()
//title: "{label2}",
// overwriteActions: true
//}
}),
searchFields: ["label2"],
displayField: "label2",
exactMatch: false,
outFields: ["label2"],
name: "Township/Range",
placeholder: "example: 12N 10W IM",
},
{
layer: new FeatureLayer({ //Notice the property is called layer Not featureLayer new to 4.11
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/PLSS/MapServer/1/",
popupTemplate: { // autocasts as new PopupTemplate()
title: "{str_label2}",
overwriteActions: true
}
}),
searchFields: ["str_label2"],
displayField: "str_label2",
exactMatch: false,
outFields: ["str_label2"],
name: "Section Township/Range",
placeholder: "example: Sec. 15 12N 10W IM",
},
{
layer: new FeatureLayer({ //Notice the property is called layer Not featureLayer new to 4.11
url: "https://obsgis.csa.ou.edu:6443/arcgis/rest/services/ONHI/ArcGISServer_Counties/FeatureServer/0",
popupTemplate: { // autocasts as new PopupTemplate()
title: "{name} County",
overwriteActions: true
}
}),
searchFields: ["name"],
displayField: "name",
exactMatch: false,
outFields: ["name"],
name: "Counties",
placeholder: "example: Adair",
}]
});
// Add the search widget to the top right corner of the view
view.ui.add(searchWidget, {
position: "top-right"
});
// Create a BasemapGallery widget instance and set
// its container to a div element
var basemapGallery = new BasemapGallery({
view: view,
container: document.createElement("div")
});
// Create an Expand instance for basemap gallery
var bgExpand = new Expand({
view: view,
expandTooltip: "Select basemap",
content: basemapGallery
});
// Add the expand instance to the ui
view.ui.add(bgExpand, "top-left");
// Add a legend instance to the panel of a
// ListItem in a LayerList instance
const layerList = new LayerList({
view: view,
listItemCreatedFunction: function(event) {
const item = event.item;
if (item.layer.type != "group")
{ // don't show legend twice
item.panel = {
content: "legend",
open: false
};
}
}
});
// Create an Expand instance for legend gallery
var lgExpand = new Expand({
view: view,
expandTooltip: "Expand Layer List",
content: layerList
});
// Add the expand instance to the ui
view.ui.add(lgExpand, "top-left");
fullscreen = new Fullscreen({
view: view
});
view.ui.add(fullscreen, "top-right");
//Coordinate Conversion Widget
const ccWidget = new CoordinateConversion({
view: view
});
view.ui.add(ccWidget, "bottom-left");
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
01-21-2022
01:56 PM
|
0
|
0
|
2352
|
Title | Kudos | Posted |
---|---|---|
1 | 05-12-2022 06:53 AM | |
1 | 01-18-2022 09:30 AM | |
1 | 01-14-2022 06:58 PM | |
6 | 04-27-2023 02:46 PM | |
1 | 04-05-2023 12:45 PM |
Online Status |
Offline
|
Date Last Visited |
12-01-2023
02:11 PM
|