laptop and a wrench

Error

Truncating a feature layer with a relationship fails with the error: "There are no primary or candidate keys in the referenced table 'NAME' that match the referencing column list in the foreign key 'NAME'. Could not create constraint or index. See previous errors." if the relationship field are missing a unique index.

ArcGIS Online
Número de ID del error BUG-000181475
EnviadoDecember 5, 2025
Última modificaciónDecember 9, 2025
Relacionado conArcGIS Online
Versión encontradaOctober 2025
Sistema operativoWindows Server
Versión de sistema operativo2022
EstadoIn Product Plan

Solución alternativa

Create a unique index for the primary key field in the layer settings in ArcGIS Online.

Pasos para reproducir

ID del error: BUG-000181475

Software:

  • ArcGIS Online

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

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