function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yamini Bathula 15Yamini Bathula 15 

sobjectType field on duplicate record set


I am trying to query SObjectType field from Duplicate Record Set object but getting below error
No such column 'SObjectType' on entity 'DuplicateRecordSet'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names."

here is the dev refrence for that field

Salesforce Support is also not much helpful. Has any one had this issue? If any one can help it would be great

ravi soniravi soni

Hi Yamini,
Please check your field level security(FLS) on field as this error show when FLS is not given on field.
For Example : SELECT Id,My_Custom_Field__c  FROM Account
but in case if your My_Custom_Field__c  doesn't have FLS  then it will through this type of error.

Let me know if it helps you and mark it as  best so that it will be  helpful others in future.
Thank You

AbhishekAbhishek (Salesforce Developers) 
For further reference, you can check the below,

And please check this Idea and Vote it,

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Samiha LeeSamiha Lee
They are the ones that always aim at supplying the content of the highest quality go to this site (, and at meeting each customer’s needs. The student wants to purchase an essay because they have other responsibilities, such as caring for their children.
Abhishek BansalAbhishek Bansal
Hi Yamini,

The sObjectType field is available in the version 42.0 or later, so please make sure the class or trigger in which you are trying to use this field is equal to or greater than the 42.0 version.
Let me know if you still face the same issue.

Abhishek Bansal.