POST
|
This behavior can be caused when using Portal if the sever is sending multiple Access-Control-Allow-Origin headers when the client makes a POST request to the oath2 endpoint. This can be hard to diagnose, because when the error occurs the client is immediately redirected to the Portal domain selection page. To get around this, open the console on your ( modern, no Internet Explorer! ) browser by pressing CTRL + Shfit + i and then toggle 'Persist logs' in the console setting. You will now see every error and request that occurs while the tab is open. What you would be looking for is something like this: Reason: Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed If this is the case, find your Portal site's web.config file, which should be in C:\inetpub\wwwroot if you are using the IIS default, and look for this group of tags: <httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="my.webappbuilder.domain:3344" />
</customHeaders>
</httpProtocol> Backup your .config file by copy-pasting the file and then rename it to old.web.config or something similar. After doing this, delete the code block from your file and save. Retry logging in to Portal via Web Appbuilder. You may have to refresh the site in IIS. You should also check to see if the CORS module is installed on your IIS server. This module inserts a <cors> tag that handles CORS header settings, and can create conflicts if Portal has been set up to supply custom headers like the one above.
... View more
12-18-2019
09:55 AM
|
0
|
0
|
1311
|
POST
|
Hey there, I'm trying to get a simple map up displaying a few city locations built from coordinate sets. The map seems to be working fine, and when looking at console logs it looks like all Point and Graphic objects are being created successfully, but when I give .applyEdits a list of graphics objects, nothing gets added. I'm using code modified from this example: ArcGIS API for JavaScript Sandbox. As far as I can tell, the reason I'm not seeing any features on the map is because the featureLayer._graphicsVal property is not getting populated. Here is a screen shot from the example site showing console.log(featureLayer) output: And this is what I get with my code: Does anyone have an idea of where I'm making an error? The .js file for my page: require([
"esri/map",
"esri/layers/FeatureLayer",
"esri/geometry/Point",
"esri/graphic",
"dojo/_base/array",
"dojo/domReady!"
], function(
Map,
FeatureLayer,
Point,
Graphic,
array) {
let map = new Map(document.getElementById("map"), {
center: [-85.56, 38.22],
zoom: 8,
basemap: "topo"
});
let featureCollection = {
"layerDefinition" : null,
"featureSet": {
"features": [],
"geometryType" : "esriGeometryPoint"
}
};
featureCollection.layerDefinition = {
"geometryType" : "esriGeometryPoint",
"objectIdField" : "ObjectID",
"drawingInfo" : {
"renderer" : {
"type": "simple",
"symbol" : {
"type" : "esriSMS", //Simple Marker Symbol
"style" : "esriSMSDiamond",
"color" : [212, 113, 21], //RGB
"size" : 20,
"angle" : 0,
"xoffset" : 0,
"yoffset" : 0,
}
},
"fields" : [{
"name" : "ObjectID",
"alias" : "ObjectID",
"type" : "esriFieldTypeOID"
}, {
"name" : "City",
"alias" : "City",
"type" : "esriFieldTypeString"
}]
}
};
featureLayer = new FeatureLayer(featureCollection, {
"id": 'cityLayer'
});
map.addLayers([featureLayer]);
let cities =
[{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-87.53, 37.98]
},
"properties": {
"name": "Evansville"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-85.74, 38.23]
},
"properties": {
"name": "Louisville"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-84.87, 38.2]
},
"properties": {
"name": "Frankfort"
}
}];
let features = [];
array.forEach(cities, function(city){
let attr = {};
attr.name = city.properties.name;
let geometry = new Point(city.geometry.coordinates);
let graphic = new Graphic(geometry);
graphic.setAttributes(attr);
console.log(graphic);
features.push(graphic);
});
featureLayer.applyEdits(features);
console.log(featureLayer);
});
... View more
09-24-2019
09:45 AM
|
0
|
2
|
1907
|
POST
|
Howdy, Will the template for Survey123 in AppStudio be updated past 3.3? My company is interested in developing our own application based on it, and it would be nice to have some of the bug fixes included in later versions.
... View more
08-07-2019
01:45 PM
|
0
|
1
|
379
|
POST
|
Add in some text between the tags and see what happens, <a href="https://www.esri.com">ESRI</a> for instance.
... View more
03-22-2019
08:43 AM
|
2
|
0
|
257
|
POST
|
This is a major issue for us, and just adding more storage as our database grows isn't an option. You'd think that if ESRI is locking us into using their datastore to manage web services and content that we would be provided with tools to do basic database maintenance and admin tasks.
... View more
02-28-2019
09:19 AM
|
4
|
0
|
1569
|
BLOG
|
For this to work with ArcGIS Enterprise, would you also have to enable archiving on the feature class in the EGDB?
... View more
07-17-2018
10:54 AM
|
1
|
0
|
19191
|
POST
|
We were able to publish a hosted feature layer from a FGDB that was uploaded to Portal.
... View more
03-28-2018
09:49 AM
|
0
|
2
|
7928
|
POST
|
Hello James, I just tried to submit a default template form that only contains one text question and got the same error, no time fields were present in the form. We just looked over our permission settings for my account and turned on every option that looked relevant for content creation. I'll give the beta version a shot, thank you.
... View more
03-27-2018
02:47 PM
|
0
|
1
|
7928
|
POST
|
I'm getting an Error getting result parameter message when attempting to publish new surveys to Portal. I can modify surveys that have already been published, but not create new ones. A folder is created as normal, but the form is absent and the feature layer is corrupt. We just upgraded ArcServer and Portal 10.6. Any insights as to what may be causing the issue would be very helpful, thank you.
... View more
03-27-2018
02:25 PM
|
1
|
31
|
17460
|
Title | Kudos | Posted |
---|---|---|
1 | 03-27-2018 02:25 PM | |
1 | 09-24-2019 01:03 PM | |
2 | 03-22-2019 08:43 AM | |
4 | 02-28-2019 09:19 AM | |
1 | 07-17-2018 10:54 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|