<?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: IFeatureWorkspace is empty in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543623#M14705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that just because it gives an error:&amp;nbsp; no children available, doesn't mean that the workspace isn't valid.&amp;nbsp; Once the workspace is defined, a request to get a table is made and&amp;nbsp; I was getting an error when trying to open a table.&amp;nbsp; So I thought it was because of the no children error, but it wasn't.&amp;nbsp; When opening the table, I was including the name of the schema with the name of the table:&amp;nbsp; schema.Table_Name&amp;nbsp; and that's what was the real problem.&amp;nbsp; I just needed to use the name of the table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 19:06:26 GMT</pubDate>
    <dc:creator>soniadickerson1</dc:creator>
    <dc:date>2014-11-17T19:06:26Z</dc:date>
    <item>
      <title>IFeatureWorkspace is empty</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543621#M14703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm unable to get a workspace from an sde connection and assign the pFeatureWorkspace to it.&amp;nbsp; Here's the VB code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; factoryType &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.GetTypeFromProgID(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"esriDataSourcesGDB.SdeWorkspaceFactory"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; pWorkspaceFactory &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IWorkspaceFactory2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; pFeatureWorkspaceA &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; pFeatureWorkspaceB &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; featureWorkspace &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;‘thePropSet, theWorkspace, fimWorkspace, fimPropSet are global variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pWorkspaceFactory = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Activator&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.CreateInstance(factoryType), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'ReadConnectionPropertiesFromFile&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #303030;"&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; background: none repeat scroll 0% 0% white;"&gt;theWorkspace = pWorkspaceFactory.OpenFromFile(theFilesLoc &amp;amp; "dnrgdrs-prod1-pg-dc-pfmm_dev.sde", 0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #303030; background: none repeat scroll 0% 0% white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thePropSet = theWorkspace.ConnectionProperties&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; background: none repeat scroll 0% 0% white;"&gt;fimWorkspace = pWorkspaceFactory.OpenFromFile(theFilesLoc &amp;amp; "\FOR01-ORA-DC-LRSDB-FIM-DEFAULT.sde", 0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fimPropSet = fimWorkspace.ConnectionProperties&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;‘Both of these give empty results&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureWorkspaceA = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(theWorkspace, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureWorkspaceB = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(fimWorkspace, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;IFeatureWorkspace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;The pFeatureWorkspace is always empty. The database has data, but somehow it can't find it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;When debugging, I get "No children available"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG __jive_id="29789" alt="EmptyWorkspace.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/29789_EmptyWorkspace.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543621#M14703</guid>
      <dc:creator>soniadickerson1</dc:creator>
      <dc:date>2014-11-13T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureWorkspace is empty</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543622#M14704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you confirmed that &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #303030; font-size: 9.5pt; font-style: inherit; font-family: Consolas; font-weight: inherit; background-position: repeat;"&gt;theWorkspace is not Nothing?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543622#M14704</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-11-17T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureWorkspace is empty</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543623#M14705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that just because it gives an error:&amp;nbsp; no children available, doesn't mean that the workspace isn't valid.&amp;nbsp; Once the workspace is defined, a request to get a table is made and&amp;nbsp; I was getting an error when trying to open a table.&amp;nbsp; So I thought it was because of the no children error, but it wasn't.&amp;nbsp; When opening the table, I was including the name of the schema with the name of the table:&amp;nbsp; schema.Table_Name&amp;nbsp; and that's what was the real problem.&amp;nbsp; I just needed to use the name of the table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543623#M14705</guid>
      <dc:creator>soniadickerson1</dc:creator>
      <dc:date>2014-11-17T19:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureWorkspace is empty</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543624#M14706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what version on ArcGIS are you using? and is it a standalone application? Starting from 10.0 version in standalone application Runtime license binding is a requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 21:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543624#M14706</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-11-18T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureWorkspace is empty</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543625#M14707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shriram,&lt;/P&gt;&lt;P&gt;Thank you for asking.&amp;nbsp; I'm using 10.2 and it is an addin.&amp;nbsp; However,&amp;nbsp; the no children error wasn't actually the problem.&amp;nbsp; The opentable method on the feature workspace wouldn't return anything, so I thought it was because of that error.&amp;nbsp; However, it was actually because I was adding the schema name with the table.&amp;nbsp; This was an extension developed for 9.3 and at that time, you needed to have the schema name with the table name.&amp;nbsp; With 10.2, you don't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you so much for participating. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureworkspace-is-empty/m-p/543625#M14707</guid>
      <dc:creator>soniadickerson1</dc:creator>
      <dc:date>2014-11-19T13:03:17Z</dc:date>
    </item>
  </channel>
</rss>

