<?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: IWorkspaceFactory.Open Fails in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87824#M2296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind. I just realized TOTALLY BY CHANCE that above error code means 'License not initialized'. VBA didn't recognize that error and gave me generic description of 'Automation Error'. BTW where one does find a list of ArcObjects automation error codes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 13:06:29 GMT</pubDate>
    <dc:creator>ManuelF_</dc:creator>
    <dc:date>2010-06-09T13:06:29Z</dc:date>
    <item>
      <title>IWorkspaceFactory.Open Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87823#M2295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is wrong with this code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPropset As IPropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPropset = New PropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFact As IWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkspace As IWorkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pPropset.SetProperty "DATABASE", "C:\New Personal Geodatabase.mdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFact = New AccessWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkspace = pFact.Open(pPropset, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Last line gives me Automation Error -2147220952 (80040228)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any input.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 09:36:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87823#M2295</guid>
      <dc:creator>ManuelF_</dc:creator>
      <dc:date>2010-06-09T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspaceFactory.Open Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87824#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind. I just realized TOTALLY BY CHANCE that above error code means 'License not initialized'. VBA didn't recognize that error and gave me generic description of 'Automation Error'. BTW where one does find a list of ArcObjects automation error codes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 13:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87824#M2296</guid>
      <dc:creator>ManuelF_</dc:creator>
      <dc:date>2010-06-09T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspaceFactory.Open Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87825#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Never mind. I just realized TOTALLY BY CHANCE that above error code means 'License not initialized'. VBA didn't recognize that error and gave me generic description of 'Automation Error'. BTW where one does find a list of ArcObjects automation error codes?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's also good practice to have file paths without spaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS tends to frown on such things. Good luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 17:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87825#M2297</guid>
      <dc:creator>RuchiraWelikala</dc:creator>
      <dc:date>2010-06-09T17:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspaceFactory.Open Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87826#M2298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;BTW where one does find a list of ArcObjects automation error codes?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error codes in ArcObjects are not unique - the meaning of an error depends on the context of the error. For example, there is an enum type in the Geodatabase library that defines the values of Geodatabase error codes known as fdoError, but there are comparable enum types for virtually every other library. In many cases the same numeric values are re-used across multiple libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a utility I built a while back to make life easier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/arcgisengine/dotnet/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16621"&gt;http://resources.esri.com/arcgisengine/dotnet/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16621&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because there are so many error enums in ArcObjects, it uses an XML configuration file to define a subset of types that you're interested in. The default configuration file limits the errors to data access, geometry and (I believe) network errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 21:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87826#M2298</guid>
      <dc:creator>JamesMacKay</dc:creator>
      <dc:date>2010-06-09T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspaceFactory.Open Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87827#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, mackayj80, I will look at it. I guess every bit helps...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 15:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspacefactory-open-fails/m-p/87827#M2299</guid>
      <dc:creator>ManuelF_</dc:creator>
      <dc:date>2010-06-10T15:22:15Z</dc:date>
    </item>
  </channel>
</rss>

