<?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: Arcpy layer properties returns incorrect workspace path in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139176#M3423</link>
    <description>&lt;P&gt;Could you provide your code so we can take a look?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 22:47:03 GMT</pubDate>
    <dc:creator>KimberlyGarbade</dc:creator>
    <dc:date>2022-01-31T22:47:03Z</dc:date>
    <item>
      <title>Arcpy layer properties returns incorrect workspace path</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139161#M3421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a script which, as part of its logic, takes a map layer from the current map document and gets its source path. Recently it has been returning the wrong path: it returns the path to my default geodatabase instead of the correct path to the layer's data. It used to work fine.&lt;/P&gt;&lt;P&gt;This incorrect behavior occurs with my_layer.workspacePath and with Describe(my_layer).Path. Both of these return the wrong path; if I check the Layer Properties from the Table of Contents in ArcMap I can see the correct path.&lt;/P&gt;&lt;P&gt;Any ideas what might be going wrong? Is anyone else having this issue?&lt;/P&gt;&lt;P&gt;I'm using ArcMap 10.8.0.12790&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 22:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139161#M3421</guid>
      <dc:creator>JosefBeautrais</dc:creator>
      <dc:date>2022-01-31T22:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy layer properties returns incorrect workspace path</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139172#M3422</link>
      <description>&lt;P&gt;can you confirm that it also doesn't exist in your default geodatabase&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 22:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139172#M3422</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-01-31T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy layer properties returns incorrect workspace path</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139176#M3423</link>
      <description>&lt;P&gt;Could you provide your code so we can take a look?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 22:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139176#M3423</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-01-31T22:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy layer properties returns incorrect workspace path</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139224#M3424</link>
      <description>&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;It turns out there was indeed a (different) feature class with the same name in my default geodatabase. It was not loaded in the current map document.&lt;/P&gt;&lt;P&gt;Deleting the feature class from the default geodatabase did fix the problem, so thank you for the hint. I am still curious why it gave the result it did.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 00:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139224#M3424</guid>
      <dc:creator>JosefBeautrais</dc:creator>
      <dc:date>2022-02-01T00:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy layer properties returns incorrect workspace path</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139230#M3425</link>
      <description>&lt;P&gt;Glad it worked out, but I suspect that the code will determine that.&amp;nbsp; I suspect that somewhere the environment path or something was changed and caused the default gdb to be read&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 00:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcpy-layer-properties-returns-incorrect-workspace/m-p/1139230#M3425</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-02-01T00:57:09Z</dc:date>
    </item>
  </channel>
</rss>

