<?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: Access featureclass within dataclass with SearchCursor from SDE in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142521#M7107</link>
    <description>&lt;P&gt;Thanks for your reply, unfortunately when I have the field parameter I get the following error:&lt;/P&gt;&lt;P&gt;RuntimeError: cannot open 'sde_geopipe.Water/sde_geopipe.pipeWaterPipe'&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 07:03:52 GMT</pubDate>
    <dc:creator>mrmr__mr</dc:creator>
    <dc:date>2022-02-10T07:03:52Z</dc:date>
    <item>
      <title>Access featureclass within dataclass with SearchCursor from SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142205#M7102</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am trying to use the SearchCursor on a featureclass that is in a dataset that I access with an SDE - but I can't get it to work.&lt;/P&gt;&lt;P&gt;I have following structure in the SDE-server:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://   " target="_self"&gt;AD @ sde_geopipe.sde&lt;/A&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;sde_geopipe.Water (dataclass)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sde_geopipe&lt;SPAN&gt;.&lt;SPAN&gt;pipeWaterPipe (featureclass)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to access sde_geopipe.pipeWaterPipe with SearchCursor - I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = './data/AD@sde_geopipe_uva.sde'
with arcpy.da.SearchCursor('sde_geopipe.Water/sde_geopipe.pipeWaterPipe', field) as cursor:
    for row in cursor:
        print(row[1])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to specify the full path ('&lt;SPAN&gt;./data/AD@sde_geopipe_uva.sde/&lt;/SPAN&gt;&lt;SPAN&gt;sde_geopipe_uva&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GNG&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Vatten/sde_geopipe_uva&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GNG&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;pipeWaterPipe') but that didn't work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 06:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142205#M7102</guid>
      <dc:creator>mrmr__mr</dc:creator>
      <dc:date>2022-02-10T06:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Access featureclass within dataclass with SearchCursor from SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142361#M7103</link>
      <description>&lt;P&gt;It looks like you're missing required syntax for field names:&lt;/P&gt;&lt;P&gt;I believe your line print(row[1])&amp;nbsp; would be looking for a second field passed as syntax.&amp;nbsp; The reason I say the second is because row[0] would be the first.&lt;/P&gt;&lt;P&gt;SearchCursor (in_table, &lt;STRONG&gt;field_names&lt;/STRONG&gt;, {where_clause}, {spatial_reference}, {explode_to_points}, {sql_clause}, {datum_transformation})&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 21:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142361#M7103</guid>
      <dc:creator>Darrin-Smith</dc:creator>
      <dc:date>2022-02-09T21:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access featureclass within dataclass with SearchCursor from SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142521#M7107</link>
      <description>&lt;P&gt;Thanks for your reply, unfortunately when I have the field parameter I get the following error:&lt;/P&gt;&lt;P&gt;RuntimeError: cannot open 'sde_geopipe.Water/sde_geopipe.pipeWaterPipe'&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 07:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-featureclass-within-dataclass-with/m-p/1142521#M7107</guid>
      <dc:creator>mrmr__mr</dc:creator>
      <dc:date>2022-02-10T07:03:52Z</dc:date>
    </item>
  </channel>
</rss>

