+ Start a Discussion
pcroadkillpcroadkill 

RecordTypeId not valid for the user

I am trying to submit a Case using the java API. When I try to save it, I get the following error:

Record Type ID: this ID value isn't valid for the user: 012E000000023tjIAA

Yet when I query the RecordType with SELECT ID, isactive FROM RecordType where sobjecttype = 'Case' and developername='Complaint_Case' and isactive = true it returns me the following:

true 012E000000023tjIAA.

Stepping through the code, I made sure that the correct id is being returns and it is.

What am I missing? Any insight will be greatly appreciated.


Phillip SouthernPhillip Southern
The profile for the user you are authenticating under may not have access to that profile.  In Salesforce and under the Profile, bring up the Case and see if the checkbox next to the RecordType is checked.
pcroadkillpcroadkill
Thanks Phillip, that is the only place I did not look. I had look at field permissions but never at the layouts.