Getting the below error while running the python script via Azure Devops pipeline as not getting while running manually.
Using arcgis pro with concurrent use license.
using arcpy to update connection properties within an ArcGIS project file (*.aprx). This script is updating the connection properties for a Geodatabase connection within the project and then saving a copy of the updated project file.
Python Script:
import arcpy
aprx = arcpy.mp.ArcGISProject(r'\\.../../../C.aprx')
aprx.updateConnectionProperties(r'\\ESRI@g.sde', r'\\ESRI@g1.sde')
aprx.saveACopy(r"\\B.aprx")
Error Encountered:
In this other thread https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/... the solution was to use a single use license.