Closed
Service / Embedded Service
SOQL queries on CaseComment can return invalid cross referenceId error in Orgs where "Chatter Answers" is enabled
Summary
In orgs where "Chatter Answers" is enabled, executing SOQL queries on the CaseComment object can result in invalid cross referenceId errors.
When "Chatter Answers" is enabled in an org the the server will process the SOQL query on CaseComment by checking each query result row and populating fields like PhotoUrl, CreatorFullPhotoUrl, and CreatorName. During that process a NoDataFoundException event is thrown which generates an invalid cross referenceId error.
Please note "Chatter Answers" has been retired since Feb 2018 and the replacement for Chatter Answers is Chatter Questions. https://help.salesforce.com/articleView?id=000313049&type=1&mode=1
When "Chatter Answers" is enabled in an org the the server will process the SOQL query on CaseComment by checking each query result row and populating fields like PhotoUrl, CreatorFullPhotoUrl, and CreatorName. During that process a NoDataFoundException event is thrown which generates an invalid cross referenceId error.
Please note "Chatter Answers" has been retired since Feb 2018 and the replacement for Chatter Answers is Chatter Questions. https://help.salesforce.com/articleView?id=000313049&type=1&mode=1
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed
Nov 30, 2026