Error: 000732: Dataset does not exist or is not supported.. not logged into ArcGIS online

676
2
Jump to solution
07-13-2021 02:16 AM
sirishb
New Contributor III

Hi All,

We have developed a Python script using ArcPy to publish a service ArcGIS online dynamically with the following URL.

https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/updating-arcgis-com-hoste...

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.

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

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.

 



Think Location

View solution in original post

2 Replies
JayantaPoddar
MVP Esteemed Contributor

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.

 



Think Location
sirishb
New Contributor III

@JayantaPoddar ....with the 'import arcinfo' script is working fine.

Thank you

0 Kudos