laptop and a wrench

Error

The error message, "AttributeError: module <module> has no attribute <attribute>" is returned when running Network Analysis (Ready To Use) tools with the Security Assertion Markup Language (SAML) login on ArcGIS Notebooks.

Última publicación: October 6, 2022 ArcGIS Pro
Número de ID del error BUG-000151170
EnviadoJuly 29, 2022
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.9.1
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoKnown Limit

Información adicional

The issue is not prioritized due to the availability of the provided workaround. Using the ArcGIS Pro's portal connection rather than the Security Assertion Markup Language (SAML) authenticated token allows the script to run both, inside ArcGIS Notebooks, or outside the app in stand-alone Python or Notebook as long as the credentials are saved when logging in the portal.

Solución alternativa

1. Log in to ArcGIS Pro with the Security Assertion Markup Language (SAML) login.

2. In ArcGIS Notebooks, import the necessary modules.

3. Do not need to pass through the script signing in to ArcGIS Online.

4. When importing 'od_service' as a toolbox, modify to the following (If not signed in to ArcGIS Pro with the SAML login at the beginning, this step prompts the login dialog box.):

>> od_service = "https://logistics.arcgis.com/arcgis/services;World/OriginDestinationCostMatrix;UseSSOIdentityIfPortalOwned"

>> arcpy.ImportToolbox(od_service)

5. Run all the remaining scripts.

Pasos para reproducir

ID del error: BUG-000151170

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