Hello,
we have a concurrent license model on a seperate server. We are only allowed to check out the advanced license for the needed time ... . In arcpy ArcMap you could set the product temporarily very easy, in Pro 2.8 notebook this doesn't seem to work with check product in our case.
There's always the message "ArcGIS for Desktop Advanced license not available" even if more than one license is available with the following code?
import sys
import arcpy
arcpy.env.workspace = "c:/data/world.gdb"
if arcpy.CheckProduct("ArcInfo") == "Available":
arcpy.PolygonToLine_management("Lakes", "LakeLines")
else:
msg = 'ArcGIS for Desktop Advanced license not available'
print(msg)
sys.exit(msg)Does this work only with licenses saved online?
Are there any workarounds?
It would be very uncomfortable to check out the license manually in Pro every time the advanced license is needed ...