<?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: Export features from Dirty Area layer using Python (ArcGIS pro 2.6) in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1194795#M1856</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/582754"&gt;@Acharya&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made it work by accessing the sublayer as follows:&lt;/P&gt;&lt;P&gt;d = arcpy.Describe(rf'{path_output_un_gdb}\{feature_dataset}\{network}')&lt;BR /&gt;layer_name = fr"UN_{d.DSID}_DirtyAreas"&lt;/P&gt;&lt;P&gt;da_path = fr"{path_output_un_gdb}\{layer_name}" #path of subnetwork layer dirty areas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First get DSID param from Utility network, after access to sublayer using "UN_{d.DSID}_DirtyAreas"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards !&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 06:38:53 GMT</pubDate>
    <dc:creator>geopamplona</dc:creator>
    <dc:date>2022-07-22T06:38:53Z</dc:date>
    <item>
      <title>Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033830#M1007</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying export Dirty Areas from invalid Utility Network package using Python (ArcGIS Pro 2.6).&lt;/P&gt;&lt;P&gt;I using this script:&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(r"Network Utility Network\Dirty Areas", r"C:\MyProject1.gdb", "output_fc")&lt;/P&gt;&lt;P&gt;But do not work in my script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033830#M1007</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2021-03-08T07:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033877#M1008</link>
      <description>&lt;P&gt;the error message you got?&lt;/P&gt;&lt;P&gt;and was that one line your script?&amp;nbsp; it probably can't find your&amp;nbsp;&lt;SPAN&gt;r"Network Utility Network\Dirty Areas" because it probably doesn't know where it is, depending where you are running your script (eg separate IDE, python window, notebook)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Start with providing the error message, then the actual script and where you are running it from.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 11:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033877#M1008</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-08T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033895#M1009</link>
      <description>&lt;P&gt;Seconding Dan's suggestion.&amp;nbsp; The script is "correct" as written however, the issue is most likely access to the data.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1033895#M1009</guid>
      <dc:creator>JonDeRose</dc:creator>
      <dc:date>2021-03-08T13:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035359#M1024</link>
      <description>&lt;P&gt;Indeed, it is an error related to data access. This is the &lt;STRONG&gt;error&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Message=Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Features: Dataset Network Utility Network\Dirty Areas does not exist or is not supported&lt;BR /&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = 'C:\\un.gdb'&lt;/P&gt;&lt;P&gt;output_path='C:\\Results'&lt;BR /&gt;arcpy.conversion.FeatureClassToFeatureClass(r"Network Utility Network\Dirty Areas", output_path, "output_fc")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GDB and network&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geopamplona_0-1615451725577.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8199i67D7EDFE11D81213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1615451725577.png" alt="geopamplona_0-1615451725577.png" /&gt;&lt;/span&gt;&lt;/P&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;</description>
      <pubDate>Thu, 11 Mar 2021 08:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035359#M1024</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2021-03-11T08:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035370#M1025</link>
      <description>&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = r"C:\...path_to...\un.gdb"
 # Set local variables
inFeatures = "Network Utility Network\Dirty Areas" # never use spaces
outLocation = r"C:\... path_to...\Results"  # do you want it to a folder or gdb???
outFeatureClass = "output_fc"  # --- might want a descriptive name
# Execute FeatureClassToFeatureClass
arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, 
                                            outFeatureClass)&lt;/LI-CODE&gt;&lt;P&gt;perhaps....&lt;/P&gt;&lt;P&gt;Although I question gdb in the root of C:\ and your use of paths in the featureclass names is a good source of failure.&amp;nbsp; And finally, are you wanting to dump the results to a folder?&amp;nbsp; is it a shapefile? if so, it should end in *.shp&lt;/P&gt;&lt;P&gt;That was drawn from the sample help file code&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-feature-class.htm" target="_blank"&gt;Feature Class To Feature Class (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035370#M1025</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-11T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035376#M1026</link>
      <description>&lt;P&gt;I don't care how to write the output file, using a gdb or a shp file. In the example it is enough to export a shp file.&lt;/P&gt;&lt;P&gt;It is possible that the use of spaces is giving problems; strange thing is that it does not match structure I have in the utility network package.&lt;BR /&gt;I have added the extension to the output file "output.shp" but it still gives the same error, it is a data access issue.&lt;/P&gt;&lt;P&gt;I have attached the network structure, and I have tried different combinations of the code indicating as input layer "UN\Network\Dirty Areas" or "UN\Dirty Areas" or "UN\Network Utility Network\Dirty Areas"; but it doesn't work.&lt;/P&gt;&lt;P&gt;I have attached the structure of the GDB in my previous post.&lt;/P&gt;&lt;P&gt;Thanks Dan !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035376#M1026</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2021-03-11T10:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035377#M1027</link>
      <description>&lt;P&gt;Maybe what you are trying to say is that I should not use the "FeatureClassToFeatureClass" command to extract Dirty Areas from Network?&lt;/P&gt;&lt;P&gt;I have checked that this function is one used by Arcgis pro 2.6 when I do the same operation from the GUI.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1035377#M1027</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2021-03-11T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1037038#M1045</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/921"&gt;@JonDeRose&lt;/a&gt; ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read many of your recent articles about UtilityNetwork, I think you are the most knowledgeable and experienced person on UtilityNetwork right now.&lt;BR /&gt;For months I am immersed in a migration process to UtilityNetwork, and all your articles are of great help to be updated on the improvements and new features that tool brings.&lt;BR /&gt;As you know topological errors and dirty areas are quite important to carry out migration, when source data does not always follow ESRI topological rules or connectivity rules may vary during a testing period or simply need to better communicate to client thousands of errors and dirty areas that need to be corrected before migrating to UN.&lt;/P&gt;&lt;P&gt;Because of this it becomes very important to be able to debug the dirty areas, to detect well which elements are involved and to correct error quickly. This is why I try to export the invalid areas to shp.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/data-management/dirty-area-management-with-the-utility-network/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/utility-network/data-management/dirty-area-management-with-the-utility-network/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1037038#M1045</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2021-03-16T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1194794#M1855</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419419"&gt;@geopamplona&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I am also trying to export the dirty areas of Utility network to the feature classs. I have tried the FeatureClassToFeatureClass tool but unfortunetely it does not export the feature. I thiink it does not recognise DirtyAreas as feature class. In addition, it does not give any errors as well. I wanted to ask if it worked for you?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;-Shlesha&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 06:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1194794#M1855</guid>
      <dc:creator>Acharya</dc:creator>
      <dc:date>2022-07-22T06:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export features from Dirty Area layer using Python (ArcGIS pro 2.6)</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1194795#M1856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/582754"&gt;@Acharya&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made it work by accessing the sublayer as follows:&lt;/P&gt;&lt;P&gt;d = arcpy.Describe(rf'{path_output_un_gdb}\{feature_dataset}\{network}')&lt;BR /&gt;layer_name = fr"UN_{d.DSID}_DirtyAreas"&lt;/P&gt;&lt;P&gt;da_path = fr"{path_output_un_gdb}\{layer_name}" #path of subnetwork layer dirty areas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First get DSID param from Utility network, after access to sublayer using "UN_{d.DSID}_DirtyAreas"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards !&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 06:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/export-features-from-dirty-area-layer-using-python/m-p/1194795#M1856</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2022-07-22T06:38:53Z</dc:date>
    </item>
  </channel>
</rss>

