A unified data governance solution that helps manage, protect, and discover data across your organization
SHIR connection issue resolved by enabling Windows Long Paths
We experienced a connection issue while configuring the Microsoft Purview Self-Hosted Integration Runtime (SHIR). After troubleshooting, we found that the problem was related to the Windows path length limitation (MAX_PATH).
The following registry setting resolved the issue:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
reg query "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled
After enabling long paths and restarting the affected services/server, the SHIR connection worked successfully. This may help in scenarios where connection strings, cache paths, or temporary folders exceed the default Windows path length limitation.