Hi All,
We have developed a Python script using ArcPy to publish a service ArcGIS online dynamically with the following URL.
We have created a task scheduler with 1Hr interval time.
We have signed in ArcMap 10.8 using ArcGIS online account and automatic option checked.
Script ran for few times and after sometime it is throwing error. We noticed that, ArcMap signed out ArcGIS online account.
When we open the ArcMap, script is working fine. If ArcMap closes getting error.
Kindly suggest any solution.
Solved! Go to Solution.
Try importing the appropriate product license in the script. Accessing licenses and extensions in Python
e.g.
# Set desktop license used to Advanced(keyword is arcinfo)
import arcinfo
import arcpy
The product level should be set by importing the appropriate product module (arcinfo, arceditor, arcview, arcserver, arcenginegeodb, or arcengine) prior to importing arcpy.
Try importing the appropriate product license in the script. Accessing licenses and extensions in Python
e.g.
# Set desktop license used to Advanced(keyword is arcinfo)
import arcinfo
import arcpy
The product level should be set by importing the appropriate product module (arcinfo, arceditor, arcview, arcserver, arcenginegeodb, or arcengine) prior to importing arcpy.
@JayantaPoddar ....with the 'import arcinfo' script is working fine.
Thank you