Label | Explanation | Data Type |
Input Dataset
| The feature class with attachments enabled. | Table View |
Derived Output
Label | Explanation | Data Type |
Updated Dataset | The updated dataset with upgraded attachments. | Table View |
Upgrades the attachments functionality on the data.
When attachments are enabled on a feature class, an attachment table and relationship class are created to store the attachment data when an attachment is added to a feature. The attachment table that is created includes fields that are used to store information about the attachment.
At ArcGIS Pro 2.7, this tool adds two more editable fields (KEYWORDS and EXIFINFO) to the attachment table that can be used to store additional information about the attachment. These fields can be used by apps such as ArcGIS Survey123 that set their values through the feature service. For example, an app may set keyword values in the keywords column, which it later uses to query for specific attachments through the feature service. These fields are not exposed when working with attachments in ArcGIS Pro, but the new fields are visible when you access the attachment table.
Learn more about using ArcGIS Survey123 with existing feature services
Attachments must be enabled on the input dataset before running this tool.
If the data is stored in an enterprise geodatabase, this tool must be executed as the dataset owner.
This tool adds two fields to the attachment table: KEYWORDS and EXIFINFO. Both fields are editable and nullable.
Both the KEYWORDS and EXIFINFO fields are supported and used by ArcGIS Online hosted feature services. The KEYWORDS field as well as limited support for the EXIFINFO field are supported by hosted feature services starting at ArcGIS Enterprise 10.8.1. You do not need to run this tool prior to publishing a hosted feature service, as these fields can be enabled after publishing.
If you are upgrading the attachments used in an existing service that was previously published through ArcGIS Desktop, you must republish the service using ArcGIS Pro 2.6 or later to support the upgraded attachments.
Only services published from ArcGIS Pro to ArcGIS Enterprise 10.8.1 and later support upgraded attachments.
If the attachments are upgraded, the minimum client version of the attachment table will be set to ArcGIS Pro 2.6. This means that there are some limitations when working with the data in ArcGIS Desktop or earlier versions of ArcGIS Pro. These limitations include the following:
To downgrade attachments to an earlier version, use the Downgrade Attachments tool.
Label | Explanation | Data Type |
Input Dataset
| The feature class with attachments enabled. | Table View |
Label | Explanation | Data Type |
Updated Dataset | The updated dataset with upgraded attachments. | Table View |
arcpy.management.UpgradeAttachments(in_dataset)
Name | Explanation | Data Type |
in_dataset | The feature class with attachments enabled. | Table View |
Name | Explanation | Data Type |
out_dataset | The updated dataset with upgraded attachments. | Table View |
Upgrade attachments on a feature class using the UpgradeAttachments function.
import arcpy
arcpy.UpgradeAttachments_management("C:\\MyProject\\MyGDB.gdb\\MyFC")