AnsweredAssumed Answered

CheckOutExtension and ImportXMLWorkspaceDocument problem

Question asked by hackerp on Jun 29, 2016
Latest reply on Jul 7, 2016 by hackerp


I am copying GDB extensions from XML templates.

I am making a Python Toolbox from a Python script that runs perfectly if I run it alone using Python IDLE.

 

Now when running the tool it works fine except for the last, where I import the XML to overlay the GDB I created.

 

I get the error:

 

 

Traceback (most recent call last):

  File "<string>", line 282, in execute

  File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\management.py", line 1196, in ImportXMLWorkspaceDocument

    raise e

ExecuteError: Failed to execute. Parameters are not valid.

ERROR 000824: The tool is not licensed.

Failed to execute (ImportXMLWorkspaceDocument).

 

 

I suspect I do not have a license for the ImportXMLWorkspaceDocument.

 

 

I understand I can check with 'arcpy.CheckExtension' and if there is one I can use 'arcpy.CheckOutExtension' and 'arcpy.CheckInExtension'

 

 

But what group is ImportXMLWorkspaceDocument part of? Is it 'Spatial'? 'Datareviewer'? or what?

 

I have the list but don't know what part ImportXMLWorkspaceDocument belongs to.

 

Thanks.

Outcomes