<?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 Geoprocessor not working anymore in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125065#M7468</link>
    <description>&lt;P&gt;I created an add-in earlier this year. Used it for a few months. We went in a different direction but the client and their staff kinda fell short. So I went to go back and use the earlier add-in and now the TableToGeodatabase_conversion breaks pro. There is no error and pro just disappears. This had been working before and I can run the conversion from the Geoprocessing in Pro and Desktop with the same files and it runs fine.&lt;/P&gt;&lt;P&gt;The code always bails at line 10. Nothing is being caught and pro just closes and I get the send report&amp;nbsp; "ArcGIS Application has stopped working" dialog.&lt;/P&gt;&lt;P&gt;I had upgraded to 2.8 sometime in-between. I upgraded to 2.9 today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Geoprocessor gp = new Geoprocessor();
gp.OverwriteOutput = true;
gp.AddOutputsToMap = true;
IGeoProcessorResult myresult = new GeoProcessorResult();
IVariantArray parameters = new VarArray();
parameters.Add(Properties.Resources.csvFilePath);
parameters.Add(Properties.Resources.ltGDB);
try
{
	myresult = (IGeoProcessorResult)gp.Execute("TableToGeodatabase_conversion", parameters, null);
	while (myresult.Status == esriJobStatus.esriJobExecuting)
		Thread.Sleep(1000);

	parameters.RemoveAll();
	parameters.Add(Properties.Resources.gdbTablePath);
	parameters.Add("PARCELID");
	parameters.Add("!PARCELID!.replace('a','')");
	myresult = (IGeoProcessorResult)gp.Execute("CalculateField_management", parameters, null);

	gp = null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:39:30 GMT</pubDate>
    <dc:creator>MichaelKohler</dc:creator>
    <dc:date>2021-12-10T23:39:30Z</dc:date>
    <item>
      <title>Geoprocessor not working anymore</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125065#M7468</link>
      <description>&lt;P&gt;I created an add-in earlier this year. Used it for a few months. We went in a different direction but the client and their staff kinda fell short. So I went to go back and use the earlier add-in and now the TableToGeodatabase_conversion breaks pro. There is no error and pro just disappears. This had been working before and I can run the conversion from the Geoprocessing in Pro and Desktop with the same files and it runs fine.&lt;/P&gt;&lt;P&gt;The code always bails at line 10. Nothing is being caught and pro just closes and I get the send report&amp;nbsp; "ArcGIS Application has stopped working" dialog.&lt;/P&gt;&lt;P&gt;I had upgraded to 2.8 sometime in-between. I upgraded to 2.9 today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Geoprocessor gp = new Geoprocessor();
gp.OverwriteOutput = true;
gp.AddOutputsToMap = true;
IGeoProcessorResult myresult = new GeoProcessorResult();
IVariantArray parameters = new VarArray();
parameters.Add(Properties.Resources.csvFilePath);
parameters.Add(Properties.Resources.ltGDB);
try
{
	myresult = (IGeoProcessorResult)gp.Execute("TableToGeodatabase_conversion", parameters, null);
	while (myresult.Status == esriJobStatus.esriJobExecuting)
		Thread.Sleep(1000);

	parameters.RemoveAll();
	parameters.Add(Properties.Resources.gdbTablePath);
	parameters.Add("PARCELID");
	parameters.Add("!PARCELID!.replace('a','')");
	myresult = (IGeoProcessorResult)gp.Execute("CalculateField_management", parameters, null);

	gp = null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125065#M7468</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2021-12-10T23:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor not working anymore</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125300#M7471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your code is based on ArcObjects. It cant' work on ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 06:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125300#M7471</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-12-13T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor not working anymore</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125376#M7474</link>
      <description>&lt;P&gt;Back in May, everything ran just fine. The add-in has10 different geoprocessing calls in the same format and no problem. It seems that upgrading ArcPro broke this.&lt;/P&gt;&lt;P&gt;I'll try finding a more Pro solution.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 13:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125376#M7474</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2021-12-13T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor not working anymore</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125546#M7482</link>
      <description>&lt;P&gt;This pro addin was partly a port from a desktop addin so some arcobject type code was brought over. I had everything running and then I guess one of the pro updates stopped it from working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var progDlg = new ProgressDialog("Running Table to Table", "Cancel", 100, true);
progDlg.Show();
var progsrc=new CancelableProgressorSource(progDlg);            
var parameters = Geoprocessing.MakeValueArray(Properties.Resources.csvFilePath, Properties.Resources.ltGDB);
await Geoprocessing.ExecuteToolAsync("conversion.TableToGeodatabase", parameters, null, new CancelableProgressorSource(progDlg).Progressor, GPExecuteToolFlags.Default);
progDlg.Hide();&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/geoprocessor-not-working-anymore/m-p/1125546#M7482</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2021-12-13T19:11:49Z</dc:date>
    </item>
  </channel>
</rss>

