|
POST
|
Agreed. It would be more helpful if the error message indicated that this was a license issue. Even more helpful would be for the error message to link to the page that you referenced.
... View more
04-10-2017
07:01 AM
|
0
|
0
|
4471
|
|
POST
|
OK, so, I changed the data source from an ECW to a SID, and it worked. Problems with ECW format?
... View more
04-05-2017
03:46 PM
|
0
|
2
|
4471
|
|
POST
|
Using the ArcGIS Enterprise Cloud Builder for Microsoft Azure, I've deployed an instance of ArcGIS Server 10.5 to Azure. Using ArcMap, I've created an image service and deployed it to this server. I got an error when trying to publish the service, but the service appears in the Service Manager. When I try to start the service, I get the error: This is, in fact, the correct path to the data, and the ArcGIS Run As Account has access to this folder. The folder containing the input data is also registered with the server, and has been validated? So why is ArcGIS Server telling me that the input data source path is invalid? Additional information: here's what's in the logs:
... View more
04-05-2017
10:57 AM
|
0
|
5
|
6120
|
|
POST
|
This question is similar to the one in this other thread. I'm trying to search for all items that are shared with a user via groups, including those public items that have been shared with a group. More details: I've created a group within my organization, and I've shared the Esri Terrain Imagery Layer with that group. I'd like to be able to include this layer in a search on shared items. I've tried using the query parameters: access:shared but the items isn't included in the results (presumably because it's already public?). I suppose that I could query all of the groups that the user belongs to, then search for all the items in each of these groups, but I'm hoping that there's a most direct way to do this. Any ideas?
... View more
03-06-2017
08:12 AM
|
0
|
0
|
1360
|
|
POST
|
I've written a web application that submits a job to the ArcGIS Online ExtractData task at analysis7.arcgis.com via the REST API. Until yesterday afternoon, the task completed, the resulting ZIP file was placed in my root ArcGIS Online folder, and my application downloaded the ZIP file when the job's status changed to esriJobSucceeded. Now, however, when I submit the job, the status remains on esriSubmitted. I can verify that none of the relevant code has changed. Is there an issue with the ArcGIS Online analysis services, or my ArcGIS Online account? Is something stuck in a queue that I need to clear out?
... View more
02-10-2017
08:56 AM
|
1
|
0
|
1198
|
|
POST
|
Hi Jordan, No, that's not what's happening. The response to submitJob is a redirect, which I believe is what is causing the CORS issue.
... View more
02-08-2017
08:58 AM
|
0
|
0
|
1539
|
|
POST
|
Using the ArcGIS for JavaScript API 3.19, I'm submitting a job to the ExtractData geoprocessing service at: https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/ExtractData/submitJob The job is submitted and run successfully, and the output is created in my ArcGIS Online root folder. However, I can't figure out how to get the response back from the server. When I submit the job, the JavaScript console reports 2 errors: SEC7127: Redirect was blocked for CORS request. SCRIPT7002: XMLHttpRequest: Network Error 0x800c0014, A redirection problem occurred. This sort of makes sense to me, because the server issues a redirect to the job page. I can see that the server responds with a status of 303, and includes the URL to the job in the response. However, the code that I have to handle the response (see below) is never called. var url = _extractDataURL +
"?inputLayers=" + inputLayers +
"&extent=" + extent +
"&clip=" + clip +
"&dataFormat=" + dataFormat +
"&outputName=" + outputName +
"&context=" + context +
"&f=" + f +
"&token=" + IdentityManager.credentials[0].token;
var xmlHTTPRequest = new XMLHttpRequest();
xmlHTTPRequest.onreadystatechange = function () {
if (xmlHTTPRequest.readyState == 4 && xmlHTTPRequest.status == 200) {
console.log(this.responseText);
}
}
xmlHTTPRequest.onload = function () {
console.log(this.responseText);
}
xmlHTTPRequest.open("GET", url, true);
xmlHTTPRequest.send(); How can I configure things so that the redirect (the correct response) doesn't cause the CORS error, and so that I can handle the response and get the URL to the job?
... View more
02-07-2017
08:10 AM
|
0
|
2
|
4250
|
|
POST
|
Hello, In ArcGIS Online, you can export features from a hosted feature service to a zipped shapefile from the service's Overview page: In addition, I'd like to clip the features using a user-defined extent. I'm using the JavaScript API (v. 3.19). I've seen a number of pieces that seem to have at least some of this functionality, including: the ExtractData dijit the ArcGIS REST API an old SDK sample using a GP service However, none of these samples put it all together. Is this even possible to do in JavaScript? Do I need to construct calls to the REST API? What's the URL of the GP service that I can use as an AGOL subscriber to perform the extraction?
... View more
01-30-2017
12:42 PM
|
0
|
0
|
998
|
|
POST
|
HI Richard, After looking at the ArcGIS JavaScript API documentation here: Writing a Class | Guide | ArcGIS API for JavaScript 3.19 and the accompanying example here: http://servicesbeta.esri.com/demos/using-classes-with-javascript/seatgeek-search/ I used the paths property of dojo config, and did not include an explicit reference to SearchExtent: <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<script>
var dojoConfig = {
paths: { js: location.pathname.replace(/\/[^/]+$/, "") + "/js" }
};
</script>
<script src="https://js.arcgis.com/3.19"></script>
<script>
require([
"js/SearchExtent",
"dojo/domReady!"
], function (SearchExtent) {
console.log("...");
});
</script>
</head>
<body>
</body>
</html> This seems to load everything correctly. Thanks, Jon.
... View more
01-23-2017
09:39 AM
|
0
|
0
|
6978
|
|
POST
|
Hi Robert, Thanks for your response. When I place the reference to the ArcGIS JavaScript API before the dojo configuration, like this: <html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<script src="https://js.arcgis.com/3.19"></script>
<script>
var dojoConfig = {
parseOnLoad: true,
packages: [{
"name": "SearchExtent",
"location": location.pathname.replace(/\/[^/]+$/, "") + '/js'
}]
};
</script>
<script src="js/SearchExtent.js"></script> then dojo appears to be trying to get SearchExtent from js.arcgis.com. However, when I place the reference to the JavaScript API after the dojo configuration, dojo appears to be trying get everything, including the JavaScript and ArcGIS modules from localhost.
... View more
01-23-2017
09:18 AM
|
0
|
1
|
6978
|
|
POST
|
I have an HTML page that uses the ArcGIS JavaScript API 3.19. I've also created a custom module which includes my own code. The files are organized as follows: index.html /js SearchExtent.js In my HTML file, I'm referencing both the ArcGIS JavaScript API and my custom JavaScript file as follows: <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<script src="https://js.arcgis.com/3.19/init.js"></script>
<script src="js/SearchExtent.js"></script>
<script>
require([
"js/SearchExtent",
... When I load the web page, I'm getting a 404 error (reported in the console) that indicates that the following resource can't be found: https://js.arcgis.com/3.19/js/SearchExtent.js It appears as though the dojo loader is looking for my custom JavaScript file on js.arcgis.com. I've been led to believe that this is an issue with the dojo configuration. When I attempt to configure dojo as per the dojo toolkit documentation to load both CDN and custom modules, like so: <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<script data-dojo-config="async: 1, dojoBlankHtmlUrl: '/blank.html',
packages: [ {
name: 'custom',
location: location.pathname.replace(/\/[^/]+$/, '') + '/js/custom'
} ]"
src="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js"></script>
<script src="https://js.arcgis.com/3.19/init.js"></script>
<script src="js/SearchExtent.js"></script>
<script>
require([
"custom/SearchExtent",
"dojo/domReady!"
], function (SearchExtent) {
console.log("...");
});
</script>
</head>
<body>
</body>
</html> The browser looks to be trying to load the ArcGIS JavaScript API from the Google CDN. What's the correct way to configure dojo to use the ArcGIS JavaScript API and custom modules?
... View more
01-23-2017
08:53 AM
|
0
|
6
|
12098
|
|
POST
|
I've created a simple web site that asks a user to log in to ArcGIS Online, using the following code: <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css" />
<script src="https://js.arcgis.com/3.19/"></script>
<script>
require([
"esri/arcgis/OAuthInfo",
"esri/IdentityManager"
], function (OAuthInfo, esriId) {
var info = new OAuthInfo({
appId: "ycS0y2RsQMqf22mG",
popup: false
});
esriId.registerOAuthInfos([info]);
esriId.checkSignInStatus(info.portalUrl + "/sharing").then(
function () {
}
).otherwise(
function () {
esriId.getCredential(info.portalUrl + "/sharing");
});
});
</script>
</head>
<body>
</body>
</html> After IdentityManager.getCredential() is called on line 24, the Visual Studio debugger exits with errors: The program '[2224] iexplore.exe' has exited with code 0 (0x0).
The program '[10128] iisexpress.exe' has exited with code 0 (0x0). The application is still running in Internet Explorer, however. Has anyone else experienced this, and is there a way to work around it?
... View more
01-21-2017
01:47 PM
|
0
|
0
|
1467
|
|
POST
|
Hi Undral, I'm using the 3.19 version of the JavaScript API. I was looking at the documentation here: Portal | API Reference | ArcGIS API for JavaScript 3.19 This documentation doesn't indicate any reference to the bbox parameter. But, as you suggested, I tried adding a bbox parameter to my query parameters, and it worked! Strange that this isn't included in the JavaScript API documentation. Thanks!
... View more
01-20-2017
02:03 PM
|
0
|
0
|
1196
|
|
POST
|
Hi Katie, I'm publishing from ArcMap. I've set the extent of the data frame to be the extent of the feature layer. However, when I publish the map as a service, the extent of the hosted feature layer is the global extent. I've also tried setting a fixed extent for the data frame, to no avail. Thanks, Jon.
... View more
01-17-2017
11:36 AM
|
0
|
0
|
3435
|
|
POST
|
Portal.queryItems(queryParams?) can be used to query the portal for items. However, there doesn't appear to be a a way to query for items within a specific search geometry (such as within a map extent). The PortalItems that are returned can be examined to determine if their extents intersect the search geometry (requiring an additional call to the GeometryService). This seems like something that should be possible, as evidenced by the fact that you can do it from within the ArcGIS Online map viewer. Is it possible?
... View more
01-17-2017
09:11 AM
|
0
|
2
|
2139
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-19-2013 08:18 AM | |
| 1 | 08-13-2015 06:54 AM | |
| 3 | 01-17-2017 09:02 AM | |
| 1 | 03-26-2019 04:52 AM | |
| 1 | 04-08-2015 12:48 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-10-2020
03:10 PM
|