PRO 2.3.1 Annotation Upgrade Dataset & Python

271
4
Jump to solution
06-25-2019 09:51 AM
Highlighted

I am going to start to upgrade the annotations in our databases and have some troubles, questions and concerns.

1.  I read this in the documentation. "Feature classes in the same feature dataset as the ArcGIS Pro annotation are also read-only in ArcMap."  So if I upgrade the annotation in our parcel fabric dataset, all points, lines, and polygons feature classes within that dataset will be uneditable in ArcMap?

2.  Currently in Pro we cannot Publish Services to ArcGIS Server.  So if we upgrade our Annotation, this annotation cannot be published?  Can this be done in Python instead then?  Did I read correctly that Publishing Services to Server in Pro will be possible in 2.4 as long as we are on Server 10.6.1?

3.  Once upgrade is there anyway to export or make a copy of the annotation to be viewed in ArcMap?  Just in case we edited a bunch of the upgraded annotation and later find that Pro is not going to work for us yet.  If not is this something in the works for later releases?

4.  I tried running this script in both the Old Catalog and within Pro and got these errors.  I was testing it on a File Geodatabase before I use it on the sde database.  None of my feature classes are empty.

Script:

import arcpy


arcpy.env.workspace = "C:/temp/JFKSCopy/JFKS_Copy.gdb"

arcpy.env.overwriteOutput = True


featClass = arcpy.ListFeatureClasses("","Annotation")


for row in featClass:
output = row + "_Pro"
copy = arcpy.CopyFeatures_management(row, output)
for rows in copy:
arcpy.UpgradeDataset_management(rows)

Catalog error:

Runtime error  Traceback (most recent call last):   File "<string>", line 5, in <module>   File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 5645, in UpgradeDataset     raise e ExecuteError: ERROR 001267: Dataset type does not support upgrade.

Pro error:

Traceback (most recent call last):
File "<string>", line 5, in <module>
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 6117, in UpgradeDataset
raise e
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 6114, in UpgradeDataset
retval = convertArcObjectToPythonObject(gp.UpgradeDataset_management(*gp_fixargs((in_dataset,), True)))
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 498, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 002577: Upgrading annotation requires at least one annotation class and symbol.
Failed to execute (UpgradeDataset).

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Frequent Contributor

I can comment on a few of the items above based on my research and experience:

1. Correct, if the annotation is in the feature dataset and it is upgraded you will NOT be able to view/edit/etc the feature contained within within ArcMap.

2. You can publish services to a stand-alone (unfederated) ArcGIS Server site via ArcGIS Pro, as of 2.3, with Python. Starting at ArcGIS Pro 2.4 there will be more user friendly UI component.

Publishing: https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-s-new-in-arcgis-for-server.h...

arcpy.sharing: https://pro.arcgis.com/en/pro-app/arcpy/sharing/introduction-to-arcpy-sharing.htm

I have not tested publishing updated annotation to a stand-alone ArcGIS Server site. I can tell you that publishing from ArcGIS Pro to ArcGIS Enterprise works as expected.

3. Once the annotation is upgraded with the ArcGIS Pro client, it will not be visible within ArcMap. This includes copying out annotation. If you wanted to have a "backup" before moving to ArcGIS Pro, I would recommend taking a verified backup of your Enterprise Geodatabase or make a copy to a file geodatabase. Remember that if the annotation is in a feature dataset, you would also have to replace the feature classes with the "backup" copy. This might cause you to lose edits made since the backup/upgrade. I have not tested this workflow out at this time.

I do not know if this is something in the works for a future release. I would venture towards the no portion since the structure is different for annotation between ArcMap and ArcGIS Pro, hence the need to upgrade.

4. I am not a Python expert. I would recommend reaching out to Esri technical support for help with this portion.

Hope this helps!

--- George T.

View solution in original post

4 Replies
Highlighted
Esri Frequent Contributor

I can comment on a few of the items above based on my research and experience:

1. Correct, if the annotation is in the feature dataset and it is upgraded you will NOT be able to view/edit/etc the feature contained within within ArcMap.

2. You can publish services to a stand-alone (unfederated) ArcGIS Server site via ArcGIS Pro, as of 2.3, with Python. Starting at ArcGIS Pro 2.4 there will be more user friendly UI component.

Publishing: https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-s-new-in-arcgis-for-server.h...

arcpy.sharing: https://pro.arcgis.com/en/pro-app/arcpy/sharing/introduction-to-arcpy-sharing.htm

I have not tested publishing updated annotation to a stand-alone ArcGIS Server site. I can tell you that publishing from ArcGIS Pro to ArcGIS Enterprise works as expected.

3. Once the annotation is upgraded with the ArcGIS Pro client, it will not be visible within ArcMap. This includes copying out annotation. If you wanted to have a "backup" before moving to ArcGIS Pro, I would recommend taking a verified backup of your Enterprise Geodatabase or make a copy to a file geodatabase. Remember that if the annotation is in a feature dataset, you would also have to replace the feature classes with the "backup" copy. This might cause you to lose edits made since the backup/upgrade. I have not tested this workflow out at this time.

I do not know if this is something in the works for a future release. I would venture towards the no portion since the structure is different for annotation between ArcMap and ArcGIS Pro, hence the need to upgrade.

4. I am not a Python expert. I would recommend reaching out to Esri technical support for help with this portion.

Hope this helps!

--- George T.

View solution in original post

Highlighted

Thank you.  I will make sure to back everything up.  The Annotation Upgrade nuking any ability to fall back to ArcMap, and possibly publishing, is my biggest hurdle for moving the organization to Pro.   We really will have to go all in or not at all.   

Reply
0 Kudos
Highlighted
Esri Frequent Contributor

To some extent that may be true but there are other ways to get around that issue. With the upcoming ArcGIS Pro 2.4 release I understand that they will release the new parcel fabric.

You could also upgrade your annotation, have the users that need to edit use ArcGIS Pro client and the other "non-editors" use web maps that you create within ArcGIS Enterprise for them to use.

--- George T.
Reply
0 Kudos
Highlighted
Esteemed Contributor

That #1 item is really difficult to overcome.  It would be great if ESRI could at least make the annotation viewable in ArcMap if you upgrade the annotation to be editable in Pro.  This would make the transition to Pro so much easier and less risky as this is a big sticking point.