<?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: Cannot iterate Export Topology Errors GP tool in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862815#M1632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this (untested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'DriveLetter:\and\path\to\the\.gdb'&lt;/SPAN&gt;
out_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'DriveLetter:\and\path\to\the\output.gdb'&lt;/SPAN&gt;

topo_list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDatasets&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'TOPOLOGY'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; t &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; topo_list&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportTopologyErrors_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where the name of the topology is the base name.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:42:00 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-12-12T10:42:00Z</dc:date>
    <item>
      <title>Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862810#M1627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to batch automate Topology Error checking for a project we are working on with many layers.&amp;nbsp; I've already automated the generation of Topology creation and a Validation, but would now like to use the handy "&lt;EM&gt;Export Topology Errors&lt;/EM&gt;" geoprocessing tool on the many of topologies that have been created.&amp;nbsp; But what I am finding is that there does not appear to be a way to pull the topology that was iterated into the &lt;EM&gt;Export Topology Errors&lt;/EM&gt; geoprocessing tool.&amp;nbsp; The "Base Name" will seed in, but the Iterator topology result will not seed in for the "Input Topology".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all being run on ArcGIS Desktop 10.4.1 with an Advanced User license.&amp;nbsp; The topologies are all in the same file geodatabase feature dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simplified model with just an iterator and the &lt;EM&gt;Export Topology Errors&lt;/EM&gt; GP tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/422247_Export Topology Errors.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the Iterator settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/422248_Iterate Datasets.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempting to connect the output topology from the Iterator.&amp;nbsp; Note that it does not offer the option to make it an input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="/legacyfs/online/422261_Export Topoloty Errors connection fails.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the &lt;EM&gt;Export Topology Errors&lt;/EM&gt; geoprocessing tool works fine if I run it manually on each layer.&amp;nbsp; It's the Iteration part where it doesn't seem usable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of why this is not working, the only idea I have at this point is that it is one of those not-so-obvious processes where one has to do some sort of intermediate step first when connecting the two, like running a &lt;EM&gt;Make Feature Layer&lt;/EM&gt; on the Topology before feeding it into the &lt;EM&gt;Export Topology Errors&lt;/EM&gt;.&amp;nbsp; But when I try to do that the output is not recognized as a valid input either for &lt;EM&gt;Export Topology Errors&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 22:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862810#M1627</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-09-17T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862811#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is you output workspace set? somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 22:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862811#M1628</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-09-17T22:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862812#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris- you don't need to perform a make feature layer on the topology itself.&amp;nbsp; I'm not real sharp when it comes to the model iterator; I like iterating through a python list. If all the topologies are within the same featuredataset, how/why do you iterate datasets?&amp;nbsp; &amp;nbsp;I'd look at it as creating a list of the toplogies using &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/functions/listdatasets.htm"&gt;list datasets&lt;/A&gt;, step through that and export your errors, one topology at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more specifics, post up a picture of your database tree in Catalog and I'll spin something up in python for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 00:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862812#M1629</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-09-18T00:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862813#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output workspace is set to the &lt;EM&gt;TopologyErrors&lt;/EM&gt; Feature Dataset (the blue bubble leading into the &lt;EM&gt;Export Topology Errors&lt;/EM&gt; geoprocessing tool.&amp;nbsp; This Feature Dataset is in the same File Geodatabase as the source data, and its all on my C: drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried sending the output back to the same feature dataset that the origin topologies are stored in ("Topology"), but that didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 16:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862813#M1630</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-09-18T16:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862814#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like it has possibilities.&amp;nbsp; I am not great at Python, so fell back on something I know fairly well to help get this fire out, er, I mean, complete this project given that we were short on time.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up doing the &lt;EM&gt;Export Topology Errors&lt;/EM&gt; manually for all the topologies, but now that things have slowed down for a minute, am curious on how one could make this work otherwise for when we need to do it again in the near future.&amp;nbsp; As a Python approach, if I used &lt;EM&gt;List Datasets&lt;/EM&gt; to compile a list of all the Topologies, what would you recommend as a looping mechanism in Python to find each and then run Export Topology Errors?&amp;nbsp; Would that be &lt;EM&gt;os.walk&lt;/EM&gt;?&amp;nbsp; Or would it be a process of getting a count from the &lt;EM&gt;List Datasets&lt;/EM&gt; once compiled and then using &lt;EM&gt;While&lt;/EM&gt;?&amp;nbsp; I have not done much with Python and looping, so am curious what approaches are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 16:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862814#M1631</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2018-09-18T16:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot iterate Export Topology Errors GP tool</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862815#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this (untested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'DriveLetter:\and\path\to\the\.gdb'&lt;/SPAN&gt;
out_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'DriveLetter:\and\path\to\the\output.gdb'&lt;/SPAN&gt;

topo_list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDatasets&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'TOPOLOGY'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; t &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; topo_list&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportTopologyErrors_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where the name of the topology is the base name.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/cannot-iterate-export-topology-errors-gp-tool/m-p/862815#M1632</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T10:42:00Z</dc:date>
    </item>
  </channel>
</rss>

