<?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: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033812#M20271</link>
    <description>&lt;P&gt;You can also do it without a view ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KirkKuykendall1_0-1615174591270.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7779iE529587BF276EF1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KirkKuykendall1_0-1615174591270.png" alt="KirkKuykendall1_0-1615174591270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 03:36:42 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2021-03-08T03:36:42Z</dc:date>
    <item>
      <title>IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033653#M20265</link>
      <description>&lt;P&gt;My company recently moved our SQL Server from one location to another and also updated it from V11 to V13. I have a .&lt;STRONG&gt;NET app&lt;/STRONG&gt; that takes data from the SQL Server table and converts it to a point FeatureClass in a local FileGeoDB. &lt;STRONG&gt;The process has worked great up until the server move&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I've setup a connection to the new SQL Server and that works. I can enumerate the tables on the source database. So am confident the connection to the new SQL Server is solid.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dim pWkspSource As IWorkspace = OpenSqlDbWorkspace(ci)&lt;/LI-CODE&gt;&lt;P&gt;I setup&amp;nbsp; up my target workspace, dataset, and feature class and then I attempt to convert via&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dim pFeatDataConverter As IFeatureDataConverter = New FeatureDataConverter

Dim pEnumInvldObj As IEnumInvalidObject = pFeatDataConverter.ConvertFeatureClass(fcSourceName, pQryFltr, fdTargetName, fcTargetName, Nothing, Nothing, "", 1000, 0)&lt;/LI-CODE&gt;&lt;P&gt;At this point the process just hangs at&amp;nbsp;ConvertFeatureClass with no errors or exceptions.&lt;/P&gt;&lt;P&gt;What could be the issue and/or what can I try to troubleshoot the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 23:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033653#M20265</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-05T23:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033663#M20266</link>
      <description>&lt;P&gt;Are you able to copy and paste the featureclass successfully within sql server in the catalog view of arcmap?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 01:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033663#M20266</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-06T01:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033670#M20267</link>
      <description>&lt;P&gt;The source is not a feature class, only a Table. In .NET I define it as an XYTable and with a QueryFilter that gets converted to a Feature Class. Let me see if I can do that&amp;nbsp; manually with a small subset.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 02:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033670#M20267</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-06T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033740#M20268</link>
      <description>&lt;P&gt;Ok her are my tests: The db/table I am working with is&amp;nbsp;[WorldData].[dbo].[Obstacles] and has ~11.5 million records. In ArcMap 10.8.1 here is what I do to work with the data:&lt;/P&gt;&lt;P&gt;1. In the Catalog I use Add Database Connection, I enter my info and "AcmeCo002.sde" is created.&lt;/P&gt;&lt;P&gt;2. I double-click on the item to connect to the db and the available tables are shown in the Catalog.&lt;/P&gt;&lt;P&gt;3. I drag the table [Obstacles] to the map and it shows up as a ITable in the TOC.&lt;/P&gt;&lt;P&gt;4. At this point I know I want a small subset of the data so I right-click on the ITable and under Definition Query I enter:&amp;nbsp;(xpos&amp;gt;=-9.5 AND xpos&amp;lt;=-8.6) AND (ypos&amp;gt;=38.3 AND ypos&amp;lt;=39.0). Using this same exact filter in SSMS gets me 8000 records. I click on the Verify button and it says all is good.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AbelPerez_0-1615072336369.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7758i53DA7FB298E4B11C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AbelPerez_0-1615072336369.png" alt="AbelPerez_0-1615072336369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. I then want to view this small subset so I right-click on the ITable and choose Display XY Data. This process took several hours at the very least! I left after 2 hours and came back in the morning but there was an event layer created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AbelPerez_1-1615078049417.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7759iD6369900FE61D08F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AbelPerez_1-1615078049417.png" alt="AbelPerez_1-1615078049417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;6. Displaying the event layer takes a veryyyyyyyyy longggg time which to me says that ALL the records were exported and not just those in the Definition Query of the ITable. Sure enough after about 20 minutes all records in the table are displayed. All 11.5 million of them.&lt;/P&gt;&lt;P&gt;7. This is not how the ITable conversion worked in the past or how it's intended to work. Why would I need all 11.5M records when my Query Definition filters to 8K records?&lt;/P&gt;&lt;P&gt;8. This is probably why my .NET code is "hanging" because the IQueryFilter is not being applied when the&amp;nbsp;&lt;SPAN&gt;ConvertFeatureClass&amp;nbsp;executes. It sounds like its copying all 11.5M records and just taking hours to process.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 00:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033740#M20268</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-07T00:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033778#M20269</link>
      <description>&lt;P&gt;That's strange.&amp;nbsp; Maybe a bug?&amp;nbsp; If so, it might take a while for it to get fixed.&amp;nbsp; Have you tried it in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;As a workaround, consider creating a view in SQL server ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create view testxyPoints as 
Select testid
	,x
	,y	
	,geometry::Point(x,y,3857) as shape
from Testxy;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then in Arcmap, instead of adding an XY layer, add an SQL query layer. (File&amp;gt; Add Data&amp;gt; Add Query Layer)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KirkKuykendall1_0-1615141628626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7765iF1423F90D919189E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KirkKuykendall1_0-1615141628626.png" alt="KirkKuykendall1_0-1615141628626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then see if FeatureDataConverter can digest that.&lt;/P&gt;&lt;P&gt;You can also do it without creating a view ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KirkKuykendall1_0-1615174471221.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7778i4528C2A6D79851C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KirkKuykendall1_0-1615174471221.png" alt="KirkKuykendall1_0-1615174471221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 03:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033778#M20269</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-08T03:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033808#M20270</link>
      <description>&lt;P&gt;The app actually uses ArcObjects SDK for automation so moving to Pro is not an option at this time. Also I do not the dba of the SQL Server so getting a view implemented would take some effort and time. I guess my only move here is to file an incident.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 03:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033808#M20270</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-08T03:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033812#M20271</link>
      <description>&lt;P&gt;You can also do it without a view ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KirkKuykendall1_0-1615174591270.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7779iE529587BF276EF1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KirkKuykendall1_0-1615174591270.png" alt="KirkKuykendall1_0-1615174591270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 03:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033812#M20271</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-08T03:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033983#M20272</link>
      <description>&lt;P&gt;Check the "Define spatial properties..." to speed things up, the "discover" option does a full scan of the query.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1033983#M20272</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-03-08T16:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1034692#M20275</link>
      <description>&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;P&gt;So on this test using the Query Layer I chose my connection and then my SELECT with my WHERE. It complains that my table doesn't have an OID, which it doesn't. I just choose STATEID which is a number but not unique to each record.&lt;/P&gt;&lt;P&gt;It converts it to an ITable. Then I can choose Display XY Data and I can now see that my selection of points is where they should be and it is definitely NOT the 11.5 million points in the source table.&lt;/P&gt;&lt;P&gt;So I'm getting close.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 21:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1034692#M20275</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-09T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureDataConverter.ConvertFeatureClass just hangs on SQLServer to FeatureCLass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1034973#M20276</link>
      <description>&lt;P&gt;I've connected to another SQL Server and that one also fails on&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception thrown: 'System.Runtime.InteropServices.COMException' in MyApp.exe&lt;BR /&gt;System.Runtime.InteropServices.COMException (0x80040205): Create output feature class failed&lt;BR /&gt;at ESRI.ArcGIS.Geodatabase.IFeatureDataConverter.ConvertFeatureClass(IFeatureClassName InputDatasetName, IQueryFilter InputQueryFilter, IFeatureDatasetName outputFDatasetName, IFeatureClassName outputFClassName, IGeometryDef OutputGeometryDef, IFields OutputFields, String configKey, Int32 FlushInterval, Int32 parentHWND)&lt;BR /&gt;at ....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 16:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeaturedataconverter-convertfeatureclass-just/m-p/1034973#M20276</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2021-03-10T16:30:12Z</dc:date>
    </item>
  </channel>
</rss>

