You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Msg 10337, Level 16, State 1, Line 1
Object reference not set to an instance of an object.
See the Execution Plan tab for details of where this error occurred
It does work however when joining on the azureactivedirectoryobjectid instead.
Deployment: Online
DB Version: 9.2.24071.168
Connection Controls Version: 1.2023.6.56
XrmToolBox Version: 1.2023.12.68
Tool Version: 9.2.0.0
The text was updated successfully, but these errors were encountered:
This is most likely due to different collations being used in the different environments. I'll look at improving the error reporting in the next update, but if this is the problem you can work around it by specifying the collation to use for the comparison, e.g.
Looks like that was it, specifying the collation does allow the query to work.
Looking into the underlying cause: I'm not sure why these environments have different collations, they were created near the same time with the same settings, same region (Canada), same language (English United States).
DEV has 1033_CI_AI while PROD has 4105_CI_AI
To check I used select SERVERPROPERTY('collation')
The following query to join the
systemuser
table between two environments fails:With the following error:
It does work however when joining on the
azureactivedirectoryobjectid
instead.The text was updated successfully, but these errors were encountered: