<?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: How to know plugin data source not installed in the machine .net sdk in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-know-plugin-data-source-not-installed-in/m-p/1304127#M9993</link>
    <description>&lt;P&gt;You can surround the creation of the&amp;nbsp;PluginDatastore by try ... catch as it is implemented here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Plugin/SimplePointPluginTest/TestCsv2.cs" target="_blank"&gt;arcgis-pro-sdk-community-samples/Plugin/SimplePointPluginTest/TestCsv2.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In essence you need this&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;try
{
  // you must use await in order to catch any exceptions in the new thread
  await QueuedTask.Run(() =&amp;gt;
  {
    using (var pluginws = new PluginDatastore(...))
    {
      using (var table = pluginws.OpenTable(table_name))
      {
      }
    }
  });
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}&lt;/LI-CODE&gt;&lt;P&gt;you could also check Pro's AssemblyCache folder for the Guided folder of the Plugin, but that's a bit more involved.&amp;nbsp; Either way there shouldn't be a crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 18:57:04 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-06-28T18:57:04Z</dc:date>
    <item>
      <title>How to know plugin data source not installed in the machine .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-know-plugin-data-source-not-installed-in/m-p/1304025#M9992</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I have a plugin data source project and also its addin project. Addin project uses a reference of the plugin project. But if only addin is installed and not its plugin, Pro is crashing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;How to check if the plugin is not installed in the machine in the addin project to stop Pro to crash?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 16:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-know-plugin-data-source-not-installed-in/m-p/1304025#M9992</guid>
      <dc:creator>ShaneTsh</dc:creator>
      <dc:date>2023-06-28T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to know plugin data source not installed in the machine .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-know-plugin-data-source-not-installed-in/m-p/1304127#M9993</link>
      <description>&lt;P&gt;You can surround the creation of the&amp;nbsp;PluginDatastore by try ... catch as it is implemented here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Plugin/SimplePointPluginTest/TestCsv2.cs" target="_blank"&gt;arcgis-pro-sdk-community-samples/Plugin/SimplePointPluginTest/TestCsv2.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In essence you need this&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;try
{
  // you must use await in order to catch any exceptions in the new thread
  await QueuedTask.Run(() =&amp;gt;
  {
    using (var pluginws = new PluginDatastore(...))
    {
      using (var table = pluginws.OpenTable(table_name))
      {
      }
    }
  });
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}&lt;/LI-CODE&gt;&lt;P&gt;you could also check Pro's AssemblyCache folder for the Guided folder of the Plugin, but that's a bit more involved.&amp;nbsp; Either way there shouldn't be a crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 18:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-know-plugin-data-source-not-installed-in/m-p/1304127#M9993</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-06-28T18:57:04Z</dc:date>
    </item>
  </channel>
</rss>

