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
swamyswamy 

Recordtypeid

What is the meaning for this error

 

Invalid field RecordTypeId for SObject Room__c

Best Answer chosen by Admin (Salesforce Developers) 
swamyswamy

something correct your answer...but exactly is that,initially in  my room obj am not having any record types...that's why it is showing error...

 

i.e., for every record type there is a i.d generated,am using this i.d in paex classes.... then error is disappeared........

All Answers

AdrianCCAdrianCC

It means that RecordTypeId does not exist as a field on that object. 

Possible causes:

1. the field does not exist -> create it

2. you don't have access to it -> check FLS and permission sets etc

3. update your wdsl -> http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps.htm#topic-title_step2_api 

 

Hope that helps!

Adrian 

Jerun JoseJerun Jose
or the Room__c Sobject does not have any record types on it and uses the default --Master-- record type. have a new custom record type on that object and the RecordTypeID field will start to show up
swamyswamy

something correct your answer...but exactly is that,initially in  my room obj am not having any record types...that's why it is showing error...

 

i.e., for every record type there is a i.d generated,am using this i.d in paex classes.... then error is disappeared........

This was selected as the best answer