Unable to to create view

254
1
10-19-2023 03:30 AM
nabaz-gharib
Occasional Contributor

Hi all,
I appreciate if some provide a solution for this issue.
I am getting an error when trying to create view:

view_fc=nts_fc.manager.create_view(name="NTS_v02_view_",tags='nts,v02')

------------------------------
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
In  [53]:
Line 1:     view_fc=nts_fc.manager.create_view(name="NTS_v02_view_",tags='nts,v02')

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\features\managers.py, in create_view:
Line 2027:  lyr_id = lyr.manager.properties.serviceItemId

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_mixins.py, in __getattr__:
Line 82:    raise AttributeError(

AttributeError: 'PropertyMap' instance has no attribute 'serviceItemId'

 

Tags (3)
1 Reply
kspieker
New Contributor

I have the same problem, but it only occurs with ArcGIS Enterprise 10.9.1. Do you know how to solve it?

0 Kudos