<?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: Import Toolbox To Run Data Interoperability Spatial ETL in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-toolbox-to-run-data-interoperability/m-p/1700782#M75233</link>
    <description>&lt;P&gt;This is definitely an encoding error, have you inspected the variables you're passing to the function? It could also be toolbox encryption breaking the syntax.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2026 22:06:57 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2026-05-07T22:06:57Z</dc:date>
    <item>
      <title>Import Toolbox To Run Data Interoperability Spatial ETL</title>
      <link>https://community.esri.com/t5/python-questions/import-toolbox-to-run-data-interoperability/m-p/1700758#M75231</link>
      <description>&lt;P&gt;I have a python toolbox that is extracting layers from a feature service. The tools to extract shapefiles and file geodatabases work fine since it's mostly running the out of the box tools. However, I have a workflow that requires DGNs to be extracted while using a Seed and Cell file for custom line styles and point symbols. In order to do that, I have a Spatial ETL tool created in Data Interoperability. The Spatial ETL works fine when I run it via Model Builder.&lt;/P&gt;&lt;P&gt;My issue is I'm trying to import the .atbx toolbox into my python toolbox so I can run either the Model I created or the Spatial ETL directly.&lt;/P&gt;&lt;P&gt;I'm using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ImportToolbox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;toolboxPath&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"DataExtraction"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When working through the tool, it appears the tool is getting imported correctly. However, when I try and run the Model or Spatial ETL tool by calling them with this:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.DataExtraction.GISToCADwPortal(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;esriJSONFile&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;json_path&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;emailAddress&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;sendto&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FeaturesToRead&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;dgnLayers&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SEED_DGNV8&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;seedFile&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CELL_DGNV8&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;cellFile&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get a really really odd error:&lt;BR /&gt;File "\\serverName\gisdata\DataExtraction\ExtractCADData.atbx", line 62, in GISToCADwPortal&lt;BR /&gt;Ø&amp;#142;&amp;#142;- d&amp;#158;û×ÀÚÒý˜"rñ(úÄMÔ%&lt;BR /&gt;^^^^&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not sure where to find line 62 because it's not referring to line 62 within the Python toolbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help anyone can provide would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 20:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-toolbox-to-run-data-interoperability/m-p/1700758#M75231</guid>
      <dc:creator>mhudson</dc:creator>
      <dc:date>2026-05-07T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import Toolbox To Run Data Interoperability Spatial ETL</title>
      <link>https://community.esri.com/t5/python-questions/import-toolbox-to-run-data-interoperability/m-p/1700782#M75233</link>
      <description>&lt;P&gt;This is definitely an encoding error, have you inspected the variables you're passing to the function? It could also be toolbox encryption breaking the syntax.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 22:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-toolbox-to-run-data-interoperability/m-p/1700782#M75233</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2026-05-07T22:06:57Z</dc:date>
    </item>
  </channel>
</rss>

