Azure DevOps Collation Issue

Ahmed Amin 0 Reputation points
2026-08-06T09:27:54.23+00:00

Hi,

I have an issue with our Azure DevOps server2022.2, suddenly we are not able to create any project on it.

digging into the logs we found the below error message.

[02:30:51.723] Executing step: 'Create the Team Project' Integration.CreateTeamProject (4 of 10)

[02:30:51.810] [Error] Invalid collation 'Latin1_General_CI_AI_KI_WS'.

This issue raised right after upgrade from Azure DevOps Server 2020 to Azure DevOps server2022.2.

Our SQL Server collation is: Latin1_General_CI_AS_KS_WS

Azure DevOps database collation is: Latin1_General_CI_AS_KS_WS

Any help on how solve this issue.

Thanks & Regards

Ahmed Amin

Azure DevOps

Answer recommended by moderator
Ahmed Amin 0 Reputation points
2026-08-07T13:19:01.81+00:00

Thanks Mohamed,

I got reply from Microsoft with a workaround it is related to a stored procedure in the Configuration database "prc_CreateGroups".

by changing the below line

Before:

SELECT @collation = REPLACE(REPLACE(REPLACE(collation_name, '_AS', '_AI'),
'_CS', '_CI'), '_KS', '_KI') FROM sys.columns WHERE object_id = OBJECT_ID('tbl_Group')
AND name = 'DisplayName';

After:

SELECT @collation = REPLACE(REPLACE(collation_name, '_AS', '_AI'),'_CS', '_CI') FROM sys.columns WHERE object_id = OBJECT_ID('tbl_Group')AND name = 'DisplayName';

I am following up with Microsoft to make sure this will not be changed in future.

Thanks & Regards

Ahmed Amin

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Mohammad Altaf 360 Reputation points Microsoft External Staff Moderator
    2026-08-13T17:43:50.4366667+00:00

    Hi Ahmed

    Thank you for providing the additional details and logs.

    Based on the information shared, the SQL Server instance and Azure DevOps databases were configured with the expected collation, and existing projects continued to function normally. The issue was limited to the creation of new Team Projects and Project Collections after upgrading to Azure DevOps Server 2022.2.

    During the investigation, we reviewed the project creation logs, validated the SQL Server and Azure DevOps database collations, and identified that the failure occurred during the Create Team Project workflow when an invalid collation value was being generated.

    To address the issue, Microsoft recommended updating the logic in the prc_CreateGroups stored procedure within the Azure DevOps Configuration database so that the invalid collation value is no longer generated during Team Project and Collection creation.

    As a result, the recommended resolution is:

    • Verify that the SQL Server and Azure DevOps databases are using the expected collation.
    • Review the prc_CreateGroups stored procedure in the Azure DevOps Configuration database.
    • Apply the Microsoft-recommended modification to the stored procedure logic.
    • Retest Team Project or Collection creation after the change.

    If you are experiencing the same "Invalid collation 'Latin1_General_CI_AI_KI_WS'" error after upgrading to Azure DevOps Server 2022.2, reviewing and updating the prc_CreateGroups stored procedure as recommended by Microsoft should help resolve the issue.

    Additionally, it is recommended to monitor future Azure DevOps Server updates and release notes for a permanent product fix.

    If the assistance was helpful, kindly take a moment to click on Accept Answer and click on Yes. It will be helpful for other community members.

    Thank you!

    Was this answer helpful?

    0 comments No comments

  2. Erland Sommarskog 137.4K Reputation points MVP Volunteer Moderator
    2026-08-06T11:50:40.0933333+00:00

    That definitely sounds like a bug in the product that is difficult for you to address with less than changing the server and database collation.

    It seems that DevOps in some situation for some reason wants to enforce a collation that is accent- and kana-insensitive collation, so it overrides your server collation, but in the wrong way. There are no collations with KI in the name, but kana-insensitive collations simply recognised by the absence of KS in the name. That is, the correct collation name is Latin1_General_CI_AI_WS.

    My expertise is with SQL Server itself, and I am out of touch with Azure DevOps these days. I'm a little surprised that a bug like this would go unnoticed for four years, assuming the DevOps server 2022.2 was actually released in 2022. While kana-sensitive collations are not that common, they are not so rare that you would be the first one to run into this issue. So I would check if there are later versions/patches that addresses this problem. If you can't find any patch, open a support case with Microsoft.

    I would not recommend that you change the server and database collation, because this is a very complex and time-consuming operation. But as it happens I have an article that describes how to do this: https://www.sommarskog.se/collation-change.html And, of course you may have good reason to use a kana- and witdh-sensitive collation. Note however, that these settings only applies to data in Japanese.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.