laptop and a wrench

Error

When editing a feature service in ArcGIS Pro with attribute rules applied, the error message is returned, "Unable to complete operation. Setting of value for md_variance failed."

Última publicación: April 16, 2021 ArcGIS Pro
Número de ID del error BUG-000138376
EnviadoMarch 23, 2021
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.7.1
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

User error. The original Arcade script uses {return "null"}, which returns a string of "null" to a double field, causing cast error.

Solución alternativa

The correct script:

=======================================

var startDate = date($feature.md_planned);

var endDate = date($feature.md_actual);

var Diff = DateDiff(endDate, startDate, 'days');

var FinVar = Diff/30.5;

If (IsEmpty(startDate) || IsEmpty(endDate))

{ return null; }

else return FinVar

=======================================

Pasos para reproducir

ID del error: BUG-000138376

Software:

  • ArcGIS Pro

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