|
POST
|
According to 3D Mode | ArcGIS for Developers if I call world_countries_item = gis.content.get('ac80670eb213440ea5899bbf92a04998')
world_countries_layer = world_countries_item.layers[0]
world_countries_layer I should see some output ops_map = gis.content.get('3fcf74a391804b81bff12d56442f23d5')
ops_map_layer = ops_map.layers[0] But I get Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 6773, in __getitem__
return dict.__getitem__(self, k)
KeyError: 'layers'
During handling of the above exception, another exception occurred:
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\__init__.py", line 6746, in __getattribute__
if self['layers'] == None or self['layers'] == []:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 6777, in __getitem__
return dict.__getitem__(self, k)
KeyError: 'layers' This is a real working AGOL map with many layers, so what's going on here? And yes I'm logged as the same owner of the map
... View more
02-13-2020
03:50 PM
|
0
|
1
|
565
|
|
POST
|
Is it possible to change the transparency of a layer in a web map with ArcGIS API for Python? I see I can add a layer Working with web maps and web scenes | ArcGIS for Developers but need to adjust the transparency after adding it.
... View more
02-13-2020
03:27 PM
|
0
|
3
|
1290
|
|
POST
|
THis blog post I believe answers your question https://community.esri.com/groups/arcgis-python-api/blog/2019/04/09/updating-layer-symbology-with-the-arcgis-api-for-python
... View more
02-13-2020
03:10 PM
|
0
|
0
|
2569
|
|
POST
|
What version of SQL server (Not Windows Operating SYstem or ArcGIS Server version)? But if you're still on 10.3, I suspect pretty old
... View more
02-13-2020
02:21 PM
|
0
|
0
|
2455
|
|
POST
|
"Windows Server 2012 R2 Datacenter" Well there's her problem. But I'm on 2014 and having same problem so......
... View more
02-13-2020
01:52 PM
|
0
|
1
|
2456
|
|
POST
|
The unfortunate answer to your question is "Unfortunately removing the ability to set “none” coordinate system in Pro is a design decision" despite numerous use cases suggesting otherwise: How to clear\define the coordinate system of a particular layer in catalog of ArcPro? Getting “clear” option of the coordinate system available in ArcGIS Pro, https://community.esri.com/thread/205035-how-to-define-the-coordinate-system-of-a-layer-while-working-in-catalog-of-arcgis-pro You might want to add your use case to those ideas in the hopes that maybe, one day, Pro will have the same functionality as ArcMap.
... View more
02-13-2020
01:51 PM
|
1
|
3
|
1450
|
|
POST
|
Are you able to open a case with TS on this? I am not seeing the same issue with 2.5
... View more
02-13-2020
01:41 PM
|
0
|
1
|
4240
|
|
POST
|
Can you run a SQL trace when your running the calc tool? In the trace, do you see errors with SDE_ITEMS and maybe a reference to a corrupt SDE log file? That's what I'm seeing. I would take this to TS, but I already have a bunch of cases open that I need to pay attention to.
... View more
02-13-2020
01:36 PM
|
0
|
2
|
5737
|
|
POST
|
Can you give the exact details of your environment? Where is the data, what type/version of database, is it geometry or geography storage, what is the projection?
... View more
02-13-2020
09:40 AM
|
0
|
15
|
5737
|
|
POST
|
It is baffling as to why this core functionality wasn't included in Pro 1.0. No way to Overwrite WebTool ? https://community.esri.com/thread/195618-possible-to-edit-gp-service-after-publishing Past comments about when this bug will be fixed suggest that "or the release right after that" might be a long ways off. https://community.esri.com/ideas/12258-arcgis-pro-publish-services-to-arcgis-server?commentID=75433#comment-75433
... View more
02-13-2020
04:55 AM
|
2
|
0
|
1447
|
|
POST
|
This may be a database issue I've since discovered. One feature (out of hundreds) has non-simple geometry, and SQL trace is showing other issues with the SDE core tables. This is an operational database that can't wait for TS to figure out what's wrong, our solution is going to be stand up a new SQL DB. With that said, I can open a case for the sole purpose of giving you a backup of the SQL DB, there is something going on with SDE that is causing GP tools to fail.
... View more
02-13-2020
04:43 AM
|
0
|
0
|
5737
|
|
POST
|
So calculating geometry (area) on a 10.8.0.25 SQL 2014 Enterprise Feature Class, Geography Storage Type, GCS projection in 2.5, not registered as versioned, no branch versioning, archiving enabled returns ERROR 130051: Input feature class is not registered as versioned. Failed to execute (CalculateGeometryAttributes) Drew Flater I recall this coming up in the past, can't find the GN post though, or maybe it was in EAP. Is there now a requirement that feature classes have to be registered as versioned to calculate geometry? SQL trace shows Violation of UNIQUE KEY constraint 'states_cuk'. Cannot insert duplicate key in object 'dbo.SDE_states'. The duplicate key value is (0, 0). as this is happening.
... View more
02-12-2020
10:54 AM
|
0
|
26
|
10872
|
|
POST
|
I have a YEAR field, controlled by a domain (1950-2030). The user can choose to pick a year from the picklist or do nothing, in which case Year($feature.CREATEDATE) will populate the year correctly. But if I use if ($feature.YEAR == null)
Year($feature.CREATEDATE)
else $feature.YEAR and do not pick a year from the picklist, nothing happens. The year is not populated. So what I'm trying to do is have Arcade ignore the user input, but if the user inputs nothing, perform the calculation.
... View more
02-12-2020
08:00 AM
|
0
|
1
|
483
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-14-2019 06:24 AM | |
| 1 | 07-12-2018 09:29 AM | |
| 1 | 06-27-2019 12:08 PM | |
| 2 | 09-23-2019 11:03 AM | |
| 1 | 08-08-2019 07:02 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-28-2024
02:40 AM
|