I have a notebook that creates views from user-specified hosted feature layers. The notebook works fine and until I updated to 3.4, the notebook could be downloaded and run from ArcPro. I have also made a python script tool with ArcGIS API for Python code that included create_view and until I updated to ArcPro 3.4 worked fine.
So, it appears as though this particular functionality will not work when run from an ArcPro project, either from a notebook or a script tool. It still works fine run from an ArcGIS Online-hosted notebook. Has anyone else experienced this? Is this a bug?
Creating services and applying metadata and settings does work from ArcPro. Again, appears to be a problem with create_view.
The error message is error:(unkown error), unfortunately. Three people have gotten the same error when activating this functionality from ArcPro (either as a downloaded notebook or python script tool). It's pretty consistent.
This is the code that creates the view. Pretty straightforward.
#
# 2. Create the view.
#--------------------------------------------------------------------------------------------------
new_view_name = Service_Title+"_View"
new_view_name = View_Name
arcpy.AddMessage("> Creating view "+new_view_name+"...")
new_view = flc.manager.create_view(new_view_name)