laptop and a wrench

Bug

The arcpy.management.CalculateField() function uses the active portal connection in ArcGIS Pro, even when run in a standalone script, and the script signs in to a different portal using the SignInToPortal() function.

Last Published: February 14, 2023 ArcGIS Pro
Bug ID Number BUG-000142191
SubmittedAugust 13, 2021
Last ModifiedOctober 7, 2024
Applies toArcGIS Pro
Version found2.8.2
Operating SystemWindows OS
Operating System Version10.0
StatusNon-Reproducible

Additional Information

This is not reproducible in ArcGIS Pro 3.0.

Workaround

Use the URL+Token generated from the SignInToPortal function to add the layer to a map stored in a .aprx file, and run the calculation based on the map layer. Since the layer is authenticated with the token, then there is no need to authenticate further with the portal.

Steps to Reproduce

Bug ID: BUG-000142191

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options