<?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 Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363248#M38071</link>
    <description>&lt;P&gt;ArcGIS Enterprise 10.9.1&lt;/P&gt;&lt;P&gt;Pro 3.2&lt;/P&gt;&lt;P&gt;SQL Server 2016&lt;/P&gt;&lt;P&gt;I have branch-versioned data in a feature service. I made approx. 4000 edits in a version. Now however I cannot reconcile this version.&amp;nbsp; When I do, I get a popup in ArcGIS Pro:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR: A database error was encountered.&amp;nbsp; Please contact your system administrator to review the server logs.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I check the ArcGIS Server logs, I see this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Underlying DBMS error [[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Expression type int is invalid for COLLATE clause.]&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to troubleshoot this?&amp;nbsp; I'd like to not lose the edits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 19:54:19 GMT</pubDate>
    <dc:creator>DrewDowling</dc:creator>
    <dc:date>2023-12-20T19:54:19Z</dc:date>
    <item>
      <title>Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363248#M38071</link>
      <description>&lt;P&gt;ArcGIS Enterprise 10.9.1&lt;/P&gt;&lt;P&gt;Pro 3.2&lt;/P&gt;&lt;P&gt;SQL Server 2016&lt;/P&gt;&lt;P&gt;I have branch-versioned data in a feature service. I made approx. 4000 edits in a version. Now however I cannot reconcile this version.&amp;nbsp; When I do, I get a popup in ArcGIS Pro:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR: A database error was encountered.&amp;nbsp; Please contact your system administrator to review the server logs.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I check the ArcGIS Server logs, I see this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Underlying DBMS error [[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Expression type int is invalid for COLLATE clause.]&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to troubleshoot this?&amp;nbsp; I'd like to not lose the edits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363248#M38071</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2023-12-20T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363269#M38072</link>
      <description>&lt;P&gt;Branch versioning isn't something I regularly consult on, but I believe I saw a client do this.&amp;nbsp; They were branch versioning but trying to traditional reconcile.&amp;nbsp; Are you following the branch versioning specific instructions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/reconcile-and-post-edits-to-a-branch-version.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/reconcile-and-post-edits-to-a-branch-version.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 20:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363269#M38072</guid>
      <dc:creator>Scott_Tansley</dc:creator>
      <dc:date>2023-12-20T20:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363287#M38073</link>
      <description>&lt;P&gt;Thanks for the link Scott.&amp;nbsp; The feature service and the editing workflow have been in place and working fine for over a year, so I'm sure it's not the service or how we are reconciling.&lt;/P&gt;&lt;P&gt;To test this I created a new version, repeated 20 of the edits and it rec and posted fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've started digging into the SQL running on the database but so far can't isolate and COLLATE command using SQL Profiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 20:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363287#M38073</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2023-12-20T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363316#M38074</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1327"&gt;@DrewDowling&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Esri Support Case 1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;- Customer was facing the following error while reconciling edits on a branch versioned geodatabase&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;"Underlying DBMS error [[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Expression type int is invalid for COLLATE clause.] [StreetNameAliasTable]" in ArcGIS Pro.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;- &lt;SPAN class=""&gt;Resolution:&amp;nbsp;&lt;/SPAN&gt;The issue was resolved after user re-published the service.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Esri Support Case 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Customer gets this error in both ArcPro 2.9 and 3.1.&lt;/P&gt;&lt;P&gt;- Customer has a version of the database with a large number of feature service edits that cannot be reconciled/posted.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Error when reconciling branch versioned data: Underlying DBMS error [[Microsoft ODBC Driver 17 for SQL Server][SQL Server]Expression type int is invalid for COLLATE clause.]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Resolution:&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;The customer found that reconciling more than 1000 edits at a time caused the reconcile process to fail. They developed a workaround to in which they are only reconciling 1000 (out of the 300 edits in the problematic version) edits at a time.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;if you still encounter the issue then please open a ticket with Esri Technical Support to investigate the problem further, an Esri Support Engineer will help you troubleshoot the issue.&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Troubleshooting Tips&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Provide Esri Support with the following information to help identify the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;1. Capture the ArcSDE Intercept when running ArcGIS Pro.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-set-up-an-sdeintercept-log-file-on-a-client-mach-000014807" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/how-to-set-up-an-sdeintercept-log-file-on-a-client-mach-000014807&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-diagnose-arcsde-connection-and-performance-issue-000010355" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/how-to-diagnose-arcsde-connection-and-performance-issue-000010355&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: Esri Support might ask for the ArcSDE Intercept from the ArcGIS Server machine as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Capture a SQL Server Trace while running ArcGIS Pro&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/tools/sql-server-profiler/create-a-trace-sql-server-profiler?view=sql-server-ver16" target="_blank" rel="noopener"&gt;Create a Trace - SQL Server Profiler | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extended Events&lt;/STRONG&gt; replace the deprecated&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/relational-databases/sql-trace/sql-trace?view=sql-server-ver16" target="_blank" rel="noopener"&gt;SQL Trace&lt;/A&gt;&amp;nbsp;and &lt;STRONG&gt;SQL Server Profiler&lt;/STRONG&gt; features.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/extended-events?view=sql-server-ver16" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/extended-events?view=sql-server-ver16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/quick-start-extended-events-in-sql-server?view=sql-server-ver16" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/quick-start-extended-events-in-sql-server?view=sql-server-ver16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query Store&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://cloudblogs.microsoft.com/sqlserver/2022/08/18/query-store-is-enabled-by-default-in-sql-server-2022/" target="_blank" rel="noopener"&gt;https://cloudblogs.microsoft.com/sqlserver/2022/08/18/query-store-is-enabled-by-default-in-sql-server-2022/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 21:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363316#M38074</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-20T21:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363371#M38078</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt; .&amp;nbsp; This is an interesting problem.&amp;nbsp; I hope it gets a fix soon, as I can see our editors making large numbers of edits on particularly big projects.&lt;/P&gt;&lt;P&gt;For now, my fix was to do the edits in the default version.&amp;nbsp; I'm the geodatabase admin so I have the permissions to edit sde.Default directly.&amp;nbsp; This won't be an option if one of the editors comes across this problem.&lt;/P&gt;&lt;P&gt;These are the steps I used to fix the problem should anybody else come across it.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;From the version that won't reconcile and contains the edits, export the table to a local FGDB&lt;/LI&gt;&lt;LI&gt;Switch to the default version, connected to Portal as a user with rights to edit sde.Default&lt;/LI&gt;&lt;LI&gt;Join local copy of data to&amp;nbsp; feature layer&lt;/LI&gt;&lt;LI&gt;Use the field calculator tool to update feature layer attributes with local copy attributes.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 20 Dec 2023 23:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363371#M38078</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2023-12-20T23:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Databse error during reconcile reconcile: Expression type int is invalid for COLLATE clause.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363383#M38079</link>
      <description>&lt;P&gt;&lt;STRONG&gt;FYI:&amp;nbsp;&lt;/STRONG&gt; &lt;A href="https://support.esri.com/en-us/knowledge-base/bug-asynchronous-operations-are-being-allowed-on-protec-000027194" target="_blank" rel="noopener"&gt;Esri Support - Asynchronous operations are being allowed on protected default versions for portal users that are not version administrators&lt;/A&gt;&lt;BR /&gt;&lt;EM&gt;"Asynchronous operations are being allowed on protected default versions for portal users that are not version administrators"&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 23:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/databse-error-during-reconcile-reconcile/m-p/1363383#M38079</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-12-20T23:52:17Z</dc:date>
    </item>
  </channel>
</rss>

