<?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: IDifferenceCursor-&amp;gt;Next esriDifferenceTypeDeleteNoChange not detecting changes in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/idifferencecursor-gt-next/m-p/690473#M18555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: It would seem that when an xml workspace is used to create the schema and populate the data the problem always occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2020 15:31:10 GMT</pubDate>
    <dc:creator>afrenette</dc:creator>
    <dc:date>2020-01-24T15:31:10Z</dc:date>
    <item>
      <title>IDifferenceCursor-&gt;Next esriDifferenceTypeDeleteNoChange not detecting changes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/idifferencecursor-gt-next/m-p/690472#M18554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two very similar setups and in the case of the first the following code is simply not detecting the delete operation while the second is being detected without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both geodatabases are on the same SQL Server using windows user authentication.&lt;/P&gt;&lt;P&gt;Both were created using the Create Enterprise Geodatabase tool in ArcMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first was created using an ArcMap 10.5.1 and the second using ArcMap 10.3.1 but I have had the problem occur in other installations using version 10.2.1 on Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both have three versions, sde.DEFAULT, sde.TEST1 and sde.TEST2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how to make this work consistently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: white;"&gt;STDMETHODIMP&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;CADWorkspaceExtension&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;OnPost&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;BSTR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;targetVersionName&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;)//sde.DEFAULT
&lt;/SPAN&gt; &lt;SPAN style="color: #b4b4b4;"&gt;{
&lt;/SPAN&gt;...
&amp;nbsp;CString&amp;nbsp;&lt;SPAN style="color: white;"&gt;csName&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;CTools&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;GetTableNameFromClass&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipFeatureClass&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;);
&lt;/SPAN&gt;&amp;nbsp;IFeatureClassPtr&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipFeatureClassCompare&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;;

 //ipFeatureWorkspaceParent = &lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;sde.DEFAULT in both cases
&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipFeatureWorkspaceParent&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;OpenFeatureClass&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;csName&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;AllocSysString&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(),&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipFeatureClassCompare&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;);

&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ITablePtr&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipDifferenceTable&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipFeatureClassCompare&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;);
&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;IVersionedTablePtr&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipVersionedTable&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipFeatureClass&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;);&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&lt;SPAN style="color: #569cd6;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipDifferenceTable&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt; 
 {
&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp; long&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;nOID&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;&amp;nbsp; IRowPtr&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipRow&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;&amp;nbsp; IDifferenceCursorPtr&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;ipDifferenceCursor&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;&amp;nbsp; ipVersionedTable&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;Differences&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipDifferenceTable&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;esriDifferenceTypeDeleteNoChange&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;,&lt;/SPAN&gt;&amp;nbsp;
&lt;SPAN style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipDifferenceCursor&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;);
&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp; while&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;SUCCEEDED&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipDifferenceCursor&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;Next&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;(&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;nOID&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;,&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;ipRow&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;))&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: white;"&gt;nOID&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;!=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;nbsp; {
&lt;/SPAN&gt;&lt;SPAN style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Not Reaching here in case 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Reaches here in case 2
&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;nbsp; }
 }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/idifferencecursor-gt-next/m-p/690472#M18554</guid>
      <dc:creator>ChristianDextraze</dc:creator>
      <dc:date>2021-12-12T05:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: IDifferenceCursor-&gt;Next esriDifferenceTypeDeleteNoChange not detecting changes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/idifferencecursor-gt-next/m-p/690473#M18555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: It would seem that when an xml workspace is used to create the schema and populate the data the problem always occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/idifferencecursor-gt-next/m-p/690473#M18555</guid>
      <dc:creator>afrenette</dc:creator>
      <dc:date>2020-01-24T15:31:10Z</dc:date>
    </item>
  </channel>
</rss>

