POST
|
Hi, I had the same problem with ExB developers edition 1.13. I could not make it work properly on windows but running Experience builder on Ubuntu (in a virtual machine) worked for me.
... View more
12-05-2023
06:07 AM
|
0
|
0
|
2461
|
POST
|
Hello, I am trying to update a Hosted Feature Layer View with a renderer containing a multipart color ramp. I used a color ramp example from the docs docs but could not make it work: renderer_definition_multipart = {
"type": "classBreaksDef",
"classificationField": field,
"classificationMethod": "esriClassifyQuantile",
"breakCount": 5,
"colorRamp": {
"type": "multipart",
"colorRamps": [
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [255,0,0,255],
"toColor": [255,255,0,255],
"start": 0,
"stop": 33.3
},
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [0,255,255,255],
"toColor": [0,0,255,255],
"start": 33.3,
"stop": 100
}
]
}
}
# Update renderer
renderer = view.layers[0].generate_renderer(renderer_definition_multipart)
update_drawing_info = {"drawingInfo": {"renderer": renderer}}
view.layers[0].manager.update_definition(update_drawing_info) The error message I got is shown below. Not sure what is the problem, as I am not missing "algorithm" Any Idea what I am doing wrong?
... View more
03-06-2023
04:48 AM
|
0
|
0
|
454
|
POST
|
Hi Teresa, connecting to the server as admin worked for me using https://<servername>.<domain>.com:<portnumber>/arcgis/admin
... View more
01-16-2023
05:04 AM
|
0
|
0
|
1037
|
POST
|
Thank you for the quick reply. UI has changed quiet a bit indeed. Are you referring to this? Unfortunately, it seems I can only generate the report for previous months.
... View more
07-13-2021
03:01 AM
|
0
|
0
|
1337
|
POST
|
Dear all, In ArcGIS Enterprise it is possible to see errors which occur on the server with ArcGIS Server Manager. This can be very helpful when debugging failed publishing jobs. Is it also possible to access such error logs on ArcGIS Online?
... View more
07-13-2021
01:44 AM
|
0
|
2
|
1365
|
POST
|
I figured out that this is possible to get the number of layers using the REST api and then add each layer individually. Please let me know in case there is a more direct way to achieve this. // get number of layers in service
let url = "...?f=pjson"; // Feature Service url from portal page
esriRequest(url, {
responseType: "json"
}).then(function(response){
let responseJSON = response.data;
let numberOfLayers = responseJSON.layers.length;
// load each service layer
for (let i = 0; i < numberOfLayers; i++) {
layer = new FeatureLayer({
portalItem: {
id: "..."
},
layerId: i
});
map.add(layer);
}
});
... View more
06-23-2021
06:07 AM
|
1
|
0
|
1669
|
POST
|
Hello there I want to load all layers of a Hosted Feature service using the JS Api 4. It is possible to add a single layer to the map like this: layer = new FeatureLayer({
portalItem: {
id: portalItemId
}
layerId: 0
});
map.add(layer); Is there a way to list, or count all layers within a Hosted Feature Service (using JS API 4), so each of them could be added using new FeatureLayer? Or is there a direct way to add all layers of a Hosted Feature Service to the map? Kind Regards Lukas
... View more
06-22-2021
07:51 AM
|
1
|
1
|
1684
|
POST
|
Thanks for the clarification. Unfortunately changing capabilities is not possible as the server is not mine. We'll have to wait until WMS is implemented in API 4 then
... View more
05-20-2021
06:38 AM
|
0
|
0
|
1893
|
POST
|
Hi, so is it possible to load regular WFS services with the OGCFeatureLayer class? What I am trying to do is load a WFS such as this one with API 4. I did not manage to set the parameters right to make it work. I did not find a working example with a generic WFS service, but a post with the same issue.
... View more
05-19-2021
05:49 AM
|
0
|
2
|
1905
|
POST
|
Hi Bjorn, Thank you for having a look at the service, I see now what the problem is. As I do not have access to the geoserver, I created the following workaround using RequestInterceptor : This changes the request url pointing to the incorrect geoserver url to a correct url before sending the request. require([
"esri/Map",
"esri/views/MapView",
"esri/layers/WMSLayer",
"esri/Basemap",
"esri/config"
], function (Map, MapView, WMSLayer, Basemap, esriConfig) {
...
var host = "https://developers.arcgis.com/"; // in case tested in the sandbox.
var incorrectGeoserverUrl = "https://developers.arcgis.com/geoserver";
var correctGeoserverUrl = "https://data.opendevelopmentmekong.net/geoserver";
esriConfig.request.interceptors.push({
urls: host,
// change request before it is sent
before: function(params) {
if (params.url.includes(incorrectGeoserverUrl)) {
params.url = params.url.replace(incorrectGeoserverUrl, correctGeoserverUrl);
}
}
});
... View more
05-19-2021
01:28 AM
|
0
|
0
|
1480
|
POST
|
Dear all, I tried to load this third party WMS (https://data.opendevelopmentmekong.net/geoserver/ODMekong/lao_admbnda_adm1_ngd_20191112/wms) with the following code: (find the full code at bottom of post) ...
let wmsLayer = new WMSLayer({
url: "https://data.opendevelopmentmekong.net/geoserver/ODMekong/lao_admbnda_adm1_ngd_20191112/wms"
});
map.add(wmsLayer); The layer does not load and requests are answered with 404. In the networks tab I see that the WMS' url is changed, pointing now to https://developers.arcgis.com/ instead of the url where the geoserver is located (The code was ran from the sandbox. It seems it always takes the url of the current site). Would I manually replace https://developers.arcgis.com from this request with the proper url where the geoserver is located (https://data.opendevelopmentmekong.net) I would get the right response. The problem occurs only for some WMS, it works for example for https://ahocevar.com/geoserver/wms Is it possible to load the former service with ESRI API 4 so that it points to the correct url? Or is there anything else I could do to fix the issue? I would be very thankful for support or hints. (The code, running from JSAPI4 Sandbox) <html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<title>WMSLayer - 4.19</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.19/esri/themes/light/main.css"
/>
<script src="https://js.arcgis.com/4.19/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/WMSLayer",
"esri/Basemap"
], function (Map, MapView, WMSLayer, Basemap) {
let wmsLayer = new WMSLayer({
title: "WMS Layer",
url:
"https://data.opendevelopmentmekong.net/geoserver/ODMekong/lao_admbnda_adm1_ngd_20191112/wms"
});
var map = new Map({
basemap: "streets-vector"
});
var mapView = new MapView({
map: map,
container: "viewDiv"
});
map.add(wmsLayer);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
05-18-2021
06:09 AM
|
0
|
2
|
1509
|
POST
|
I was assuming that I already had an admin connection when connecting to the Server with <ServerUrl>/admin. In ArcGIS Pro, the service connection type has to be changed to "Administrator Connection" after creation (right click on server connection in the catalogue and click Properties).
... View more
02-12-2021
06:47 AM
|
4
|
2
|
1745
|
POST
|
Hi, According to this video, it should be possible to publish Geoprocessing Services form ArcGIS Pro to a standalone ArcGIS Server. The problem is that I do not see the option "Geoprocessing Service" which should be available (I do have admin rights). I am using ArcGIS Pro 2.7 and ArcGIS Server 10.8.1 (the same problem also occurred with Pro 2.6). Does anyone have an idea what could cause the issue? Maybe additional extensions need to be installed to make it work? I would be very grateful for suggestions. Lukas
... View more
02-10-2021
01:47 AM
|
0
|
3
|
1813
|
POST
|
Apparently, arcpy.env.packageWorkspace is not the ideal way to define tool output folders, I used arcpy.env.scratchFolder instead: import arcpy
import os
input_from_client = str(arcpy.GetParameterAsText(0))
file_path = os.path.join(arcpy.env.scratchFolder, "test.txt")
text_file = open(file_path,"w")
text_file.write(input_from_client)
text_file.close()
arcpy.SetParameter(1, text_file.name)
That does not fix the 001369 Error though. The solution for me was 1. Create a new Project 2. Create a new Script in the Project's toolbox which uses the above script. Then, it was possible to publish the service successfully
... View more
10-19-2020
01:05 AM
|
1
|
0
|
1630
|
POST
|
Hello there Normally, it should be possible to create a geoprocessing-service which creates a text file with the script below: import os
# input variable of type String
input_from_client = str(arcpy.GetParameterAsText(0))
file_path = os.path.join(arcpy.env.packageWorkspace, "test.txt")
text_file = open(file_path,"w")
text_file.write(input_from_client)
text_file.close()
# Output variable of type file
arcpy.SetParameter(1, text_file.name) A service created with the above code can be published without problems to ArcGIS Server 10.6.1 But when I try to publish the same service on a Machine with ArcGIS Server 10.7.1, I get the following error(s): WARNING 15 Oct 2020 14:51:50 Thumbnail is not avaliable on this layer Conservation_forest_province Rest
SEVERE 15 Oct 2020 14:51:43 Error executing tool. PublishServiceDefinition Job ID: j323c6e9585524bc7973f7b1cd3f948f8 : ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed. Failed to execute (Publish Service Definition). System/PublishingTools.GPServer
SEVERE 15 Oct 2020 14:51:43 Delegate job failed. System/PublishingTools.GPServer
SEVERE 15 Oct 2020 14:51:41 Error executing tool. PublishServiceDefinition Job ID: j267b052ffdcd47e5bcda9064e9e151df : ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). System/PublishingToolsEx.GPServer
SEVERE 15 Oct 2020 14:51:41 Failed to create the service. System/PublishingToolsEx.GPServer
SEVERE 15 Oct 2020 14:51:41 Failed generating the service definition name mapping. System/PublishingToolsEx.GPServer
SEVERE 15 Oct 2020 14:51:41 Failed to add the dbMapping object. System/PublishingToolsEx.GPServer
SEVERE 15 Oct 2020 14:51:41 Failed to add the dsMapping object. System/PublishingToolsEx.GPServer
SEVERE 15 Oct 2020 14:51:41 Invalid manifest. Unable to find dataset in extracted geodatabase. System/PublishingToolsEx.GPServer
WARNING 15 Oct 2020 14:51:29 Metadata is not avaliable on this layer Conservation_forest_province Rest Any idea what I can try to make it work on the 10.7.1 Server as well? Is it possible that I have to define the file path differently? I would be very thankful for help or advise.
... View more
10-15-2020
06:25 AM
|
0
|
1
|
1670
|
Title | Kudos | Posted |
---|---|---|
1 | 06-22-2021 07:51 AM | |
1 | 10-19-2020 01:05 AM | |
4 | 02-12-2021 06:47 AM | |
1 | 06-23-2021 06:07 AM | |
1 | 04-15-2020 07:45 AM |
Online Status |
Offline
|
Date Last Visited |
06-04-2024
08:09 AM
|