<?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: conversion.ExportFeatures to shapefile with Attribute Table don't work in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/conversion-exportfeatures-to-shapefile-with/m-p/1667842#M13265</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have missed one parameter '&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-features.htm" target="_self"&gt;Field Map&lt;/A&gt;'. Try to change line 28 like below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Return Geoprocessing.MakeValueArray(currentLayer, out_features, where_clause)&lt;/LI-CODE&gt;&lt;P&gt;Other values are default and optional&lt;/P&gt;&lt;P&gt;For geoprocessing itself you don't need MCT thread (QueuedTask.Run)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2025 12:30:53 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-11-21T12:30:53Z</dc:date>
    <item>
      <title>conversion.ExportFeatures to shapefile with Attribute Table don't work</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/conversion-exportfeatures-to-shapefile-with/m-p/1667454#M13262</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am try to export to shapefile with&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;if I try to export&amp;nbsp;&amp;nbsp;Attribute Table nothing happens&amp;nbsp; anyone who can help me with this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Dim out_features = "C:\PATH\file.shp"&lt;BR /&gt;Dim where_clause = "TYPE = 80"&lt;BR /&gt;Dim use_field_alias_as_name = "NOT_USE_ALIAS"&lt;BR /&gt;Dim use_Table = "" 'Export Attribute Table&lt;BR /&gt;Dim sort_field = "None"&lt;BR /&gt;&lt;BR /&gt;Return Geoprocessing.MakeValueArray(currentLayer, out_features, where_clause,use_Table,use_field_alias_as_name, sort_field)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; Protected async Overrides Sub OnClick()
        Try


            Dim currentLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType(Of FeatureLayer).FirstOrDefault

            If currentLayer.ConnectionStatus = ConnectionStatus.Broken Then

            End If
            If currentLayer.SelectionCount = 0 Then

            Else

                Dim out_features = "C:\PATH\file.shp"
                Dim where_clause = "TYPE = 80"
                Dim use_field_alias_as_name = "NOT_USE_ALIAS"
                Dim sort_field = "None"

                Dim progDlg = New ProgressDialog("Export map" &amp;amp; vbCrLf &amp;amp; "Go get a coffee", "Cancel")
                progDlg.Show()
                Dim progsrc=New CancelableProgressorSource(progDlg)

                Dim outpath = System.IO.Path.GetDirectoryName(out_features)


                If Not System.IO.Directory.Exists(outpath) Then System.IO.Directory.CreateDirectory(outpath)
                Dim valueArray = Await QueuedTask.Run(Function()
                                                          Return Geoprocessing.MakeValueArray(currentLayer, out_features, where_clause, use_field_alias_as_name, sort_field)
                                                      End Function)
                Dim flags As GPExecuteToolFlags = GPExecuteToolFlags.GPThread
                Dim gpResult As IGPResult = Await Geoprocessing.ExecuteToolAsync("conversion.ExportFeatures", valueArray, Nothing, progsrc.CancellationTokenSource.Token, Nothing, flags)

                progDlg.Hide()
                Dim val = If(String.IsNullOrEmpty(gpResult.ReturnValue), $"Error in gp tool: {gpResult.ErrorMessages}", $"Ok: {gpResult.ReturnValue}")
            End If

        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 09:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/conversion-exportfeatures-to-shapefile-with/m-p/1667454#M13262</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2025-11-20T09:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: conversion.ExportFeatures to shapefile with Attribute Table don't work</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/conversion-exportfeatures-to-shapefile-with/m-p/1667842#M13265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have missed one parameter '&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-features.htm" target="_self"&gt;Field Map&lt;/A&gt;'. Try to change line 28 like below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Return Geoprocessing.MakeValueArray(currentLayer, out_features, where_clause)&lt;/LI-CODE&gt;&lt;P&gt;Other values are default and optional&lt;/P&gt;&lt;P&gt;For geoprocessing itself you don't need MCT thread (QueuedTask.Run)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 12:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/conversion-exportfeatures-to-shapefile-with/m-p/1667842#M13265</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-11-21T12:30:53Z</dc:date>
    </item>
  </channel>
</rss>

