PROBLEMA

No se pueden obtener todos los registros a unir, aunque todos los valores de los dos campos de unión coinciden

Last Published: December 6, 2024

Descripción

When joining tables with the option to keep all records, if all values in a field in one table match with all values in a field of another table, all records are included in the joined table. However, in some cases, when joining such tables, only some records are included in the joined table.

Causa

This may caused by preceding spaces or trailing spaces in the values of one or both of the join fields.

Solución o solución alternativa

Remove the preceding and trailing spaces from the values in the relevant fields before joining the fields.

  1. In the attribute table of the feature, right-click the header of the field that is used for joining, and click Field Calculator.
  2. Use the following Python expression on the relevant join field to remove all the trailing spaces.
!fieldname!.rstrip()
Note:
Change fieldname to the user's respective field name.
  1. Use the following Python expression to remove any preceding spaces from the values in the join field.
!fieldname!.lstrip()
Strip spaces
Note:
Apply these steps on both join inputs to ensure that preceding or trailing spaces are not hindering a proper join, and proceed with the join operation.

Id. de artículo: 000015477

Recibir notificaciones y encontrar soluciones a problemas nuevos o comunes

Obtenga respuestas resumidas y soluciones de vídeo de nuestro nuevo chatbot de IA.

Descargar la aplicación de soporte de Esri

Información relacionada

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga