<?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: SDE Dataset does not exist or is not supported in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43045#M3404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you will need to make a feature layer before executing the SelectbyLocation function.&amp;nbsp; Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.MakeFeatureLayer_management(addflumlayer, "FLUM")
arcpy.MakeFeatureLayer_management(addzcaselayer, "ZoningCases")
arcpy.SelectLayerByLocation_management("FLUM","WITHIN_A_DISTANCE","ZoningCases","2000 Feet","NEW_SELECTION")
arcpy.MakeFeatureLayer_management("FLUM", "FLUM_New")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:39:17 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-10T21:39:17Z</dc:date>
    <item>
      <title>SDE Dataset does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43042#M3401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate help from the board.&amp;nbsp; This is a shortened version of a larger script but this is where the problem seems to lie.&amp;nbsp; I get the error below even though these layers exist in the mxd.&amp;nbsp; Ive also run these from arccatalog.&amp;nbsp; In that case, they usually work, but a couple of times they did not.&amp;nbsp; That leads me to believe its an SDE issue.&amp;nbsp; Im running 10, SV2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Feature Layer: Dataset FLUM does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Selecting Features: Dataset ZoningCases does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (SelectLayerByLocation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#--------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r"G:\NEIGHBOR PLAN\ArcView\Projects\Templates\\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#set mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"G:\NEIGHBOR PLAN\ArcView\Projects\Templates\test.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#set dataframe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#select features from FLUM within 2000 feet of ZoningCases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SelectLayerByLocation_management("FLUM", "WITHIN_A_DISTANCE", "ZoningCases", "2000 feet", "NEW_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;del mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#-----------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Frank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Austin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 19:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43042#M3401</guid>
      <dc:creator>PaulFrank</dc:creator>
      <dc:date>2011-12-21T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Dataset does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43043#M3402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;something that may be hindering you is to do with setting your dataframe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#set dataframe
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;now 'Layers' is only used if that's the exact name of your data frame your data is located in. if you use '*' it becomes a wildcard and selects your active dataframe, that could be you issue alone. Also when you use&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;you do not need to place arcpy.env anytime you want to use an environment setting. also when posting the # icon above your message is for a code block, that's what you see in my post and allows people to scroll through the code rather then the whole page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43043#M3402</guid>
      <dc:creator>PatrickFischer1</dc:creator>
      <dc:date>2021-12-10T21:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Dataset does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43044#M3403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Patrick, Thanks for the reply.&amp;nbsp; I tried to wrap quotes around this post - and it says I cant post because its too short.&amp;nbsp; Maybe i need a couple of tutorials on this as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have the suggested ListDataFrames in my original .py file.&amp;nbsp; I should have attached that originally, but thought I had isolated the problem with my original post.&amp;nbsp; I would appreciate your looking at this file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 21:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43044#M3403</guid>
      <dc:creator>PaulFrank</dc:creator>
      <dc:date>2011-12-21T21:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Dataset does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43045#M3404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you will need to make a feature layer before executing the SelectbyLocation function.&amp;nbsp; Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.MakeFeatureLayer_management(addflumlayer, "FLUM")
arcpy.MakeFeatureLayer_management(addzcaselayer, "ZoningCases")
arcpy.SelectLayerByLocation_management("FLUM","WITHIN_A_DISTANCE","ZoningCases","2000 Feet","NEW_SELECTION")
arcpy.MakeFeatureLayer_management("FLUM", "FLUM_New")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43045#M3404</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T21:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Dataset does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43046#M3405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to work through this using some of your suggestions.&amp;nbsp; I now run the script in ArcMap, which wasnt what i wanted originally, and used a tip about adding MakeFeatureLayer_management output to the display.&amp;nbsp; But I've run into other issues, namely the mxd is not saving with the output I generate, nor is the legend object adjusting as expected.&amp;nbsp; But I suppose I need to repost.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 15:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-dataset-does-not-exist-or-is-not-supported/m-p/43046#M3405</guid>
      <dc:creator>PaulFrank</dc:creator>
      <dc:date>2011-12-30T15:55:27Z</dc:date>
    </item>
  </channel>
</rss>

