POST
|
Hi James, Myself and Nick has done some more testing and have isolated the problem explained above. As soon as we add a value into Allow Origins (CORS) in portal limiting the applications domains that can access our Enterprise deployment the error outlined above occurs. If we remove all values from Allow origins its works. I understand that once you a value to the Allow Origins interface it goes from allowing all to only that domain so there must be a domain that is called via the S123 feature report creation that is not obvious to us. The web map that the report fails on uses an ESRI basemap as well as a service from our Enterprise site. I have tried adding the Survey123 website as well as the ESRI basemaps domain but that doesn't help. It would seem there is a domain that is called as part of the Survey123 feature report creation that needs to be added to the Allow origins. Can you assist us with confirming what that domain is? Thanks Cameron
... View more
12-02-2020
09:58 AM
|
0
|
1
|
2959
|
POST
|
Just to reiterate what Nick said the ArcGIS Enterprise in question is exposed publicly to the internet and has a CA signed cert.
... View more
10-29-2020
12:36 AM
|
0
|
0
|
2993
|
POST
|
Hi, To publish from Desktop using Integrated Windows Authentication, please check if: ArcGIS Server security has been configured to use Windows users\roles and Web Tier authentication. The ArcGIS Web Adaptor has been configured to allow administrative access to the site. IIS has "Anonymous" authentication disabled and "Windows" authentication enabled. In the ArcGIS Desktop "Add ArcGIS Server" wizard: The "Server URL" parameter has http://iishostname/arcgis and not http://arcgishost:6080/arcgis. The "Authentication" section has the credentials of a Windows user(not the Primary Site Administrator) who is a member of a role with Publisher\Administrator privileges. Please use http://arcgishost:6080/arcgis/admin/security/users/getPrivilege to confirm the user's privilege If you need instructions on configuring ArcGIS Server for Integrated Windows Authentication, please see the tutorial Securing web services with Integrated Windows Authentication Regards, Raj Hi Raj, Thanks for your post on resolving the issue with not being able to publish using Windows Authentication. Can you please ensure that your check list makes it in to the ArcGIS Server documentation? I spent a whole day trying to work out what was going wrong and found nothing in the documentation. It was only after finding your post that I was able to resolve this problem. It all makes sense that you need to allow administrative access through the web adaptor and that you have to use the IIShostname and not the :6080 instance but this is not in the documentation. On the web adaptor page should it not say something like "if you are using Windows Authentication please enable administrative access to your site through the Web Adaptor" This would save people a lot of time in the future! Cheers Cameron
... View more
11-21-2012
10:17 AM
|
0
|
0
|
1168
|
POST
|
Hi Kent, Take a look at the following link about updating statistics. You should update statistics before and after a compress operation, after you add or remove topology rules, and after you have finished importing, loading, or copying data into an ArcSDE geodatabase. Here is a link about rebuilding indexes. If you are using SQL Server Enterprise edition, refer to the following KB article on how to rebuild indexes. Hi Jake, I noticed that you referred to the KB article http://support.esri.com/en/knowledgebase/techarticles/detail/24518 regarding rebuilding and analysing data. Is it best to use the SQL script in this KB or use the Analyze tool in Toolbox? It looks like they do the same thing but the SQL script seems more user friendly and easier to administer as it automatically will analyze and index all tables associated with the data owner. If I were to use the analyze tool say through model builder then I would have to add each feature class in and then update it each time I add a new feature class to the geodatabase. Looking at 10.1 this tool seems to have been improved to automatically do all the feature classes and tables etc but we are still at 9.3. Is that a fair assessment? Stay with the SQL script until we move to 10.1? Thanks Cameron
... View more
07-18-2012
08:19 AM
|
0
|
0
|
437
|
POST
|
Hi Derek, hmmm this is rather embarrassing but it was the spatial reference code that was wrong ie 27700 rather than 2770! One more quick question, do you have any idea why the variable uprn returns as undefined? I am trying to get the value of the field "Polling_Station_UPRN" so that I can use it as an input in another application but for some reason the value comes back as undefined outside of the function it is called in. I have created it as a global variable but it's still undefined. Any ideas? Thanks Cameron <script type="text/javascript">$.loadSite('http://cms.esriuk.com/TowerHamlets/', 'ab066578-6325-495c-ac12-da7a9696ac02', '#mygaz', configLoaded);
dojo.require("esri.tasks.query");
dojo.require("esri.tasks.geometry");
dojo.require("dojo.parser");
dojo.require("esri.map");
var queryTask;
var uprn;
function configLoaded(config /* site config */) {
config = config;
$("#lhDiv").bind({
"locatorhub.pickList": function (evt, locatorhub, picklist) {
// added to fix bug in release 6 (SP5) of LVF. Will be fixed in release 7
$(".jquery-locatorhub-picklistrow").removeAttr("href");
$(".jquery-locatorhub-results").css("display", "block");
},
"locatorhub.searchDialogLocationFound": function (evt, locatorhub, match) {
// Insert what you want to do with an address match here!!!!
AddressFound(match)
},
"locatorhub.matchedLocationClick": function (evt, locatorhub, match) {
// Insert what you want to do with an address match here!!!!
AddressFound(match);
},
"locatorhub.addressSearchError": function () {
alert("Address Search error");
},
"locatorhub.error": function (evt, error) {
alert("locator hub error")
}
})
}
function AddressFound(match) {
x = match.Point.x;
y = match.Point.y;
sr = match.Point.spatialReference.wkid; ;
queryTask = new esri.tasks.QueryTask("http://thgistest01/ArcGIS/rest/services/PollingDistrict/MapServer/1");
//Can listen for onComplete event to process results or can use the callback option in the queryTask.execute method.
//dojo.connect(queryTask, "onComplete", showResults);
//build query filter
query = new esri.tasks.Query();
var XY = new esri.geometry.Point (x,y, new esri.SpatialReference({ wkid: 27700 }));
query.geometry = XY;
query.outFields = ["Polling_Station_UPRN"];
//query.text = "Bow East 2";
queryTask.execute(query);
dojo.connect(queryTask, "onComplete", function (myFeatureSet) {
var s = "";
for (var i=0, il=myFeatureSet.features.length; i<il; i++) {
var featureAttributes = myFeatureSet.features.attributes;
for (att in featureAttributes) {
s = s + "<strong>" + att + ": </strong>" +
featureAttributes[att] + "<br />";
}
}
dojo.byId("info").innerHTML = s;
uprn = featureAttributes[att];
}
);
alert (uprn)
}
... View more
03-02-2012
03:04 AM
|
0
|
0
|
716
|
POST
|
Build an esri.geometry.Point() from your query string parameters and set that as query.geometry. And you probably don't need returnGeometry = true if you're not using a map. Hi Derek, I have done as you suggested and set the xy values as the query.geometry but its not working. query = new esri.tasks.Query();
var XY = new esri.geometry.Point (535487,182880, new esri.SpatialReference({ wkid: 2770 }));
query.geometry = XY;
query.outFields = ["Polling_Station_UPRN", "District_Code"];
queryTask.execute(query,showResults); When I look at the call to the REST service I can see the XY are all screwed up. I am sure this is because I am not declaring the point to the query.geometry correctly. Can you help me with this? Sorry my Javascript skills are non-existent. Thanks [HTML]http://thgistest01/ArcGIS/rest/services/PollingDistrict/MapServer/1/query?f=json&where=&returnGeometry=false&spatialRel=esriSpatialRelIntersects&geometry={%22x%22%3A535487%2C%22y%22%3A182880%2C%22spatialReference%22%3A{%22wkid%22%3A2770}}&geometryType=esriGeometryPoint&inSR=2770&outFields=Polling_Station_UPRN%2CDistrict_Code&outSR=2770&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback[/HTML]
... View more
02-28-2012
04:16 AM
|
0
|
0
|
716
|
POST
|
Hi, In the REST query operation you are able to filter the geometry to a point so that the query only takes place at that location. I want to be able to do the same with the javascript api so that I can return the results of a field of a polygon at a specific point. I don't want to use a map for this but just return the text of the field. I have tried to use this example and modify it but without any success.http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_nomap.html This is probably due in large part to my lack of javascript knowledge! The plan is to pass in the XY location via url into the queryfilter which I believe I have working its just the actual query task that I am unsure about. So I have taken the same code as the 'no map' example above and just changed the query part (see below). I am sure I need to do something more with the geometry point but I can't find any examples in code. Any help with this would be much appreciated! Thanks Cameron //build query task myQueryTask = new esri.tasks.QueryTask("http://thgistest01/ArcGIS/rest/services/PollingDistrict/MapServer/1"); //Can listen for onComplete event to process results or can use the callback option in the queryTask.execute method. //dojo.connect(queryTask, "onComplete", showResults); //build query filter myQuery = new esri.tasks.Query(); new esri.geometry.Point ([x,y], new esri.SpatialReference({ wkid: sr })); mQuery.returnGeometry = "true"; myQuery.outFields = ["Polling_Station_UPRN", "District_Code"]; myQueryTask.execute(myQuery,showResults);
... View more
02-27-2012
07:00 AM
|
0
|
5
|
3402
|