+ Start a Discussion
ollie123ollie123 

Record type unavailable. Cannot find default record type of the appropriate type.

Record type unavailable Cannot find default record type of the appropriate type.

 

I am seeing this error when trying to Convert a lead. I have checked the profile for the current user, and the default record types are both Contacts and Accounts are accessible. (I have selected Do Not Create Opportunity, though there are no opportunity record types).

 

The docs were no help at all, no results in Google for the error. Does anyone know what the solution is?

 

Best Answer chosen by Admin (Salesforce Developers) 
mscolbymscolby
I am having this same problem. I believe it has something to do with the profile permission, because it is letting me as an Admin convert a lead, but not my Agent profile. I have allowed Convert Lead permissions, as well as the ability to create accounts, contacts, and opportunities.

All Answers

mscolbymscolby
I am having this same problem. I believe it has something to do with the profile permission, because it is letting me as an Admin convert a lead, but not my Agent profile. I have allowed Convert Lead permissions, as well as the ability to create accounts, contacts, and opportunities.
This was selected as the best answer
ollie123ollie123
I'm signed in under an administrator account and still seeing the error. I've no idea how to fix it.
t anthonyt anthony

I had a very similar issue after migrating one org to another.

 

The convertLead() function seems to require a default record type for Contact, Account and Opportunity.  Since I migrated the profiles they did not have a default and there was only 1 record type available. 

 

I fixed by creating a second record type and then selecting the default. Afterward i disabled the second record type. Might be able to simply create a new profile. not sure why it would occur on the Admin profile... I verified by checking the users default record type options. Some where missing since there was only one record type. Seems logical that only one should work but after i created a second, reassigned the default and removed the second it worked ok again. Odd circumstance i suppose.

 

 

 

lauraecilauraeci

I just ran into this same error.  Can you elaborate on how to change the default record type?  

 

Thanks!  I can't convert any leads :(

absrivasabsrivas

Setup-->manage users--> Profile

Select the profile.

Go to

Record Type Settings: Click on the Edit link in interested object. Choose the default record type.

Jeetesh BahugunaJeetesh Bahuguna

profile Please go to the profile and check the record type section, there is a option for default record type for account, edit that and also choose a value for person account.

 

It will defiantly work if there is an issue please let me know. 

Paul Fischer 6Paul Fischer 6
If you have Person Accounts active in your org (but the record type isn't available to any user) and the Company field is blank on the lead you will get this error. I found that I had recently updating the naming convention of a lead record type, causing the workflow rule we have to populating lead company names with "Attach to Retail Store" to not fire. 

Hope that helps anyone in a similar situation.
Masahito AkashiMasahito Akashi
I just happend into this same error.  
my organization is enabled Parson Account, and not using Business Account.

I'll show how I was successful.
I've updated the Lead.Company in the blank, Before the execution of [Database.convertLead].
It was successful.

If this method help you of everyone, I am glad.