<?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 Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880134#M5618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Based on&amp;nbsp;this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Geodatabase/AddDeleteFieldToFromFeatureClass/AddAField.cs"&gt;example&lt;/A&gt;&amp;nbsp;L. 90, I'm trying to create a FeatureClass in an Oracle database using the geoprocessing tool "managment.CreateTable".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;In the &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-table.htm"&gt;documentation&lt;/A&gt;&amp;nbsp;it's said that the argument "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;out_path" should be of type Workspace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-family: arial, helvetica, sans-serif;"&gt;Problem is, in this &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing#executing-a-tool-with-event-handling"&gt;documentation&lt;/A&gt;, it is said that only the following classes are supported :&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;Scalars – long, short, float, double, date, string&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry.SpatialReference&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry – point, line, polygon&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry.Envelope – supporting GP types of GPExtentEnv, GPExtent, GPEneveope&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Data.Field – supporting GPField and list of fields for GPFieldList&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Desktop.Mapping – Layer, StandaloneTable&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Data.Dataset – Table, FeatureClass&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;Based on those informations I'm using the following code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;private static Task&amp;lt;IGPResult&amp;gt; CreateFeatureClass(Geodatabase geodatabase,&lt;BR /&gt; string tableName,&lt;BR /&gt; Table templateTable)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var args = Geoprocessing.MakeValueArray(&lt;BR /&gt; geodatabase.GetConnectionString(),&lt;BR /&gt; GetTempoLayerNameFromFClassName(tableName),&lt;BR /&gt; templateTable,&lt;BR /&gt; null&lt;BR /&gt; );&lt;/P&gt;&lt;P&gt;System.Threading.CancellationTokenSource _cts = new System.Threading.CancellationTokenSource();&lt;/P&gt;&lt;P&gt;return Geoprocessing.ExecuteToolAsync("managment.CreateTable", args, null, _cts.Token,&lt;BR /&gt; (event_name, o) =&amp;gt; // implement delegate and handle events, o is message object.&lt;BR /&gt; {&lt;BR /&gt; switch (event_name)&lt;BR /&gt; {&lt;BR /&gt; case "OnValidate": // stop execute if any warnings&lt;BR /&gt; if ((o as IGPMessage[]).Any(it =&amp;gt; it.Type == GPMessageType.Warning))&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; case "OnProgressMessage":&lt;BR /&gt; string msg = string.Format("{0}: {1}", new object[] { event_name, (string)o });&lt;BR /&gt; System.Diagnostics.Debug.WriteLine(msg);&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; case "OnProgressPos":&lt;BR /&gt; string msg2 = string.Format("{0}: {1} %", new object[] { event_name, (int)o });&lt;BR /&gt; System.Diagnostics.Debug.WriteLine(msg2);&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The results of the request is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ErrorCode = 2147483647&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;HasWarnings = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IsFailed = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IsCanceled = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;There is no messages whatsoever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have no idea how to debug that part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Do you have any clue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2020 15:00:53 GMT</pubDate>
    <dc:creator>MarcusPolivirus</dc:creator>
    <dc:date>2020-07-09T15:00:53Z</dc:date>
    <item>
      <title>Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880134#M5618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Based on&amp;nbsp;this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Geodatabase/AddDeleteFieldToFromFeatureClass/AddAField.cs"&gt;example&lt;/A&gt;&amp;nbsp;L. 90, I'm trying to create a FeatureClass in an Oracle database using the geoprocessing tool "managment.CreateTable".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;In the &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-table.htm"&gt;documentation&lt;/A&gt;&amp;nbsp;it's said that the argument "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;out_path" should be of type Workspace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-family: arial, helvetica, sans-serif;"&gt;Problem is, in this &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing#executing-a-tool-with-event-handling"&gt;documentation&lt;/A&gt;, it is said that only the following classes are supported :&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;Scalars – long, short, float, double, date, string&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry.SpatialReference&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry – point, line, polygon&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Geometry.Envelope – supporting GP types of GPExtentEnv, GPExtent, GPEneveope&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Data.Field – supporting GPField and list of fields for GPFieldList&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Desktop.Mapping – Layer, StandaloneTable&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2d2e30;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;ArcGIS.Core.Data.Dataset – Table, FeatureClass&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; background: white;"&gt;Based on those informations I'm using the following code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;private static Task&amp;lt;IGPResult&amp;gt; CreateFeatureClass(Geodatabase geodatabase,&lt;BR /&gt; string tableName,&lt;BR /&gt; Table templateTable)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var args = Geoprocessing.MakeValueArray(&lt;BR /&gt; geodatabase.GetConnectionString(),&lt;BR /&gt; GetTempoLayerNameFromFClassName(tableName),&lt;BR /&gt; templateTable,&lt;BR /&gt; null&lt;BR /&gt; );&lt;/P&gt;&lt;P&gt;System.Threading.CancellationTokenSource _cts = new System.Threading.CancellationTokenSource();&lt;/P&gt;&lt;P&gt;return Geoprocessing.ExecuteToolAsync("managment.CreateTable", args, null, _cts.Token,&lt;BR /&gt; (event_name, o) =&amp;gt; // implement delegate and handle events, o is message object.&lt;BR /&gt; {&lt;BR /&gt; switch (event_name)&lt;BR /&gt; {&lt;BR /&gt; case "OnValidate": // stop execute if any warnings&lt;BR /&gt; if ((o as IGPMessage[]).Any(it =&amp;gt; it.Type == GPMessageType.Warning))&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; case "OnProgressMessage":&lt;BR /&gt; string msg = string.Format("{0}: {1}", new object[] { event_name, (string)o });&lt;BR /&gt; System.Diagnostics.Debug.WriteLine(msg);&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; case "OnProgressPos":&lt;BR /&gt; string msg2 = string.Format("{0}: {1} %", new object[] { event_name, (int)o });&lt;BR /&gt; System.Diagnostics.Debug.WriteLine(msg2);&lt;BR /&gt; _cts.Cancel();&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The results of the request is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ErrorCode = 2147483647&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;HasWarnings = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IsFailed = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IsCanceled = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;There is no messages whatsoever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have no idea how to debug that part.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Do you have any clue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:00:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880134#M5618</guid>
      <dc:creator>MarcusPolivirus</dc:creator>
      <dc:date>2020-07-09T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880135#M5619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a&amp;nbsp;geoprocessing expert, but I would try this:&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;var&lt;/SPAN&gt; args &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Geoprocessing&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;MakeValueArray&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
geodatabase&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;GetTempoLayerNameFromFClassName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tableName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
templateTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880135#M5619</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2021-12-12T11:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880137#M5621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was worth trying. &amp;nbsp;Hopefully someone from &lt;A href="https://community.esri.com/space/2087"&gt;Geoprocessing&lt;/A&gt;‌ can provide a better answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about Table.GetPath(). I had forgotten when we added it- you should see it later this summer in Pro 2.6. &amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880137#M5621</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-09T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880138#M5622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had success using the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;IGPResult result = await Geoprocessing.ExecuteToolAsync("CreateTable_management", new string[] {&lt;BR /&gt; gdbPath,&lt;BR /&gt; tableName&lt;BR /&gt; }, null, ctsToken, null, GPExecuteToolFlags.RefreshProjectItems);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this will create an empty table as it is not using a template object.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now you're not really sure which of the parameters is the problem, so I would suggest trying with just two parameters first to make sure you can create the empty table (gdbPath and tableName).&amp;nbsp; Then you are guaranteed to know that the problem is with the third parameter - the table template.&amp;nbsp; &amp;nbsp;I'm thinking this should be a string too, but am not completely sure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note also sing "CreateTable_management" or "management.CreateTable" should not make a difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 23:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880138#M5622</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2020-07-09T23:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880139#M5623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I confirm using your code is working.&lt;/P&gt;&lt;P&gt;It works also with Geoprocessing.MakeValueArray instead of new string[]{}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using "&lt;SPAN style="background-color: #ffffff;"&gt;management.CreateTable" is not working with your code, the error is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;ErrorCode = 2147483647&lt;BR /&gt;ReturnValue = &lt;BR /&gt;HasWarnings = False&lt;BR /&gt;IsFailed = True&lt;BR /&gt;IsCanceled = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;In deed, the parameters should be all strings, the following code is working well and create the fields from the template table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;var parameters = Geoprocessing.MakeValueArray(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;geodatabase.GetPath().AbsolutePath,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;tableName,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;System.IO.Path.Combine(templateTable.GetDatastore().GetPath().AbsolutePath, templateTable.GetName())&lt;BR /&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;return Geoprocessing.ExecuteToolAsync(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"CreateTable_management",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;parameters,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;null,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_cts.Token,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;null,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;GPExecuteToolFlags.RefreshProjectItems);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Is there a list somewhere for the geoprocessing tools including:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;id | name | description | parameters ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks again for your help Narelle and Rich.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880139#M5623</guid>
      <dc:creator>MarcusPolivirus</dc:creator>
      <dc:date>2020-07-13T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880140#M5624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Pro 2.6, &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic28915.html"&gt;GetPath() &lt;/A&gt;is now available on tables and other datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 20:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880140#M5624</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-29T20:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call Geoprocessing.ExecuteToolAsync on managment.CreateTable is failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880136#M5620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I tried :&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; args &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; Geoprocessing&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;MakeValueArray&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;
geodatabase.GetPath().AbsolutePath&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;GetTempoLayerNameFromFClassName&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;tableName&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;
templateTable&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;null&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The class Table has no GetPath method.&lt;/P&gt;&lt;P&gt;The geoprocessing tool shoud use the "templateTable" object as a template for the new Table (create the same fields i think and maybe other things).&lt;/P&gt;&lt;P&gt;Normally it is supported to use a Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method GetTempoLayerNameFromFClassName just return a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I end up with the same error :&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;ErrorCode = 2147483647&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;HasWarnings = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;IsFailed = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;IsCanceled = False&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-geoprocessing-executetoolasync-on-managment/m-p/880136#M5620</guid>
      <dc:creator>MarcusPolivirus</dc:creator>
      <dc:date>2021-12-12T11:06:05Z</dc:date>
    </item>
  </channel>
</rss>

