| Numéro d’ID de bogue |
BUG-000174464 |
| Envoi | February 20, 2025 |
| Dernière modification | June 23, 2025 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 3.4.2 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 |
| Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
CopyRows() requires data having a field of the Object ID type named and aliased as OBJECTID. With mykey, the field in this issue, not meeting that requirement, CopyRows() creates an OBJECTID field of the data type Object ID and aliased OBJECTID. Since only one field of data type Object ID is allowed, CopyRows() drops the mykey field in this case.
Sort() also does not recognize a field of the Object ID type that is not named and aliased as OBJECTID and thus does not list that field to sort on.
The Copy tool maintains a field like mykey, which is of the type Object ID, and the name and alias are different. However, such a field is not available in the copied data to subsequently sort on.
Solution de contournement
Add the .gpkg database to the databases in the Catalog pane, and use Copy() to copy the table instead.
Étapes pour reproduire