|
POST
|
Turned out I had med output parameter configured wrong, it should be File and not DataFile that I used. Now my geoprocessing task kind of work. But it gives a path to disk instead of a valid URL, which makes it useless.
... View more
04-21-2021
06:53 AM
|
0
|
1
|
7120
|
|
POST
|
I had the line arcpy.env.workspace = arcpy.env.scratchFolder in the beginning of my code, which caused the error. I don't have to set the workspace since every output is specified to in_memory except the last export to dwg which is supposed to write the file to a default scratchFolder. I removed that line of code and don't get any errors. How ever there is still something wrong with my output, there is no dwg-file created. I looked at my old working geoprocessing task in the rest service director and can see that I have one required input parameter with DataType: GPString (called Extent because it takes a string with an extent). And one output parameter with DataType: GPDatafile. But in my new task on the new server I have the same input parameter but the output parameter also has DataType: GPString and I guess that's the problem. I've med a few tries and sometimes I don't get an output parameter at all. How should I configure my output parameter when I add the script in ArcMap? And when I publish the tool as a Geoprocessing service? I've attached a coulpe of screenshots of what I thought would be the correct cofiguration (there is no option to choose GPDataFile, only DataFile). But with this configuration I don't get an output parameter at all in my task when looking at it in teh rest service directory. Task: export_dwg
Display Name: export_dwg
Description: Exports elevationdata to DWG
Execution Type: esriExecutionTypeSynchronous
Parameters:
Parameter: Extent
Data Type: GPString
Display Name Extent
Description: Extent to export
Direction: esriGPParameterDirectionInput
Dependency:
Default Value: 146541 6350597 146641 6350665
Parameter Type: esriGPParameterTypeRequired
Category:
Supported Operations: Execute Task
... View more
04-20-2021
05:33 AM
|
0
|
2
|
7131
|
|
POST
|
No I havn't set a scratchWorkspace, I want to use a deafult scratchWorkspace since I don't know what it is supposed to be on the server when running the geoprocessing task. This worked on my old server. When running the tool on my server from ArcMap (or as a standa alone script) It works fine and the scratchFolder is (C:\Users\...\AppData\Local\Temp\scratch). Any tip on how I should print out the scratchFolder when running the geoprocessing task on the server?
... View more
04-20-2021
02:59 AM
|
0
|
0
|
7132
|
|
POST
|
I have a geoprocessing tool that at the end exports points to a DWG-file, it's based on my own python script. It worked with ArcGIS Server 10.6.1, but when trying it with ArcGIS Enterprise 10.8.1 it doesn't work. I can run the tool in ArcMap and publish it succesfully to my server, but when running my geoprocessing service it fails and give me the error: Error executing tool. Hojddata_till_DWG Job ID: jfcd1dee1b2364e73a10d9d90f4e5ef9b : Traceback (most recent call last): File "E:\arcgisserver\directories\arcgissystem\arcgisinput\Verktyg\Hojddata2dwg2.GPServer\extracted\v101\my_toolboxes\Export_Hojddata_to_DWG.py", line 24, in <module> arcpy.env.workspace = arcpy.arcpy.env.packageWorkspace.scratchFolder AttributeError: 'unicode' object has no attribute 'scratchFolder' Failed to execute (Hojddata2dwg). Failed to execute (Hojddata_till_DWG). So I guess it has something with the scratchfolder to do, any ideas how to solve this? The part of my python script that makes the dwg-export looks like this: filename = "Hojdpunkter.dwg"
arcpy.ExportCAD_conversion(GridpointsZ, "DWG_R2010", filename)
outputFile = os.path.join(arcpy.env.scratchFolder, filename)
arcpy.SetParameterAsText(2, outputFile) Has anything changed between 10.6.1. and 10.8.1 of ArcGIS Server when it comes to scratchFolders or geoprocessing outputs? Or is it me that has forgot how to properly publish a geoprocessing tool? I have set the parameters and the third one to be 'output' and 'data file'.
... View more
04-19-2021
07:47 AM
|
0
|
13
|
8872
|
|
POST
|
Thanks for your reply! Good news about Gallery cards beeing clickable in their entirety, unfortunately my current project is a site within our portal so I guess I'll have to wait for that a little longer. I will look into the static card layout within Text Card and give it a try and see if it would suite my needs better than the gallery card.
... View more
04-15-2021
11:42 PM
|
0
|
0
|
2929
|
|
POST
|
Is there anyway to modify the gallery card so it can displays for example 6 items in a row? I Think the item-boxes are to large on a big screen and would like them to be a bit smaller that more items would fit in each rows. I would also like the whole box to be clickable not just the button, or at least the thumbnail image, is this possible?
... View more
04-15-2021
01:51 AM
|
1
|
2
|
2955
|
|
POST
|
I want to make popups moveable in my portal web appbuilder apps. I tried follow the instructions in the article: https://support.esri.com/en/technical-article/000015175 But I didn't get it to work. Is it supposed to work in portal 10.8.1 and WAB 2.16? Tried changing the corresponding files in both E:\ArcGIS\Portal\apps\webappviewer and E:\ArcGIS\Portal\apps\webappbuilder\stemapp for the JewleryBox Theme. Is this the right files?
... View more
02-09-2021
07:38 AM
|
0
|
0
|
656
|
|
POST
|
So this was actually planned in 2018. As far as I know, it's still not rolled out. Maybe in JS API v4 in the new Map Viewer and Experience builder? I guess it'll never be rolled out for We bAppBuilder?
... View more
02-09-2021
07:28 AM
|
1
|
0
|
1747
|
|
POST
|
ArcGIS Online Assistant is a great tool, but in my case it is a bit to limited and to slow. I need to edit some Web App Config.json files, and they contain thousands on lines so the AGOL-Assistant is very slow and there is no find and replace functionality etc. Is there anyway to open the json files in a text editor when you have all access to installation location for Portal for ArcGIS? I've found what I thought was the solution. If I get the id from my portal item I can go to ...\arcgisportal\content\items where there's a folder for each of my items named by it's id. And inside the folder there is a file with no extension namned by the item id. When I open this it looks just like it's supposed to be the json-file I'm looking for. This file is changed when I make changes to my item (configure my web appbuilder app). But editing this file in a texteditor and save it doesn't affect my web app. I've cleared browser cache and tried other browsers but still no change. I wouln't have to go this road if it was possible to either add a custom theme to web appbuilder to the portal, or if it was possible to add custom on-screen widgets to the portal. But this seems impossible through the portal and its web app builder interface.
... View more
02-09-2021
05:32 AM
|
1
|
1
|
2035
|
|
POST
|
@TimDine did you got this working somehow? I have similar problems, I have a couple of custom widgets that is supposed to be On-Screen widgets. It works in Developer version, but when adding them to portal I can't configure them to not be opened by a button. I have been able to edit the web app config using AGOL-Assistant to set the closeable-property to false and set the position where I want. This acutally worked but I want the benefits of easy configuration with the Web AppBuilder in Portal. Editing a json-file with thousands lines in AGOL-Assistant isn't easy and it's really slow.
... View more
02-09-2021
01:37 AM
|
0
|
0
|
1306
|
|
POST
|
Thanks Robert! I think got it from here. Anyway the original question is answered.
... View more
02-05-2021
07:23 AM
|
0
|
0
|
2962
|
|
POST
|
Thanks Robert, turns out it wasn't that easy to get my layer after all. hade some problem with map.getLayer until I realized that the LayerId is some cryptic [myLayername]_XXX. However my layer isn't a featureLayer, it's a sublayer in a Map Image Layers. So I guess I have to make a query anyway to get a grafic object to put in setFeatures[], right? But it seems I should be able to get the InfoTemplate from the map, that would help...
... View more
02-05-2021
06:28 AM
|
0
|
1
|
2969
|
|
POST
|
I've a custom widget where I have a context menu to the map. From one of the menu items I want to display information from a specific layer where the user clicked. I have the map point and can open the popup-window with this.map.infoWindow.show(clickedPoint); But it just shows an empty popUp. I have the layer (but turned off) in my web map with configured popup. Is there some easy way to populate the infoWindow with my already configured PopUp for that layer? Or do have to query the layer and populate the info-window from scratch with map.infoWindow.setContent or something like that? And could that mess up the ordinary PopUps somehow?
... View more
02-05-2021
03:05 AM
|
0
|
5
|
2997
|
|
POST
|
I would also like to be able to add custom themes to Portal for ArcGIS. I found one Idea for this. vote for it here: https://community.esri.com/t5/arcgis-web-appbuilder-ideas/supports-of-custom-theme-by-web-appbuilder-in-arcgis-enterprise/idi-p/973399
... View more
02-02-2021
07:07 AM
|
0
|
0
|
1362
|
|
POST
|
I'm using the Attribute table widget with the config "Synchronize with layer visibilities" checked. My layers are mostly "Map Image Layers". But I notice that when I open the attribute table, all tabs for all layers are visible even though just a few layers are visible. Turning on layers and then turning the off again will make the tabs disapear from the attribute table. When using the add data widget, the new layers does not show upp in the attribute table, but after turningen them off and then on again they appear in the attribut table. Is this by design? or a bug? or some configuration I got wrong? I experince this both in WAB 2.16 in my Portal 10.8.1 and in ArcGIS Online.
... View more
01-25-2021
03:26 AM
|
0
|
3
|
1660
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 02:59 AM | |
| 1 | 01-13-2025 02:57 AM | |
| 2 | 04-14-2025 04:49 AM | |
| 2 | 09-18-2025 05:51 AM | |
| 1 | 08-28-2025 12:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-23-2026
05:14 AM
|