|
POST
|
Hi Matt Driscoll Thanks for taking the time to respond. Looks like the collection is still not cast properly. I have attached the full error to my main post. TS2345 (TS) Argument of type '{ locator: Locator; name: string; placeholder: string; }[]' is not assignable to parameter of type 'Collection<FeatureLayerSource | LocatorSource> | (FeatureLayerSource | LocatorSource)[]'. ...
... View more
08-30-2018
11:11 AM
|
0
|
2
|
2152
|
|
POST
|
Hi James- I am experiencing the same issue. See my comments here: TypeScript error when creating Search Widget (JS 4.8) Did you find a resolution?
... View more
08-30-2018
08:44 AM
|
0
|
0
|
945
|
|
POST
|
I'm getting an error when assigning a source to a searchWidget. It appears I might be using incorrect syntax for TypeScript. (TS) Type '{ locator: Locator; name: string; placeholder: string; }[]' is not assignable to type 'Collection<FeatureLayerSource | LocatorSource>'. Property 'add' is missing in type '{ locator: Locator; name: string; placeholder: string; }[]'. import Locator = require("esri/tasks/Locator");
import Search = require("esri/widgets/Search");
var sources = [{
locator: new Locator({ url: "https://gis.spokanecounty.org/arcgis/rest/services/Locators/AddrComposite/GeocodeServer" }),
name: "addrComposite",
placeholder: "Search Addresses"
}];
var searchWidget = new Search({
view: view,
includeDefaultSources: false
});
searchWidget.sources = sources; Similar issue here: typescript files error on search widget Definition file used: Small updates for version 4.8 (#27426) · DefinitelyTyped/DefinitelyTyped@0575e7d · GitHub
... View more
08-29-2018
05:00 PM
|
0
|
5
|
2671
|
|
POST
|
I am also experiencing this behavior. After 4 months of flawless performance, an overwrite function has started failing intermittently due to a timeout. I'm using the python API (1.4.1) as show below. These are the hosted feature datasets I am updating: http://spokanecounty.maps.arcgis.com/home/item.html?id=5805ca391e5f4c1ca6f0e58aee0d46a6 http://spokanecounty.maps.arcgis.com/home/item.html?id=b6b1e7f8e12c4a9ba78af72076aee7af http://spokanecounty.maps.arcgis.com/home/item.html?id=848144f660a741f4b274360d494f15a1 I believe BUG-000115253 may be associated. This was identified in 1.4.2. Bug synopsis: When using the overwrite method from arcgis.features.managers.FeatureLayerCollectionManager, ArcGIS API for Python returns the error "Exception: Job Failed.'' example: import arcgis
gis = arcgis.gis.GIS("https://spokanecounty.maps.arcgis.com", <usr>, <pw>)
item = gis.content.get(itemID)
dataPath = "\\\\<path>\\Parcels.zip"
status = arcgis.features.FeatureLayerCollection.fromitem(item).manager.overwrite(dataPath) error log: Traceback (most recent call last):
File "C:\Automation\Python\Jobs-ISD\AGOLUpdate\Code\AGOLUpdate.py", line 117, in <module>
overwriteStatus = overwriteAGOLfeature(dataName,data.get('itemID'),data.get('zipData'))
File "C:\Automation\Python\Jobs-ISD\AGOLUpdate\Code\AGOLUpdate.py", line 87, in overwriteAGOLfeature
status = arcgis.features.FeatureLayerCollection.fromitem(item).manager.overwrite(dataPath)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis-1.3.0-py3.5.egg\arcgis\features\managers.py", line 771, in overwrite
if related_data_item.update(data=data_file):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis-1.3.0-py3.5.egg\arcgis\gis\__init__.py", line 4994, in update
large_thumbnail)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis-1.3.0-py3.5.egg\arcgis\_impl\portalpy.py", line 2144, in update_item
resp = self.con.post(path, postdata, files)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis-1.3.0-py3.5.egg\arcgis\_impl\connection.py", line 1076, in post
resp = opener.open(req)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 472, in open
response = meth(req, response)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 510, in error
return self._call_chain(*args)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 444, in _call_chain
result = func(*args)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 504: Gateway Time-out
... View more
08-21-2018
11:44 AM
|
1
|
0
|
7023
|
|
POST
|
ArcGIS Python API 1.5.0 is out now. I see no reference to extract_data in the What's New section. Have yet to try this version. What's new in version 1.5 | ArcGIS for Developers
... View more
08-17-2018
09:57 AM
|
0
|
0
|
1121
|
|
POST
|
Thanks for sharing. You are using arcpy's ExtractData_server function. You shouldn't need to import arcgis as this is a different library. Extract Data—Help | ArcGIS Desktop
... View more
08-13-2018
11:13 AM
|
0
|
1
|
1121
|
|
POST
|
Great, glad it worked for you. Would you mind sharing the code you used, starting with the imports?
... View more
08-13-2018
09:05 AM
|
0
|
0
|
5023
|
|
POST
|
Hello This still fails on version 1.4.1. Issues I have had with the API either stem from improperly importing modules or documentation not being updated. I'm not sure if this function is available in versions earlier than 1.4.2. You might want to give it a shot. https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.html?highlight=extract_data#arcgis.extract_data
... View more
08-13-2018
08:27 AM
|
1
|
3
|
5023
|
|
POST
|
We are in the same position. My guess is it won't be available in 4.9.
... View more
08-08-2018
10:31 AM
|
0
|
0
|
3226
|
|
POST
|
Julie Powell referenced the draw example in relation to this question last year. The note included in the example documentation states: A 2D measurement widget is not part of the ArcGIS 4.8 API for JavaScript. It will be added in a future release. Measure while drawing | ArcGIS API for JavaScript 4.8
... View more
08-08-2018
09:47 AM
|
0
|
2
|
3226
|
|
POST
|
I wasn't able to get the ServicesReport so I iterated over services to get the status/statistics. Thanks for your help Atma Mani. Ben Holmes hopefully this helps. from arcgis.gis import server
url = "https://<servername>.spokanecounty.org:6443/arcgis/admin"
srv = server.Server(url=url, username= <username>, password = <password>)
srvManager = srv.services
for folder in srvManager.folders:
for service in srv.services.list(folder):
summary = service.statistics['summary']
status = service.status
... View more
08-03-2018
09:25 AM
|
0
|
1
|
4806
|
|
POST
|
Hi Atma, thanks for your reply. I'm attempting to access the ServicesReport REST endpoint on a local enterprise server. Using the arcgis.gis.server module offers the ServicesDirectory.report function. It doesn't appear to me that the arcgis.gis.admin module has any applicable functions. Can you tell me how i would use the admin module to get to the ServicesReport end point?
... View more
08-02-2018
10:50 AM
|
0
|
0
|
4806
|
|
POST
|
Ben Holmes Have you found a resolution for this? I've experienced it from v1.2.3 - 1.4.1. Can a group admin respond to this thread? Jay Theodore Atma Mani What is wrong with this code? url = "https://<servername>.spokanecounty.org:6443/arcgis/admin/"
servDirectory = server.catalog.ServicesDirectory(url,<User>,<Pw>)
servDirectory.folders
Results in this traceback: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\server\catalog.py", line 259, in folders return self.properties['folders'] File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_mixins.py", line 340, in __getitem__ return self._mapping[key] KeyError: 'folders'
... View more
08-01-2018
04:55 PM
|
0
|
4
|
4806
|
|
POST
|
Thanks for your reply. For reference: this error occurs when running Analyze Datasets on 10.6.1 when analyzing data with the esri spatial binary type on MSSQL 2008 R2 (10.50) or SQL Server 2014 SP2 (12.0.5553.0).
... View more
07-31-2018
03:01 PM
|
0
|
0
|
4267
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2022 02:52 PM | |
| 1 | 07-27-2023 10:51 AM | |
| 2 | 11-14-2023 08:48 AM | |
| 1 | 10-27-2021 11:50 AM | |
| 2 | 12-11-2023 04:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-29-2024
11:30 AM
|