<?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 Error opening a connection with IWorkspaceFactory in a SOE in ArcGIS Enterprise Extensibility Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355181#M384</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developing a SOE to open a connection to a specific workspace using IWorkspaceFactory. I'm using a PostgreSQL geodatabase. Below is my code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory"));&lt;BR /&gt;IPropertySet propertySet = new PropertySetClass();&lt;BR /&gt;propertySet.SetProperty("SERVER", "vmsql201764.nco.inet");&lt;BR /&gt;propertySet.SetProperty("INSTANCE", "vmsql201764.nco.inet");&lt;BR /&gt;propertySet.SetProperty("DATABASE", "sde");&lt;BR /&gt;propertySet.SetProperty("USER", "sde");&lt;BR /&gt;propertySet.SetProperty("PASSWORD", sdePassword);&lt;BR /&gt;propertySet.SetProperty("AUTHENTICATION_MODE", "DBMS");&lt;BR /&gt;propertySet.SetProperty("VERSION", versionName);&lt;/P&gt;&lt;P&gt;IWorkspace workspace = workspaceFactory.Open(propertySet, 0);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It throws an Exception with message: "This operation is not allowed".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea? Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario Petta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 16:06:06 GMT</pubDate>
    <dc:creator>mariopetta</dc:creator>
    <dc:date>2023-11-30T16:06:06Z</dc:date>
    <item>
      <title>Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355181#M384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developing a SOE to open a connection to a specific workspace using IWorkspaceFactory. I'm using a PostgreSQL geodatabase. Below is my code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory"));&lt;BR /&gt;IPropertySet propertySet = new PropertySetClass();&lt;BR /&gt;propertySet.SetProperty("SERVER", "vmsql201764.nco.inet");&lt;BR /&gt;propertySet.SetProperty("INSTANCE", "vmsql201764.nco.inet");&lt;BR /&gt;propertySet.SetProperty("DATABASE", "sde");&lt;BR /&gt;propertySet.SetProperty("USER", "sde");&lt;BR /&gt;propertySet.SetProperty("PASSWORD", sdePassword);&lt;BR /&gt;propertySet.SetProperty("AUTHENTICATION_MODE", "DBMS");&lt;BR /&gt;propertySet.SetProperty("VERSION", versionName);&lt;/P&gt;&lt;P&gt;IWorkspace workspace = workspaceFactory.Open(propertySet, 0);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It throws an Exception with message: "This operation is not allowed".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea? Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario Petta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 16:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355181#M384</guid>
      <dc:creator>mariopetta</dc:creator>
      <dc:date>2023-11-30T16:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355185#M385</link>
      <description>&lt;P&gt;&lt;SPAN&gt;propertySet.SetProperty("VERSION", versionName);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the version name must be SDE.DEFAULT or a child version of SDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you can create a geodatabase connection file with the same parameters in ArcGIS Pro to test the connection to the geodatabase.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 16:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355185#M385</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-11-30T16:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355557#M386</link>
      <description>&lt;P&gt;I'm trying both with the SDE.DEFAULT version and with a child version of sde, but the error persists.&lt;/P&gt;&lt;P&gt;I will try using a connection file with the same parameters, to ensure all is ok with the connection to DB.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 07:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355557#M386</guid>
      <dc:creator>mariopetta</dc:creator>
      <dc:date>2023-12-01T07:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355586#M387</link>
      <description>&lt;P&gt;Creating a geodatabase connection file in ArcGIS Pro with the same parameters works, but the code above throws an Exception. Any other suggestion?&lt;/P&gt;&lt;P&gt;MP&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 09:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355586#M387</guid>
      <dc:creator>mariopetta</dc:creator>
      <dc:date>2023-12-01T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355606#M388</link>
      <description>&lt;P&gt;As a workaround, I created a geodatabase connection file on the server, through ArcGIS Pro. Then, in the SOE source code I opened an IWorkspace with IWorkspaceFactory.OpenFromFile and it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 11:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355606#M388</guid>
      <dc:creator>mariopetta</dc:creator>
      <dc:date>2023-12-01T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening a connection with IWorkspaceFactory in a SOE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355778#M389</link>
      <description>&lt;P&gt;Glad is working now.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/error-opening-a-connection-with-iworkspacefactory/m-p/1355778#M389</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-01T16:48:33Z</dc:date>
    </item>
  </channel>
</rss>

