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
Sanket 9Sanket 9 

Unavailable Record Type Exception

Hi All,
Facing an issue which has halted many processes. I have an approval button for payment which on click converts the lead to an account and corresponding Opportunity . In production everything works fine but recently our org refreshed the sandbox. 
Now none of the leads are converting. Sharing an error . Please help .

faultcode:soapenv:client: --------> Unavailable recordtype exception.
Amit Chaudhary 8Amit Chaudhary 8
Please check you have client record type on lead object ?
NickCANickCA

The solution I found was this:

Setup -> Manager Users -> Profiles, then select your profile type. From there, scroll all the way down to the Record Type Settings section and under the Standard Record Type Settings sub-section, Go to the Leads field and ensure that there are values there. If not, you'll need to click Edit and assign a default. This default will need to be the same as the System Admin.