Performing an export of CaseComment records using Salesforce Data Loader may result in the following error:
"INVALID_CROSS_REFERENCE_KEY: invalid cross reference id"
When exporting CaseComment records using Data Loader in orgs with Self-Service Users, the INVALID_CROSS_REFERENCE_KEY: invalid cross reference id error occurs because the CreatorFullPhotoUrl and CreatorSmallPhotoUrl fields attempt to resolve a photo URL for Self-Service users — who are not standard Salesforce User records. There are two workarounds.
When exporting the CaseComment object with Data Loader, do not select the CreatorFullPhotoUrl and CreatorSmallPhotoUrl fields in your field selection. Excluding these two fields from the export eliminates the cross-reference lookup that causes the error.
Alternatively, you can run Data Export from Setup to export CaseComment records. Data Export does not encounter this field-level cross-reference issue.
000387979

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.