<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool in ArcGIS Data Interoperability Ques.</title>
    <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1473682#M255</link>
    <description>&lt;P&gt;I looked into this and I've narrowed down the problem. I think the parameters somehow get mangled when inputted into the tool by gp_fixargs.&lt;BR /&gt;&lt;BR /&gt;Here's a very basic python tool to test this issue:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-

import arcpy
import os
import traceback

from pathlib import Path


class Toolbox(object):
    def __init__(self):
        self.label = "Toolbox"
        self.alias = "toolbox"

        # List of tool classes associated with this toolbox
        self.tools = [Tool]


class Tool(object):
    def __init__(self):
        self.label = "Tool"
        self.description = ""
        self.canRunInBackground = False

    def getParameterInfo(self):
        params = [
            arcpy.Parameter(
                displayName="Input file",
                name="input_file",
                direction="Input",
                parameterType="Required",
                datatype="DEFile"     
            )
        ]
        return params

    def isLicensed(self):
        return True

    def updateParameters(self, parameters):
        return

    def updateMessages(self, parameters):
        return

    def execute(self, parameters, messages):
        arcpy.env.overwriteOutput = True

        ext_status = arcpy.CheckExtension("DataInteroperability")

        if ext_status != "Available":
            arcpy.AddError(f"Data Interoperability status: {ext_status}")
        else:
            arcpy.AddMessage("Data interoperability available")

        arcpy.CheckOutExtension("DataInteroperability")
        
        kmlPath = parameters[0].valueAsText
        arcpy.AddMessage(f"Input file: {kmlPath}")

        if not os.path.exists(kmlPath):
            arcpy.AddMessage("Source file doesn't exist")
            return
        
        arcpy.AddMessage("File contents:")
        with open(kmlPath, 'r') as file:
            for row in file.readlines():
                arcpy.AddMessage(row)

        arcpy.AddMessage("")

        output_dir = arcpy.env.scratchFolder

        if not os.path.exists(output_dir):
            arcpy.AddMessage("Creating destination folder")
            Path(output_dir).mkdir(parents=True, exist_ok=True)
            
        output_gdb = os.path.join(output_dir, "export.gdb")
        arcpy.AddMessage(f"Output gdb: {output_gdb}")

        try:
            res = arcpy.interop.QuickImport(
                Input=kmlPath,
                Output=output_gdb
            )
            arcpy.AddMessage(str(res))

        except Exception as e:
            arcpy.AddMessage(traceback.format_exc())

    def postExecute(self, parameters):
        return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's a very simple test file to reproduce the error with (test.geojson):&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Parameters used to publish webtool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TommiTerv1_0-1715857671565.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104332i357BFA66462AFAE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TommiTerv1_0-1715857671565.png" alt="TommiTerv1_0-1715857671565.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TommiTerv1_1-1715857700033.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104333iA8E28F3259235613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TommiTerv1_1-1715857700033.png" alt="TommiTerv1_1-1715857700033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Messages when running locally:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Data interoperability available
Input file: C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\test.geojson
File contents:
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}
Output gdb: C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\scratch\export.gdb
C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\scratch\export.gdb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Messages when running published as Web Tool:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;Data interoperability available
Input file: D:\arcgisserver\directories\arcgisjobs\quickimporttesttool_gpserver\ja6af2726b46a455296ce7e438a7d2492\scratch\test.geojson
File contents:
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}
Output gdb: D:\arcgisserver\directories\arcgisjobs\quickimporttesttool_gpserver\ja6af2726b46a455296ce7e438a7d2492\scratch\export.gdb
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 84, in execute
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\interop.py", line 103, in QuickImport
    raise e
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\interop.py", line 100, in QuickImport
    retval = convertArcObjectToPythonObject(gp.QuickImport_interop(*gp_fixargs((Input, Output), True)))
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\geoprocessing\_base.py", line 511, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Failed to execute (QuickImport).&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 May 2024 11:14:52 GMT</pubDate>
    <dc:creator>TommiTerävä1</dc:creator>
    <dc:date>2024-05-16T11:14:52Z</dc:date>
    <item>
      <title>Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419218#M250</link>
      <description>&lt;DIV&gt;Developed a python&amp;nbsp; script to convert a KML file to feature class using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;arcpy.interop.QuickImport()&lt;/I&gt;.&lt;/DIV&gt;&lt;DIV&gt;Script is working as expected while executing in ArcGIS Pro and Jupyter notebook but failing &amp;nbsp;after publishing on server (10.81) as a web tool with the following error&amp;nbsp;message.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help me to identify and suggest any solutions.. Thanks in advance&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error Message:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Submitted.&lt;/DIV&gt;&lt;DIV&gt;Executing...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Start Time: maanantai &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;. toukokuuta &lt;/SPAN&gt;&lt;SPAN&gt;2024&lt;/SPAN&gt; &lt;SPAN&gt;12.04&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Start Time: maanantai &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;. toukokuuta &lt;/SPAN&gt;&lt;SPAN&gt;2024&lt;/SPAN&gt; &lt;SPAN&gt;12.04&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SP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AN&gt;556&lt;/SPAN&gt;&lt;SPAN&gt;eb&lt;/SPAN&gt;&lt;SPAN&gt;1653&lt;/SPAN&gt;&lt;SPAN&gt;c&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;f\scratch\scratch.gdb&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Failed script QiTest...&lt;/DIV&gt;&lt;DIV&gt;Traceback (most recent call last):&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; File &lt;/SPAN&gt;&lt;SPAN&gt;"D:&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcgisserver&lt;/SPAN&gt;&lt;SPAN&gt;\d&lt;/SPAN&gt;&lt;SPAN&gt;irectories&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcgissystem&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcgisinput&lt;/SPAN&gt;&lt;SPAN&gt;\Q&lt;/SPAN&gt;&lt;SPAN&gt;iTest.GPServer&lt;/SPAN&gt;&lt;SPAN&gt;\e&lt;/SPAN&gt;&lt;SPAN&gt;xtracted&lt;/SPAN&gt;&lt;SPAN&gt;\c&lt;/SPAN&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;\g&lt;/SPAN&gt;&lt;SPAN&gt;lint&lt;/SPAN&gt;&lt;SPAN&gt;\q&lt;/SPAN&gt;&lt;SPAN&gt;i_test.tbx#QiTest_qitest.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;SPAN&gt;, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&am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is&lt;/SPAN&gt;&lt;SPAN&gt;\R&lt;/SPAN&gt;&lt;SPAN&gt;esources&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcpy&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcpy&lt;/SPAN&gt;&lt;SPAN&gt;\i&lt;/SPAN&gt;&lt;SPAN&gt;nterop.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;, in QuickImport&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; retval = convertArcObjectToPythonObject(gp.QuickImport_interop(*gp_fixargs((Input, Output), True)))&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; File &lt;/SPAN&gt;&lt;SPAN&gt;"d:&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcgis&lt;/SPAN&gt;&lt;SPAN&gt;\s&lt;/SPAN&gt;&lt;SPAN&gt;erver&lt;/SPAN&gt;&lt;SPAN&gt;\f&lt;/SPAN&gt;&lt;SPAN&gt;ramework&lt;/SPAN&gt;&lt;SPAN&gt;\r&lt;/SPAN&gt;&lt;SPAN&gt;untime&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcgis&lt;/SPAN&gt;&lt;SPAN&gt;\R&lt;/SPAN&gt;&lt;SPAN&gt;esources&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcpy&lt;/SPAN&gt;&lt;SPAN&gt;\a&lt;/SPAN&gt;&lt;SPAN&gt;rcpy&lt;/SPAN&gt;&lt;SPAN&gt;\g&lt;/SPAN&gt;&lt;SPAN&gt;eoprocessing&lt;/SPAN&gt;&lt;SPAN&gt;\_&lt;/SPAN&gt;&lt;SPAN&gt;base.py"&lt;/SPAN&gt;&lt;SPAN&gt;, line &lt;/SPAN&gt;&lt;SPAN&gt;511&lt;/SPAN&gt;&lt;SPAN&gt;, in &amp;lt;lambda&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR &lt;/SPAN&gt;&lt;SPAN&gt;999999&lt;/SPAN&gt;&lt;SPAN&gt;: Something unexpected caused the tool to fail. Contact Esri Technical Support (http:&lt;/SPAN&gt;&lt;SPAN&gt;//esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Failed to execute (QuickImport).&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Scrpt:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Name: QuickImport_Ex_01.py&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Requirements: None&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Description: Imports KML file to a geodatabase&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Import system modules&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;import arcpy&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;arcpy.env.overwriteOutput = True&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Check out the Data Interoperability Extension&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;arcpy.CheckOutExtension("DataInteroperability")&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Set local variables&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;kmlPath = arcpy.GetParameterAsText(0)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;#r"C:\Users\xchebrapp_\Documents\ArcGIS\Projects\Glint\Hult.kml"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;output_gdb = &amp;nbsp;arcpy.env.scratchGDB&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;arcpy.AddMessage(str(kmlPath))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;arcpy.AddMessage(str(output_gdb))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;# Execute Quick Ixport&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;res= arcpy.interop.QuickImport(kmlPath, output_gdb)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;print (res)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;arcpy.AddMessage(str(res))&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 11:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419218#M250</guid>
      <dc:creator>Hari</dc:creator>
      <dc:date>2024-05-06T11:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419287#M251</link>
      <description>&lt;P&gt;Quick Import will always try to create a new file geodatabase and the scratch GDB already exists, try using another name and make sure it doesn't exist before running Quick Import.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419287#M251</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2024-05-06T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419304#M252</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/1173" target="_self"&gt;&lt;SPAN class=""&gt;BruceHarold&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;for suggestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried by giving a new gdb name but no luck.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;added line os.path.join(arcpy.env.scratchFolder,"kml_1.gdb") which tried to create new GDB as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;D:\arcgisserver\directories\arcgisjobs\qitest_gpserver\j&lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;143&lt;/SPAN&gt;&lt;SPAN&gt;afdb&lt;/SPAN&gt;&lt;SPAN&gt;97044e7&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;8&lt;/SPAN&gt;&lt;SPAN&gt;fa&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;727913&lt;/SPAN&gt;&lt;SPAN&gt;\scratch\kml_&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;.gdb.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 13:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419304#M252</guid>
      <dc:creator>Hari</dc:creator>
      <dc:date>2024-05-06T13:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419401#M253</link>
      <description>&lt;P&gt;My guess is Quick Import's input data type is not supported in the geoprocessing framework so you can try making an embedded Spatial ETL tool that accepts a file input.&amp;nbsp; However a workspace (geodatabase) output is not supported by server side geoprocessing, so you will need to write to a zipped file geodatabase and make its path an output.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1419401#M253</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2024-05-06T14:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1473682#M255</link>
      <description>&lt;P&gt;I looked into this and I've narrowed down the problem. I think the parameters somehow get mangled when inputted into the tool by gp_fixargs.&lt;BR /&gt;&lt;BR /&gt;Here's a very basic python tool to test this issue:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-

import arcpy
import os
import traceback

from pathlib import Path


class Toolbox(object):
    def __init__(self):
        self.label = "Toolbox"
        self.alias = "toolbox"

        # List of tool classes associated with this toolbox
        self.tools = [Tool]


class Tool(object):
    def __init__(self):
        self.label = "Tool"
        self.description = ""
        self.canRunInBackground = False

    def getParameterInfo(self):
        params = [
            arcpy.Parameter(
                displayName="Input file",
                name="input_file",
                direction="Input",
                parameterType="Required",
                datatype="DEFile"     
            )
        ]
        return params

    def isLicensed(self):
        return True

    def updateParameters(self, parameters):
        return

    def updateMessages(self, parameters):
        return

    def execute(self, parameters, messages):
        arcpy.env.overwriteOutput = True

        ext_status = arcpy.CheckExtension("DataInteroperability")

        if ext_status != "Available":
            arcpy.AddError(f"Data Interoperability status: {ext_status}")
        else:
            arcpy.AddMessage("Data interoperability available")

        arcpy.CheckOutExtension("DataInteroperability")
        
        kmlPath = parameters[0].valueAsText
        arcpy.AddMessage(f"Input file: {kmlPath}")

        if not os.path.exists(kmlPath):
            arcpy.AddMessage("Source file doesn't exist")
            return
        
        arcpy.AddMessage("File contents:")
        with open(kmlPath, 'r') as file:
            for row in file.readlines():
                arcpy.AddMessage(row)

        arcpy.AddMessage("")

        output_dir = arcpy.env.scratchFolder

        if not os.path.exists(output_dir):
            arcpy.AddMessage("Creating destination folder")
            Path(output_dir).mkdir(parents=True, exist_ok=True)
            
        output_gdb = os.path.join(output_dir, "export.gdb")
        arcpy.AddMessage(f"Output gdb: {output_gdb}")

        try:
            res = arcpy.interop.QuickImport(
                Input=kmlPath,
                Output=output_gdb
            )
            arcpy.AddMessage(str(res))

        except Exception as e:
            arcpy.AddMessage(traceback.format_exc())

    def postExecute(self, parameters):
        return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's a very simple test file to reproduce the error with (test.geojson):&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Parameters used to publish webtool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TommiTerv1_0-1715857671565.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104332i357BFA66462AFAE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TommiTerv1_0-1715857671565.png" alt="TommiTerv1_0-1715857671565.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TommiTerv1_1-1715857700033.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104333iA8E28F3259235613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TommiTerv1_1-1715857700033.png" alt="TommiTerv1_1-1715857700033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Messages when running locally:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Data interoperability available
Input file: C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\test.geojson
File contents:
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}
Output gdb: C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\scratch\export.gdb
C:\Users\_____\_____\Documents\ArcGIS\Projects\QuickImport\scratch\export.gdb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Messages when running published as Web Tool:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;Data interoperability available
Input file: D:\arcgisserver\directories\arcgisjobs\quickimporttesttool_gpserver\ja6af2726b46a455296ce7e438a7d2492\scratch\test.geojson
File contents:
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}
Output gdb: D:\arcgisserver\directories\arcgisjobs\quickimporttesttool_gpserver\ja6af2726b46a455296ce7e438a7d2492\scratch\export.gdb
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 84, in execute
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\interop.py", line 103, in QuickImport
    raise e
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\interop.py", line 100, in QuickImport
    retval = convertArcObjectToPythonObject(gp.QuickImport_interop(*gp_fixargs((Input, Output), True)))
  File "d:\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\geoprocessing\_base.py", line 511, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Failed to execute (QuickImport).&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 May 2024 11:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1473682#M255</guid>
      <dc:creator>TommiTerävä1</dc:creator>
      <dc:date>2024-05-16T11:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Import (Data Interoperability) GP tool failed after publishing on server (10.81) as web tool</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1478997#M256</link>
      <description>&lt;P&gt;The root cause seems to be version incompatibility between ArcGIS Pro and the ArcGIS Enterprise environment where the tool is published. The code provided above works without issues in a more recent AE environment.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 07:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/quick-import-data-interoperability-gp-tool-failed/m-p/1478997#M256</guid>
      <dc:creator>TommiTerävä1</dc:creator>
      <dc:date>2024-05-27T07:17:04Z</dc:date>
    </item>
  </channel>
</rss>

