<?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: Using arcpy's datasettype method on SDE Feature Class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1345#M163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Rebecca. The correct spelling of the method is all lowercase. Also, the error that is being throw is one of an IO error, indicating that the data in my SDE does not exist. The problem is, the data does exist so I feel like it's a connection error and I am not sure how to solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 15:51:06 GMT</pubDate>
    <dc:creator>MikeMacRae</dc:creator>
    <dc:date>2015-06-08T15:51:06Z</dc:date>
    <item>
      <title>Using arcpy's datasettype method on SDE Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1343#M161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to print out the "datasettype" of some layers that are connected to an Oracle Database via SDE using the datasettype method of Describe. The connection to SDE is encrypted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this simple script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; for lyr in arcpy.mapping.ListLayers(mxd,"",df):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.Describe(lyr.dataSource).datasettype&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 3, in &amp;lt;module&amp;gt;
&amp;nbsp; File "e:\sw_nt\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 1234, in Describe
&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.describe(value)
&amp;nbsp; File "e:\sw_nt\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 374, in describe
&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.Describe(*gp_fixargs(args, True)))
IOError: "C:\Documents and Settingsusername\Application Data\ESRI\ArcCatalog\Connection to Test.sde\BASEMAPPING.POPULATION_POINT" does ot exist&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thoughts are that the script needs to connect to the SDE feature class to determine its dataset type. Because the connection to SDE is encrypted, I am thinking that I need to login somehow for the connection string to hit the feature class before determining the dataset type. If I am correct on this, how can I get it so that read the dataset type on an encrypted SDE feature class? If I am not correct, what else might be the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1343#M161</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2021-12-10T20:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy's datasettype method on SDE Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1344#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with.&amp;nbsp;&amp;nbsp; datasetType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Instead of dataset​type.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (That is, may just be a typo)&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000065000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000065000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my network is down at the moment, so can't test myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1344#M162</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-06-08T15:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy's datasettype method on SDE Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1345#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Rebecca. The correct spelling of the method is all lowercase. Also, the error that is being throw is one of an IO error, indicating that the data in my SDE does not exist. The problem is, the data does exist so I feel like it's a connection error and I am not sure how to solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-s-datasettype-method-on-sde-feature/m-p/1345#M163</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2015-06-08T15:51:06Z</dc:date>
    </item>
  </channel>
</rss>

